From: Pacileo, K. <ken...@uh...> - 2008-10-29 15:59:49
|
Per Yoav's reply you need to be at JDK 1.6.0_04 or above if using Java 1.6. Ken -----Original Message----- From: Mansour Al Akeel [mailto:man...@gm...] Sent: Wednesday, October 29, 2008 11:56 AM To: art...@li... Subject: Re: [Artifactory-users] deploy on tomcat 6.0.14 Here's the jdk version: [root@neptune lib]# java -version java version "1.6.0_02" Java(TM) SE Runtime Environment (build 1.6.0_02-b05) Java HotSpot(TM) Client VM (build 1.6.0_02-b05, mixed mode, sharing) I just added jaxb-api.jar to endorsed directoryto see if error will change but nothing happened. here's the files I just added to endorsed : activation.jar jaxb1-impl.jar jaxb-api.jar jaxb-impl.jar jaxb-xjc.jar jsr173_1.0_api.jar Pacileo, Kenneth wrote: > The message actually states that JAXB 2.0 is being loaded from the > bootstrap classloader, which is not necessarily just the classpath. The > bootstrap classloader includes the Java libraries. What version of Java > are you using? I think you need at least Java 1.5. > > HTH > > --Ken > > -----Original Message----- > From: Mansour Al Akeel [mailto:man...@gm...] > Sent: Wednesday, October 29, 2008 11:31 AM > To: art...@li... > Subject: [Artifactory-users] deploy on tomcat 6.0.14 > > can not start the application on tomcat 6.0.14. I copied the war file > artifactory-1.3.0-beta-2.war to webapp and restarted tomcat. No LUCK. > In tomcat manager, this is the error: > > FAIL - Application at context path /artifactory-1.3.0-beta-2 could not > be started > > in log/catalina.out: > > > Oct 29, 2008 12:25:15 PM org.apache.catalina.core.AprLifecycleListener > init > INFO: The Apache Tomcat Native library which allows optimal performance > in production environments was not found on the java.library.path: > /opt/Programs/jdk1.6.0_02/jre/lib/i386/client:/opt/Programs/jdk1.6.0_02/ > jre/lib/i386:/opt/Programs/jdk1.6.0_02/jre/../lib/i386:/usr/java/package > s/lib/i386:/lib:/usr/lib > Oct 29, 2008 12:25:15 PM org.apache.coyote.http11.Http11Protocol init > INFO: Initializing Coyote HTTP/1.1 on http-8080 Oct 29, 2008 12:25:15 PM > org.apache.catalina.startup.Catalina load > INFO: Initialization processed in 655 ms Oct 29, 2008 12:25:15 PM > org.apache.catalina.core.StandardService start > INFO: Starting service Catalina > Oct 29, 2008 12:25:15 PM org.apache.catalina.core.StandardEngine start > INFO: Starting Servlet Engine: Apache Tomcat/6.0.14 Oct 29, 2008 > 12:25:15 PM org.apache.catalina.startup.HostConfig deployWAR > INFO: Deploying web application archive artifactory-1.3.0-beta-2.war > 2008-10-29 12:25:16,315 [INFO ] (ArtifactoryContextConfigurer.java:42) > - Starting Artifactory... > 2008-10-29 12:25:16,409 [INFO ] (AbstractApplicationContext.java:412) > - Refreshing > org.artifactory.spring.ArtifactoryApplicationContext@b8deef: display > name [org.artifactory.spring.ArtifactoryApplicationContext@b8deef]; > startup date [Wed Oct 29 12:25:16 ADT 2008]; root of context hierarchy > 2008-10-29 12:25:17,176 [INFO ] (AbstractApplicationContext.java:427) > - Bean factory for application context > [org.artifactory.spring.ArtifactoryApplicationContext@b8deef]: > org.springframework.beans.factory.support.DefaultListableBeanFactory@773 > 6bd > 2008-10-29 12:25:17,387 [INFO ] (CentralConfigFactoryBean.java:66) - > Loading configuration (using > '/root/.artifactory/etc/artifactory.config.xml')... > 2008-10-29 12:25:17,388 [INFO ] (CentralConfigFactoryBean.java:68) - > Trying to load configuration from regular path file resource.... > 2008-10-29 12:25:17,540 [ERROR] (CentralConfigFactoryBean.java:93) - > Failed to load configuration from > '/root/.artifactory/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(Centr > alConfigFactoryBean.java:79) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac > tory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1367) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac > tory.initializeBean(AbstractAutowireCapableBeanFactory.java:1333) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac > tory.doCreateBean(AbstractAutowireCapableBeanFactory.java:471) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac > tory$1.run(AbstractAutowireCapableBeanFactory.java:409) > at java.security.AccessController.doPrivileged(Native Method) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac > tory.createBean(AbstractAutowireCapableBeanFactory.java:380) > at > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObjec > t(AbstractBeanFactory.java:264) > at > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.g > etSingleton(DefaultSingletonBeanRegistry.java:220) > at > org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean( > AbstractBeanFactory.java:261) > at > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab > stractBeanFactory.java:185) > at > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab > stractBeanFactory.java:164) > at > org.springframework.beans.factory.support.DefaultListableBeanFactory.pre > InstantiateSingletons(DefaultListableBeanFactory.java:423) > at > org.springframework.context.support.AbstractApplicationContext.finishBea > nFactoryInitialization(AbstractApplicationContext.java:729) > at > org.springframework.context.support.AbstractApplicationContext.refresh(A > bstractApplicationContext.java:381) > at > org.springframework.context.support.ClassPathXmlApplicationContext.<init > >> (ClassPathXmlApplicationContext.java:139) >> > at > org.springframework.context.support.ClassPathXmlApplicationContext.<init > >> (ClassPathXmlApplicationContext.java:83) >> > at > org.artifactory.spring.ArtifactoryApplicationContext.<init>(ArtifactoryA > pplicationContext.java:51) > at > org.artifactory.webapp.servlet.ArtifactoryContextConfigurer.contextIniti > alized(ArtifactoryContextConfigurer.java:44) > at > org.apache.catalina.core.StandardContext.listenerStart(StandardContext.j > ava:3830) > at > org.apache.catalina.core.StandardContext.start(StandardContext.java:4337 > ) > at > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja > va:791) > at > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) > at > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) > at > org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825) > at > org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714) > at > org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490) > at > org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138) > at > org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:31 > 1) > at > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu > pport.java:117) > at > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) > at > org.apache.catalina.core.StandardHost.start(StandardHost.java:719) > at > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) > at > org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) > at > org.apache.catalina.core.StandardService.start(StandardService.java:516) > at > org.apache.catalina.core.StandardServer.start(StandardServer.java:710) > at org.apache.catalina.startup.Catalina.start(Catalina.java:566) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav > a:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor > Impl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) > at > org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) > Caused by: java.lang.LinkageError: JAXB 2.0 API is being loaded from the > bootstrap classloader, but this RI (from > jar:file:/opt/Programs/apache-tomcat-6.0.14/webapps/artifactory-1.3.0-be > ta-2/WEB-INF/lib/jaxb-impl-2.1.6.jar!/com/sun/xml/bind/v2/model/impl/Mod > elBuilder.class) needs 2.1 API. Use the endorsed directory mechanism to > place jaxb-api.jar in the bootstrap classloader. (See > http://java.sun.com/j2se/1.5.0/docs/guide/standards/) > at > com.sun.xml.bind.v2.model.impl.ModelBuilder.<clinit>(ModelBuilder.java:1 > 73) > at > com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextIm > pl.java:422) > at > com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java: > 286) > at > com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:139 > ) > at > com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:117 > ) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav > a:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor > Impl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:210) > at javax.xml.bind.ContextFinder.find(ContextFinder.java:368) > at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574) > at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:522) > at > org.artifactory.config.jaxb.JaxbHelper.read(JaxbHelper.java:83) > ... 43 more > Oct 29, 2008 12:25:17 PM org.apache.catalina.core.StandardContext start > SEVERE: Error listenerStart > Oct 29, 2008 12:25:17 PM org.apache.catalina.core.StandardContext start > SEVERE: Context [/artifactory-1.3.0-beta-2] startup failed due to > previous errors Oct 29, 2008 12:25:18 PM > org.apache.coyote.http11.Http11Protocol start > INFO: Starting Coyote HTTP/1.1 on http-8080 Oct 29, 2008 12:25:18 PM > org.apache.jk.common.ChannelSocket init > INFO: JK: ajp13 listening on /0.0.0.0:8009 Oct 29, 2008 12:25:18 PM > org.apache.jk.server.JkMain start > INFO: Jk running ID=0 time=0/47 config=null Oct 29, 2008 12:25:18 PM > org.apache.catalina.startup.Catalina start > INFO: Server startup in 3174 ms > > > > It's complaining about JAXB-2.0 is in the classpath. But it's not. Any > idea ? > > > > > > > > ------------------------------------------------------------------------ > - > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge Build the coolest Linux based applications with Moblin SDK & > win great prizes Grand prize is a trip for two to an Open Source event > anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Artifactory-users mailing list > Art...@li... > https://lists.sourceforge.net/lists/listinfo/artifactory-users > > > This e-mail, including attachments, may include confidential and/or > proprietary information, and may be used only by the person or entity to > which it is addressed. If the reader of this e-mail is not the intended > recipient or his or her authorized agent, the reader is hereby notified > that any dissemination, distribution or copying of this e-mail is > prohibited. If you have received this e-mail in error, please notify the > sender by replying to this message and delete this e-mail immediately. > > > ------------------------------------------------------------------------ - > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Artifactory-users mailing list > Art...@li... > https://lists.sourceforge.net/lists/listinfo/artifactory-users > ------------------------------------------------------------------------ - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Artifactory-users mailing list Art...@li... https://lists.sourceforge.net/lists/listinfo/artifactory-users This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately. |