Ok I successed to create my jcommops-ptf.jar with all in it. And tomcat started it correctly the app.
Still don't have answer on my page but it's a library problem which I have to figure out but I'll see that on Monday Thanks you all for the help and have a good week end. Laurent. -----Message d'origine----- De : [email protected] [mailto:[email protected]] De la part de Cros Laurent Envoyé : vendredi 18 juin 2010 16:37 À : Henrique Prange; WebObjects-Dev Apple Objet : RE: deployment on tomcat Henrique, Before receiving this email, I got the error where it dosen't know how to get the properties file So I modify the ERXApplication.java file to log the wouserDir and it's : C:\java\apache-tomcat-6.0.26\bin so I modify the java file to go in the right path like this woUserDir = woUserDir+ File.separator +".."+File.separator+"webapps"+File.separator+"jcommops-ptf"+File.separator+"WEB-INF"+File.separator+"jcommops-ptf.woa"; and the found the properties file and start the application .... It's like an environment variable is missing ... So after receiving your email : Could you give me the structure of your eclipse project, with the war configuration in pom.xml when you are creating the war. When I created my war there is no jcommops-ptf.jar, it's exploded in my WEB-INF/classes directory. According to what you said : WAR : MANIFEST WEB-INF Web.xml Classes (empty) Lib (all my lib) including : Jcommops-ptf.jar containing : Org.jcommops .... (my classes) Contents Resources (my wocomponents, myeomodel, info.plist,Properties) WebServerResources (js ...) But it says INFO: validateJarFile(C:\java\apache-tomcat-6.0.26\webapps\jcommops-ptf\WEB-INF lib\JavaXML-5.4.3.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. O fending class: javax/servlet/Servlet.class [2010-6-18 16:18:43 CEST] <main> Initialized : er.extensions.ERXExtensions Classes and frameworks will be loaded out of the WEB-INF/lib and WEB-INF/classe directories. MainBundle will be set to jcommops-ptf java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.webobjects.jspservlet.WOServletAdaptor._applicationInit(WOServle Adaptor.java:421) at com.webobjects.jspservlet.WOServletAdaptor.initStatics(WOServletAdap or.java:95) at com.webobjects.jspservlet.WOServletAdaptor.init(WOServletAdaptor.jav :652) at er.extensions.jspservlet.ERXServletAdaptor.init(ERXServletAdaptor.ja a:66) at javax.servlet.GenericServlet.init(GenericServlet.java:212) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper java:1173) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:9 3) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardConte t.java:4187) at org.apache.catalina.core.StandardContext.start(StandardContext.java: 496) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBas .java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:7 1) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546 at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.ja a:1041) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig. ava:964) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:50 ) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.jav :321) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecyc eSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053 at org.apache.catalina.core.StandardHost.start(StandardHost.java:785) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:44 ) at org.apache.catalina.core.StandardService.start(StandardService.java: 19) at org.apache.catalina.core.StandardServer.start(StandardServer.java:71 ) at org.apache.catalina.startup.Catalina.start(Catalina.java:581) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) Caused by: java.lang.ExceptionInInitializerError at com.webobjects.appserver.WOApplication.primeApplication(WOApplicatio .java:665) ... 35 more Caused by: java.lang.IllegalStateException: Main bundle 'Properties' file can't be read. Did you run as a Java Application instead of a WOApplication in WOLip ? Please post your deployment configuration in the Wonder mailing list. at er.extensions.appserver.ERXApplication$Loader.collectMainProps(ERXAp lication.java:645) at er.extensions.appserver.ERXApplication$Loader.bundleDidLoad(ERXAppli ation.java:542) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.ja a:122) at com.webobjects.foundation.NSNotificationCenter$_Entry.invokeMethod(N NotificationCenter.java:588) at com.webobjects.foundation.NSNotificationCenter.postNotification(NSNo ificationCenter.java:532) at com.webobjects.foundation.NSNotificationCenter.postNotification(NSNo ificationCenter.java:562) at com.webobjects.foundation.NSBundle.postNotification(NSBundle.java:18 9) at com.webobjects.foundation.NSBundle.LoadBundlesFromJars(NSBundle.java 449) at com.webobjects.foundation.NSBundle.<clinit>(NSBundle.java:2089) ... 36 more 18 juin 2010 16:18:43 org.apache.catalina.startup.HostConfig deployDirectory INFO: DÚploiement du rÚpertoire ROOT de l'application web 18 juin 2010 16:18:43 org.apache.coyote.http11.Http11Protocol start INFO: DÚmarrage de Coyote HTTP/1.1 sur http-8080 18 juin 2010 16:18:43 org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 18 juin 2010 16:18:43 org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/31 config=null 18 juin 2010 16:18:43 org.apache.catalina.startup.Catalina start INFO: Server startup in 1069 ms It's like it doesn't know where is the properties file is It sounds I am not far away ;) from the truth but it doesn't work Thanks again, Laurent. -----Message d'origine----- De : [email protected] [mailto:[email protected]] De la part de Henrique Prange Envoyé : vendredi 18 juin 2010 15:31 À : WebObjects-Dev Apple Objet : Re: deployment on tomcat Hi Laurent, On 18/06/10 05:07, Cros Laurent wrote: > Hi Henrique, > > Thanks for answering me yesterday evening ! > > I put the WOJarBundle to true and now the application can't load my > Properties file, it's located : > C:\java\apache-tomcat-6.0.26\webapps\jcommops-ptf\WEB-INF\jcommops-ptf.woa\Contents\Resources\properties > You have to choose one way to go: true WAR or SSDD. If you are using Maven and trying to produce a true WAR package, the [...]\WEB-INF\jcommops-ptf.woa is not necessary. The Properties file will be package inside your project JAR, i.e. [...]\webapps\jcommops-ptf\WEB-INF\lib\jcommops-ptf.jar. > Here is the error : > > Caused by: java.lang.IllegalStateException: Main bundle 'Properties' file > can't > be read. Did you run as a Java Application instead of a WOApplication in > WOLips > ? > Which WebObjects and Wonder version? BTW, were you able to run the sample-project in your environment successfully? Cheers, Henrique _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/lcros%40cls.fr This email sent to [email protected] Cliquez sur l'url suivante https://www.mailcontrol.com/sr/hKTEcOdbXN7TndxI!oX7Us3fUQZbLcSF0G80HVXROnRg2gyAcqVgLtCV!dDo3HBPeMzAoJ1!8Uccloz8rNwSTQ== si ce message est indésirable (pourriel). _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/lcros%40cls.fr This email sent to [email protected] _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
