java.lang.NoClassDefFoundError: org/quartz/CronExpression

View: New views
9 Messages — Rating Filter:   Alert me  

java.lang.NoClassDefFoundError: org/quartz/CronExpression

by Rice Yeh :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
  I run the artifactory (subversion trunk version) in tomcat 5.5 and get the following error during ArtifactoryContextConfigurer.contextInitialized(..). The causing error is java.lang.NoClassDefFoundError: org/quartz/CronExpression (I know this thru. debugging) and the stack trace is as follows:

ArtifactoryContextConfigurer [Remote Java Application]   
    Java HotSpot(TM) Client VM[localhost:5858]   
        Thread [main] (Suspended)   
            JaxbHelper<T>.read(InputStream, Class) line: 101   
            CentralConfigFactoryBean.afterPropertiesSet() line: 67   
            DefaultListableBeanFactory(AbstractAutowireCapableBeanFactory).invokeInitMethods(String, Object, RootBeanDefinition) line: 1202   
            DefaultListableBeanFactory(AbstractAutowireCapableBeanFactory).initializeBean(String, Object, RootBeanDefinition) line: 1172   
            DefaultListableBeanFactory(AbstractAutowireCapableBeanFactory).createBean(String, RootBeanDefinition, Object[]) line: 428   
            AbstractBeanFactory$1.getObject() line: 251   
            DefaultListableBeanFactory(DefaultSingletonBeanRegistry).getSingleton(String, ObjectFactory) line: 156   
            DefaultListableBeanFactory(AbstractBeanFactory).getBean(String, Class, Object[]) line: 248   
            DefaultListableBeanFactory(AbstractBeanFactory).getBean(String) line: 160   
            DefaultListableBeanFactory.preInstantiateSingletons() line: 284   
            ArtifactoryWebApplicationContext(AbstractApplicationContext).refresh() line: 352   
            ArtifactoryContextConfigurer.contextInitialized(ServletContextEvent) line: 46   
            StandardContext.listenerStart() line: 3763   
            StandardContext.start() line: 4211   
            StandardHost(ContainerBase).addChildInternal(Container) line: 759   
            ContainerBase.access$0(ContainerBase, Container) line: 743   
            ContainerBase$PrivilegedAddChild.run() line: 143   
            AccessController.doPrivileged(PrivilegedAction<T>) line: not available [native method]   
            StandardHost(ContainerBase).addChild(Container) line: 737   
            StandardHost.addChild(Container) line: 524   
            HostConfig.deployWAR(String, File, String) line: 809   
            HostConfig.deployWARs(File, String[]) line: 698   
            HostConfig.deployApps() line: 472   
            HostConfig.start() line: 1122   
            HostConfig.lifecycleEvent(LifecycleEvent) line: 310   
            LifecycleSupport.fireLifecycleEvent(String, Object) line: 119   
            StandardHost(ContainerBase).start() line: 1021   
            StandardHost.start() line: 718   
            StandardEngine(ContainerBase).start() line: 1013   
            StandardEngine.start() line: 442   
            StandardService.start() line: 450   
            StandardServer.start() line: 709   
            Catalina.start() line: 551   
            NativeMethodAccessorImpl.invoke0 (Method, Object, Object[]) line: not available [native method]   
            NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39   
            DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25   
            Method.invoke(Object, Object...) line: 585   
            Bootstrap.start() line: 294   
            NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method]   
            NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39   
            DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25   
            Method.invoke(Object, Object...) line: 585   
            LifecycleSupport.fireLifecycleEvent(String, Object) line: 119   
        Daemon Thread [Thread-1] (Running)   

Any clue?

Regards,
Rice

-------------------------------------------------------------------------
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

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

by Rice Yeh :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 org.artifactory.config.CentralConfigFactoryBean.afterPropertiesSet(CentralConfigFactoryBean.java:67)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1202)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1172)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:428)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:284)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
        at org.artifactory.webapp.servlet.ArtifactoryContextConfigurer.contextInitialized(ArtifactoryContextConfigurer.java:45)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3763)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4211)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
        at org.apache.catalina.core.ContainerBase.access$0(ContainerBase.java:743)
        at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:143)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:737)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:809)
        at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
        at org.apache.catalina.core.StandardService.start(StandardService.java:450)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:177)
