« Return to Thread: java.lang.NoClassDefFoundError: org/quartz/CronExpression

Re: java.lang.NoClassDefFoundError: org/quartz/CronExpression

by Rice Yeh :: Rate this Message:

Reply to Author | View in Thread

Some parts of this message have been removed. Learn more about Nabble's security policy.
After a whole day of debugging, I finally find the problem. It is all about java security. Basically, turn off java's security manager. That is, set TOMCAT5_SECURITY=no in /etc/init.d/tomcat5.5 (my environment is ubuntu 7.04). Also there is some error in /etc/init.d/tomcat5.5 on -Djava.endorsed.dirs setting. Do not pass this setting to jvm above 1.5. Otherwise,  the following error will happen javax.xml.transform.TransformerFactoryConfigurationError : Provider org.apache.xalan.processor.TransformerFactoryImpl not found.

If you really insist to set TOMCAT5_SECURITY=yes, then you have to pass the following setting -Djava.security.debug=access:failure to jvm and to check on the output what permission you need to java's security policy file. The process is really cumbersome, so maybe just have security check turned off.

Rice



On 10/10/07, Rice Yeh <riceyeh@...> wrote:
The problem is gone with a clean tomcat installation from tomcat.apache.org. But my real environment is the one I installed by 'apt-get install tomcat55'. The biggest difference for apt-get installation from the clean installation is that its /etc/init.d/tomcat5.5 script uses package /usr/share/java/commons- daemon.jar to start tomcat daemon. However, I check all jars under /usr/share/java and catalina_home directories. There is no jar containing quartz package.
  This is a real weird problem! Any clue?

Rice


On 10/10/07, Yoav Landman <ylandman@... > wrote:
Can you check that you don't have another instance of Quartz deployed in one of Tomcat's shared libs folder?
If it happens on a clean install of Tomcat, please open a JIRA issue and provide all the environment details.


On 10/10/07, Rice Yeh <riceyeh@...> wrote:
I am sure that this is not file permission problem although I know it will make similar problems. It is more like classloader problem.

Rice


On 10/10/07, Erik Drolshammer <drolsham@...> wrote:
On Tue, 2007-10-09 at 11:03 -0700, Rice Yeh wrote:
> I try the 1.2.5-rc0 version and still get the same error. The error message
> is more obvious:
>
> 2007-10-10 01:44:38,823 [ERROR] artifactory.config.CentralConfigFactoryBean
> - Failed to load configuration from
> '/opt/artifactory-1.2.5-rc0/etc/artifactory.config.xml'.
> java.lang.RuntimeException: Failed to read object from stream.
>         at org.artifactory.config.jaxb.JaxbHelper.read (JaxbHelper.java:101)
>         at

I had a similar problem a couple of days ago. The cause was then
insufficient file permissions. It might be worth checking out.

--
Regards
Erik Drolshammer


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Artifactory-users mailing list
Artifactory-users@...
https://lists.sourceforge.net/lists/listinfo/artifactory-users


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Artifactory-users mailing list
Artifactory-users@...
https://lists.sourceforge.net/lists/listinfo/artifactory-users



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Artifactory-users mailing list
Artifactory-users@...
https://lists.sourceforge.net/lists/listinfo/artifactory-users




-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Artifactory-users mailing list
Artifactory-users@...
https://lists.sourceforge.net/lists/listinfo/artifactory-users

 « Return to Thread: java.lang.NoClassDefFoundError: org/quartz/CronExpression

LightInTheBox - Buy quality products at wholesale price