RE: deployment on tomcat

2010-06-18 Thread Cros Laurent
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 : webobjects-dev-bounces+lcros=cls...@lists.apple.com 
[mailto:webobjects-dev-bounces+lcros=cls...@lists.apple.com] 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]  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.re

RE: deployment on tomcat

2010-06-18 Thread Cros Laurent
Ooops I forgot to answer to this question :

  Which WebObjects and Wonder version ?

  Wonder 5.0.0 
  Webobjects 5.4.3  

I put all on maven
There was an error with installing wonder on maven so I put the wonder library 
frameworks jar on my maven repository.

Cheers,

Laurent.

-Message d'origine-
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]  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(Metho

RE: deployment on tomcat

2010-06-18 Thread Cros Laurent
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.(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 : webobjects-dev-bounces+lcros=cls...@lists.apple.com 
[mailto:webobjects-dev-bounces+lcros=cls...@lists.apple.com] 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  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/lcros%40cls.fr

This email sent to lc...@cls.fr


   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  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: deployment on tomcat

2010-06-18 Thread Henrique Prange

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  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


RE: deployment on tomcat

2010-06-18 Thread Cros Laurent
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 : webobjects-dev-bounces+lcros=cls...@lists.apple.com 
[mailto:webobjects-dev-bounces+lcros=cls...@lists.apple.com] De la part de 
Henrique Prange
Envoyé : jeudi 17 juin 2010 22:26
À : webobjects-dev@lists.apple.com
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 -
>>  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: > (> 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 :
>> > Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd";>
>> 
>> 
>> jcommops-ptf
>> 
>> WOJarBundle
>> false
>> 
>> 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
>> 
>> 
>> 
>> WOMainBundle
>> jcommops-ptf
>> 
>> Sets the name of the main bundle. Only used if WOJarBundle
>> is true
>> 
>> 
>> 
>> WOROOT
>> C:/apple_5.4.3
>> 
>> 
>> 
>> LOCALROOT
>> C:/apple_5.4.3/Local
>> 
>> 
>> 
>> WOAINSTALLROOT
>> C:/apple_5.4.3/Applications
>> 
>> 
>> WOClasspath
>> 
>> WEBINFROOT/jcommops-ptf.woa/Contents/Resources/Java/jcommops-ptf.jar
>> 
>> 
>> 
>> 
>> WOAppMode
>> development
>> 
>> 
>> 
>> WOApplicationClass
>> org.jcommops.googleEarth.ptf.Application
>> 
>> 
>> 
>> WOServletAdaptor
>> er.extensions.jspservlet.ERXServletAdaptor
>> 5
>> 
>> 
>> 
>> WOServletAdaptor
>> /WebObjects/*
>> 
>> 
>> 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
>&

Re: deployment on tomcat

2010-06-17 Thread Henrique Prange

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 -
 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: ) status=200>
I don’t know why my content response length is 0
Here is my web.xml :
http://java.sun.com/dtd/web-app_2_3.dtd";>


jcommops-ptf

WOJarBundle
false

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



WOMainBundle
jcommops-ptf

Sets the name of the main bundle. Only used if WOJarBundle
is true



WOROOT
C:/apple_5.4.3



LOCALROOT
C:/apple_5.4.3/Local



WOAINSTALLROOT
C:/apple_5.4.3/Applications


WOClasspath

WEBINFROOT/jcommops-ptf.woa/Contents/Resources/Java/jcommops-ptf.jar




WOAppMode
development



WOApplicationClass
org.jcommops.googleEarth.ptf.Application



WOServletAdaptor
er.extensions.jspservlet.ERXServletAdaptor
5



WOServletAdaptor
/WebObjects/*


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

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (Webobjects-dev@lists.apple.com
)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/julio.ortiz%40gmt.com.co

This email sent to julio.or...@gmt.com.co 


Julio Ortiz
Director de Tecnología

*GMT / Groove Media Technologies S.A.*
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  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/hprange%40gmail.com

This email sent to hpra...@gmail.com

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: deployment on tomcat

2010-06-17 Thread Henrique Prange

Hi Laurent,

On 17/06/10 07:09, Cros Laurent wrote:



WOJarBundle
false



WOJarBundle should be true.


[...]


   WOROOT
   C:/apple_5.4.3


   LOCALROOT
   C:/apple_5.4.3/Local


   WOAINSTALLROOT
   C:/apple_5.4.3/Applications


   WOClasspath
   
  WEBINFROOT/jcommops-ptf.woa/Contents/Resources/Java/jcommops-ptf.jar
   




You don't need to declare these parameters when deploying as true WAR.

Cheers,

Henrique
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: deployment on tomcat

2010-06-17 Thread Julio Ortiz

Hi,

Since one year I only deploy my apps in Tomcat the easy way is as  
follows


1- Always deploy over JDk 1.6
2- Just Compile with ANT and copy the WEB-INF  generated directory in  
the Tomcat Context dir.
3- Do not use the er.extensions.jspservlet.ERXServletAdaptor, instead  
use com.webobjects.jspservlet.WOServletAdaptor

4- Restart Tomcat and enjoy

Julio Ortiz

Best regards


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  -  
 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: ({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 :



http://java.sun.com/dtd/web-app_2_3.dtd";>




jcommops-ptf

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

   



   WOMainBundle
   jcommops-ptf
   
   Sets the name of the  
main bundle. Only used if WOJarBundle

   is true
   



 
WOROOT
C:/apple_5.4.3
  

  
  
LOCALROOT
C:/apple_5.4.3/Local
  

  
  
WOAINSTALLROOT
C:/apple_5.4.3/Applications
  


 
WOClasspath

WEBINFROOT/jcommops-ptf.woa/Contents/Resources/Java/jcommops-ptf.jar

  









   WOAppMode
   development




   WOApplicationClassname>
   value>org.jcommops.googleEarth.ptf.Application





   WOServletAdaptorservlet-name>
   class>er.extensions.jspservlet.ERXServletAdaptor

   5





   WOServletAdaptorservlet-name>
   /WebObjects/*pattern>






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



___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/julio.ortiz%40gmt.com.co

This email sent to julio.or...@gmt.com.co



 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

deployment on tomcat

2010-06-17 Thread Cros Laurent
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  - 
 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: ) status=200>

 

I don't know why my content response length is 0

 

Here is my web.xml :

 

 

 

http://java.sun.com/dtd/web-app_2_3.dtd";>

 



 



jcommops-ptf



   WOJarBundle

   false

   

   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

   



 



   WOMainBundle

   jcommops-ptf

   

   Sets the name of the main 
bundle. Only used if WOJarBundle

   is true

   







 

WOROOT

C:/apple_5.4.3

  

 

  

  

LOCALROOT

C:/apple_5.4.3/Local

  

 

  

  

WOAINSTALLROOT

C:/apple_5.4.3/Applications

  

 



 

WOClasspath



WEBINFROOT/jcommops-ptf.woa/Contents/Resources/Java/jcommops-ptf.jar



  











 





   WOAppMode

   development



 





   WOApplicationClass

   
org.jcommops.googleEarth.ptf.Application



 





   WOServletAdaptor

   
er.extensions.jspservlet.ERXServletAdaptor

   5



 





   WOServletAdaptor

   /WebObjects/*







 

 

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

 

 

 

<> ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com