Caused by: java.lang.NoClassDefFoundError: org/quartz/CronExpression
        at org.artifactory.backup.config.Backup.setCronExp(Backup.java:68)
        at org.artifactory.backup.config.Backup$JaxbAccessorM_getCronExp_setCronExp_java_lang_String.set(MethodAccessor_Ref.java:20)
        at com.sun.xml.bind.v2.runtime.reflect.TransducedAccessor$CompositeTransducedAccessorImpl.parse(TransducedAccessor.java:203)
        at com.sun.xml.bind.v2.runtime.unmarshaller.LeafPropertyLoader.text(LeafPropertyLoader.java:25)
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.text(UnmarshallingContext.java:382)
        at com.sun.xml.bind.v2.runtime.unmarshaller.ValidatingUnmarshaller.text(ValidatingUnmarshaller.java:102)
        at com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.processText(SAXConnector.java:132)
        at com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.endElement(SAXConnector.java:105)
        at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
        at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:194)
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:167)
        at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:137)
        at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:184)
        at org.artifactory.config.jaxb.JaxbHelper.read(JaxbHelper.java:89)
        ... 42 more
2007-10-10 01:44:38,828 [ERROR] [Catalina].[localhost].[/artifactory]  - Exception sending context initialized event to listener instance of class org.artifactory.webapp.servlet.ArtifactoryContextConfigurer
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'centralConfig' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: java.lang.RuntimeException: Failed to read object from stream.
Caused by:
java.lang.RuntimeException: java.lang.RuntimeException: Failed to read object from stream.
        at org.artifactory.config.CentralConfigFactoryBean.afterPropertiesSet(CentralConfigFactoryBean.java:82)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1202)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1172)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:428)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:284)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
        at org.artifactory.webapp.servlet.ArtifactoryContextConfigurer.contextInitialized(ArtifactoryContextConfigurer.java:45)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3763)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4211)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
        at org.apache.catalina.core.ContainerBase.access$0(ContainerBase.java:743)
        at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:143)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:737)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:809)
        at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
        at org.apache.catalina.core.StandardService.start(StandardService.java:450)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:177)
Caused by: java.lang.RuntimeException: Failed to read object from stream.
        at org.artifactory.config.jaxb.JaxbHelper.read(JaxbHelper.java:101)
        at org.artifactory.config.CentralConfigFactoryBean.afterPropertiesSet(CentralConfigFactoryBean.java:67)
        ... 41 more
Caused by: java.lang.NoClassDefFoundError: org/quartz/CronExpression
        at org.artifactory.backup.config.Backup.setCronExp(Backup.java:68)
        at org.artifactory.backup.config.Backup$JaxbAccessorM_getCronExp_setCronExp_java_lang_String.set(MethodAccessor_Ref.java:20)
        at com.sun.xml.bind.v2.runtime.reflect.TransducedAccessor$CompositeTransducedAccessorImpl.parse(TransducedAccessor.java:203)
        at com.sun.xml.bind.v2.runtime.unmarshaller.LeafPropertyLoader.text(LeafPropertyLoader.java:25)
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.text(UnmarshallingContext.java:382)
        at com.sun.xml.bind.v2.runtime.unmarshaller.ValidatingUnmarshaller.text(ValidatingUnmarshaller.java:102)
        at com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.processText(SAXConnector.java:132)
        at com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.endElement(SAXConnector.java:105)
        at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
        at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:194)
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:167)
        at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:137)
        at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:184)
        at org.artifactory.config.jaxb.JaxbHelper.read(JaxbHelper.java:89)
        ... 42 more
Oct 10, 2007 1:44:38 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Oct 10, 2007 1:44:38 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/artifactory] startup failed due to previous errors




Rice Yeh wrote:
Hi,
  I run the artifactory (subversion trunk version) in tomcat 5.5 and get the
following error during ArtifactoryContextConfigurer.contextInitialized(..).
The causing error is java.lang.NoClassDefFoundError:
org/quartz/CronExpression (I know this thru. debugging) and the stack trace
is as follows:

ArtifactoryContextConfigurer [Remote Java Application]
    Java HotSpot(TM) Client VM[localhost:5858]
        Thread [main] (Suspended)
            JaxbHelper<T>.read(InputStream, Class) line: 101
            CentralConfigFactoryBean.afterPropertiesSet() line: 67

