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 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 ? Thanks, Laurent. -----Message d'origine----- De : [email protected] [mailto:[email protected]] De la part de Henrique Prange Envoyé : jeudi 17 juin 2010 22:26 À : [email protected] Objet : Re: deployment on tomcat Hi Julio, On 17/06/10 14:43, Julio Ortiz wrote: > Hi, > > Since one year I only deploy my apps in Tomcat the easy way is as follows > > 1- Always deploy over JDK 1.6 Not a requirement. What kind of problems have you faced with JDK 1.5? > 2- Just Compile with ANT and copy the WEB-INF generated directory in the > Tomcat Context dir. Maven produces true WAR packages. The default Ant build provided by WOLips produces SSDD packages. Both have advantages and drawbacks. I prefer true WAR packages because they are less problematic and easier to understand. > 3- Do not use the er.extensions.jspservlet.ERXServletAdaptor, instead > use com.webobjects.jspservlet.WOServletAdaptor ERXServletAdaptor is a requirement if you have Wonder based applications. > 4- Restart Tomcat and enjoy > Good advice. Cheers, Henrique > > Best regards > > Julio > > > On Jun 17, 2010, at 5:09 AM, Cros Laurent wrote: > >> HI guys, >> I am trying to deploy my app on tomcat. >> With the basic url : >> http://localhost:8080/jcommops-ptf/WebObjects/jcommops-ptf.woa/ , I >> have no error by empty content, here is my log in tomcat : >> juin 17 11:55:12 JavaWebObjects[-1] DEBUG NSLog - >> <com.webobjects.appserver._private.WOComponentDefinition> No template >> found for component Main at "null". >> juin 17 11:55:12 JavaWebObjects[-1] DEBUG >> er.extensions.appserver.ERXBrowserFactory - Factory null creating >> default browser factory. null >> juin 17 11:55:12 JavaWebObjects[-1] DEBUG >> er.extensions.appserver.ERXBrowserFactory - >> _incrementReferenceCounterForKey() - count = 1, key = >> Safari.533.4.5.0.Windows.{cpu = "Unknown CPU"; geckoRevision = "No >> Gecko";} >> juin 17 11:55:12 JavaWebObjects[-1] DEBUG er.extensions.eof.ERXEC - >> setting useUnlocker to true >> juin 17 11:55:12 JavaWebObjects[-1] DEBUG >> er.extensions.ERXApplication.RequestHandling - Returning, encoding: >> UTF-8 response: <er.extensions.appserver.ERXResponse >> (<er.extensions.appserver.ERXResponsehttpVersion=HTTP/1.0 >> headers={cache-control=[private, no-cache, no-store, must-revalidate, >> max-age=0], content-type=[text/html], date=[Thu, 17-Jun-2010 09:55:12 >> GMT], expires=[Thu, 17-Jun-2010 09:55:12 GMT], pragma=[no-cache], >> set-cookie=[], x-webobjects-loadaverage=[1]} content-length=0 >> cookies=() userInfo={} storePageInBacktrackCache=true >) status=200> >> I don't know why my content response length is 0 >> Here is my web.xml : >> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web >> Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> >> <!-- This web.xml file by itself will allow you to run the corresponding >> WebObjects application in a Servlet container. If you would like to >> merge the WebObjects application with your existing JSP/Servlet >> application, you have to merge this web.xml with your existing web.xml. >> NOTE: This file is normally included as the template file >> 'web.xml.template'. >> During the build process, the placeholders for WOROOT, LOCALROOT, >> WOAINSTALLROOT, >> WOAppMode, WOClassPath, WOApplicationClass and WOtaglib will be replaced >> with the appropriate values. Other parts of the template file may be >> customized as required. >> NOTE: WEBINFROOT is added to the WOClassPath at build time, but the >> replacement >> value is replaced at runtime to be the path to the WEB-INF directory. >> --> >> <web-app> >> <display-name>jcommops-ptf</display-name> >> <context-param> >> <param-name>WOJarBundle</param-name> >> <param-value>false</param-value> >> <description> >> Whether this app is a "true" WAR, rather than a "stub" WAR >> or SSDD Note that WOROOT, LOCALROOT, WOAINSTALLROOT, >> WOClassPath are ignored if this is true However, if this is >> true, WOMainBundle must be set to the main bundle name >> </description> >> </context-param> >> <context-param> >> <param-name>WOMainBundle</param-name> >> <param-value>jcommops-ptf</param-value> >> <description> >> Sets the name of the main bundle. Only used if WOJarBundle >> is true >> </description> >> </context-param> >> <context-param> >> <param-name>WOROOT</param-name> >> <param-value>C:/apple_5.4.3</param-value> >> </context-param> >> <!-- Indicates the root where local frameworks are installed. In Mac OS X, >> for example, these frameworks are located in the "/Library/Frameworks" >> directory; keeping in tradition, LOCALROOT is set to "/". On Windows, >> it could be "c:\Apple\Local", on Solaris, it could be "/opt/Apple/Local". >> If "-DLOCALROOT=/path/to/somewhere" is defined (in the container >> startup script, >> for example), the value indicated here is ignored. --> >> <context-param> >> <param-name>LOCALROOT</param-name> >> <param-value>C:/apple_5.4.3/Local</param-value> >> </context-param> >> <!-- Indicates the root where WebObjects applications are installed. >> In Mac OS X >> deployment, for example, WO applications are usually deployed in the >> "/Library/WebObjects/Applications" directory and WOAINSTALLROOT is set to >> "/Library/WebObjects/Applications". If >> "-DWOAINSTALLROOT=/path/to/somewhere" >> is defined (in the container startup script, for example), the value >> indicated here is ignored. --> >> <context-param> >> <param-name>WOAINSTALLROOT</param-name> >> <param-value>C:/apple_5.4.3/Applications</param-value> >> </context-param> >> <context-param> >> <param-name>WOClasspath</param-name> >> <param-value> >> WEBINFROOT/jcommops-ptf.woa/Contents/Resources/Java/jcommops-ptf.jar >> </param-value> >> </context-param> >> <!-- Indicates if application is development or deployment mode. In >> development >> mode, images are vended by the application directly from frameworks. In >> deployment mode, images are vended by the webserver. --> >> <context-param> >> <param-name>WOAppMode</param-name> >> <param-value>development</param-value> >> </context-param> >> <!-- Class name of the WOApplication subclass that defines the >> WebObjects application. --> >> <context-param> >> <param-name>WOApplicationClass</param-name> >> <param-value>org.jcommops.googleEarth.ptf.Application</param-value> >> </context-param> >> <!-- The WebObjects Servlet that interfaces between the Servlet container >> world and the WebObjects world. --> >> <servlet> >> <servlet-name>WOServletAdaptor</servlet-name> >> <servlet-class>er.extensions.jspservlet.ERXServletAdaptor</servlet-class> >> <load-on-startup>5</load-on-startup> >> </servlet> >> <!-- URLs starting with 'WebObjects' use the WebObjects Servlet >> adaptor. --> >> <servlet-mapping> >> <servlet-name>WOServletAdaptor</servlet-name> >> <url-pattern>/WebObjects/*</url-pattern> >> </servlet-mapping> >> </web-app> >> Any help really well appreciated ! >> Laurent Cros >> Software engineer >> Société CLS >> 8-10rue Hermès, Parc technologique du canal >> 31560 Ramonville Saint-Agne France >> Tel. +33 5 61 393 701 >> Fax +33 5 61 394 750 >> <image001.gif> >> _______________________________________________ >> Do not post admin requests to the list. They will be ignored. >> Webobjects-dev mailing list ([email protected] >> <mailto:[email protected]>) >> Help/Unsubscribe/Update your Subscription: >> http://lists.apple.com/mailman/options/webobjects-dev/julio.ortiz%40gmt.com.co >> >> This email sent to [email protected] <mailto:[email protected]> > > Julio Ortiz > Director de Tecnología > > *GMT / Groove Media Technologies S.A.* > www.gmt.com.co <http://www.gmt.com.co> > Tel : (571) 7430943 ext :108 > Mobile: 3186401071 311 287 33 45 > > > 2010 GROOVE MEDIA TECHNOLOGIES S.A. TODOS LOS DERECHOS RESERVADOS. > Este documento es propiedad de Groove Media Technologies S.A., y puede > contener información privilegiada o confidencial; por tanto, usar esta > información y sus anexos para propósitos ajenos a los de Groove Media > Technologies S.A., divulgarla a personas a las cuales no se encuentre > destinado este correo o reproducirla total o parcialmente, se encuentra > prohibido en virtud de la legislación vigente. La compañía no asumirá > responsabilidad sobre información, opiniones o criterios contenidos en > este correo que no estén directamente relacionados con Groove Media > Technologies S.A. Si usted no es el destinatario autorizado, o por error > recibe este mensaje, favor borrarlo inmediatamente. > > > > _______________________________________________ > 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/hprange%40gmail.com > > 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/lcros%40cls.fr This email sent to [email protected] Cliquez sur l'url suivante https://www.mailcontrol.com/sr/b4gsAxQ7lwfTndxI!oX7UvGHrMX8oTLhztcTFkZipJP5Elhze2s7udCV!dDo3HBPyNfl1u4k+dhPcbrY0G8NdQ== 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/archive%40mail-archive.com This email sent to [email protected]