DefaultListableBeanFactory(AbstractAutowireCapableBeanFactory).invokeInitMethods(String,
Object, RootBeanDefinition) line: 1202

DefaultListableBeanFactory(AbstractAutowireCapableBeanFactory).initializeBean(String,
Object, RootBeanDefinition) line: 1172

DefaultListableBeanFactory(AbstractAutowireCapableBeanFactory).createBean(String,
RootBeanDefinition, Object[]) line: 428
            AbstractBeanFactory$1.getObject() line: 251

DefaultListableBeanFactory(DefaultSingletonBeanRegistry).getSingleton(String,
ObjectFactory) line: 156
            DefaultListableBeanFactory(AbstractBeanFactory).getBean(String,
Class, Object[]) line: 248
            DefaultListableBeanFactory(AbstractBeanFactory).getBean(String)
line: 160
            DefaultListableBeanFactory.preInstantiateSingletons() line:
284

ArtifactoryWebApplicationContext(AbstractApplicationContext).refresh() line:
352
            ArtifactoryContextConfigurer.contextInitialized(ServletContextEvent)
line: 46
            StandardContext.listenerStart() line: 3763
            StandardContext.start() line: 4211
            StandardHost(ContainerBase).addChildInternal(Container) line:
759
            ContainerBase.access$0(ContainerBase, Container) line: 743
            ContainerBase$PrivilegedAddChild.run() line: 143
            AccessController.doPrivileged(PrivilegedAction<T>) line: not
available [native method]
            StandardHost(ContainerBase).addChild(Container) line: 737
            StandardHost.addChild(Container) line: 524
            HostConfig.deployWAR(String, File, String) line: 809
            HostConfig.deployWARs(File, String[]) line: 698
            HostConfig.deployApps() line: 472
            HostConfig.start() line: 1122
            HostConfig.lifecycleEvent(LifecycleEvent) line: 310
            LifecycleSupport.fireLifecycleEvent(String, Object) line: 119

            StandardHost(ContainerBase).start() line: 1021
            StandardHost.start() line: 718
            StandardEngine(ContainerBase).start() line: 1013
            StandardEngine.start() line: 442
            StandardService.start() line: 450
            StandardServer.start() line: 709
            Catalina.start() line: 551
            NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line:
not available [native method]
            NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39
            DelegatingMethodAccessorImpl.invoke(Object, Object[]) line:
25
            Method.invoke(Object, Object...) line: 585
            Bootstrap.start() line: 294
            NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line:
not available [native method]
            NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39
            DelegatingMethodAccessorImpl.invoke(Object, Object[]) line:
25
            Method.invoke(Object, Object...) line: 585
            LifecycleSupport.fireLifecycleEvent(String, Object) line: 119

        Daemon Thread [Thread-1] (Running)

Any clue?

Regards,
Rice

-------------------------------------------------------------------------
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/artifactory-users

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

by Erik Drolshammer-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

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

by Rice Yeh :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

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

by Yoav Landman :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
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

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

by Rice Yeh :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
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

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

by Rice Yeh :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

[OT] Re: java.lang.NoClassDefFoundError: org/quartz/CronExpression

by Jorg Heymans-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Alternatively, never trust any tomcat/jetty/jboss/geronimo/ant/whatever_java_package that is included in a linux distro. I've seen numerous problems with custom startup scripts, environment variables, classpath tampering etc etc. The only binary i ever trust to run when it comes to java is the one i've downloaded and unpacked myself.

Cheers,
Jorg

On 10/10/07, Rice Yeh <riceyeh@...> wrote:
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



-------------------------------------------------------------------------
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

Re: [OT] Re: java.lang.NoClassDefFoundError: org/quartz/CronExpression

by Yoav Landman :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Thanks all. This is all valuable information. We will add it to the FAQs.

On 10/11/07, Jorg Heymans <jorg.heymans@...> wrote:
Alternatively, never trust any tomcat/jetty/jboss/geronimo/ant/whatever_java_package that is included in a linux distro. I've seen numerous problems with custom startup scripts, environment variables, classpath tampering etc etc. The only binary i ever trust to run when it comes to java is the one i've downloaded and unpacked myself.

Cheers,
Jorg


On 10/10/07, Rice Yeh <riceyeh@...> wrote:
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



-------------------------------------------------------------------------
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