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

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

RE: problem with wonder

2010-06-16 Thread Cros Laurent
Thanks a lot Anjo it worked !

Now I am trying to create the war for my tomcat  ...

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 Anjo 
Krank
Envoyé : mardi 15 juin 2010 17:46
À : WebObjects Development
Objet : Re: problem with wonder 

Set

ERXEntityClassDescription.validateEntityClassAvailability=false

Cheers, Anjo



Am 15.06.2010 um 17:30 schrieb Cros Laurent:

> No, I don't have EO classes in packages, and I don't know how to generate the 
> classes from the EOModel.
> Actually, before I wasn't working with EO classes and it was fine,  this 
> things may be changed ? We have to generate EOClasses ?
> 
> Thanks,
> 
>  Laurent. 
> 
> -Message d'origine-
> De : Chuck Hill [mailto:ch...@global-village.net] 
> Envoyé : mardi 15 juin 2010 16:38
> À : Cros Laurent
> Cc : webobjects-dev@lists.apple.com
> Objet : Re: problem with wonder 
> 
>> ClassNotFoundException: Agency
> 
> Are your EO classes in packages?  They should be and the package needs  
> to be in the EOModel too.
> 
> 
> Chuck
> 
> On Jun 15, 2010, at 3:24 AM, Cros Laurent wrote:
> 
>> Hi guys,
>> 
>>  When I try to launch my wonder project under eclispse, I have the  
>> folowong errors, it's like wonder cannot load my eomodel
>> 
>> 
>> [2010-6-15 12:22:9 CEST]  Initialized :  
>> er.extensions.ERXExtensions
>> - Can't get path when run as jar: JavaDTWGeneration - Properties
>> - Can't get path when run as jar: JavaDTWGeneration - Properties.lcros
>> - Can't get path when run as jar: JavaDirectToWeb - Properties
>> - Can't get path when run as jar: JavaDirectToWeb - Properties.lcros
>> - Can't get path when run as jar: JavaEOProject - Properties
>> - Can't get path when run as jar: JavaEOProject - Properties.lcros
>> - Can't get path when run as jar: JavaWOJSPServlet - Properties
>> - Can't get path when run as jar: JavaWOJSPServlet - Properties.lcros
>> - Can't get path when run as jar: JavaJDBCAdaptor - Properties
>> - Can't get path when run as jar: JavaJDBCAdaptor - Properties.lcros
>> - Can't get path when run as jar: JavaXML - Properties
>> - Can't get path when run as jar: JavaXML - Properties.lcros
>> - Can't get path when run as jar: JavaEOControl - Properties
>> - Can't get path when run as jar: JavaEOControl - Properties.lcros
>> - Can't get path when run as jar: JavaEOAccess - Properties
>> - Can't get path when run as jar: JavaEOAccess - Properties.lcros
>> - Can't get path when run as jar: JavaWebObjects - Properties
>> - Can't get path when run as jar: JavaWebObjects - Properties.lcros
>> - Can't get path when run as jar: JavaFoundation - Properties
>> - Can't get path when run as jar: JavaFoundation - Properties.lcros
>> - Can't get path when run as jar: JavaWOExtensions - Properties
>> - Can't get path when run as jar: JavaWOExtensions - Properties.lcros
>> - Can't get path when run as jar: ERExtensions - Properties
>> - Can't get path when run as jar: ERExtensions - Properties.lcros
>> juin 15 12:22:10 N/A[N/A] INFO  org.apache.log4j.Logger  - Updated  
>> the logging configuration with the current system properties.
>> juin 15 12:22:10 N/A[N/A] DEBUG org.apache.log4j.Logger  -  
>> log4j.loggerFactory: null
>> juin 15 12:22:10 N/A[N/A] DEBUG org.apache.log4j.Logger  - Factory:  
>> null
>> juin 15 12:22:10 N/A[N/A] INFO  org.apache.log4j.Logger  - Updated  
>> the logging configuration with the current system properties.
>> juin 15 12:22:10 N/A[N/A] DEBUG org.apache.log4j.Logger  -  
>> log4j.loggerFactory: null
>> juin 15 12:22:10 N/A[N/A] DEBUG org.apache.log4j.Logger  - Factory:  
>> null
>> juin 15 12:22:10 N/A[N/A] WARN  NSLog  - Failed to load file:///J: 
>> \JcommopsWS\jcommops-ptf-mvn\build\jcommops-ptf-mvn.woa/Contents/ 
>> Info.plist. Treating as empty.  
>> com.webobjects.foundation.NSForwardException  
>> [java.io.FileNotFoundException] \System\Library\DTDs 
>> \PropertyList.dtd (Le chemin d'accès spécifié est  
>> introuvable):java.io.FileNotFoundException: \System\Library\DTDs 
>> \PropertyList.dtd (Le chemin d'accès spécifié est introuvable)
>> juin 15 12:22:10 N/A[N/A] DEBUG NSLog  - WebObjects version = 5.4.3
>> juin 15 12:22:10 MainBundle[N/A] DEBUG NSLog  - Created adaptor of  
>> class WODefaultAdaptor on port 2000 and address CLS-LCROS/ 
>> 10.1.254.34 with WOWorkerThread minimum of 16 and maxi

RE: problem with wonder

2010-06-15 Thread Cros Laurent
No, I don't have EO classes in packages, and I don't know how to generate the 
classes from the EOModel.
Actually, before I wasn't working with EO classes and it was fine,  this things 
may be changed ? We have to generate EOClasses ?

Thanks,

  Laurent. 

-Message d'origine-
De : Chuck Hill [mailto:ch...@global-village.net] 
Envoyé : mardi 15 juin 2010 16:38
À : Cros Laurent
Cc : webobjects-dev@lists.apple.com
Objet : Re: problem with wonder 

> ClassNotFoundException: Agency

Are your EO classes in packages?  They should be and the package needs  
to be in the EOModel too.


Chuck

On Jun 15, 2010, at 3:24 AM, Cros Laurent wrote:

> Hi guys,
>
>   When I try to launch my wonder project under eclispse, I have the  
> folowong errors, it's like wonder cannot load my eomodel
>
>
> [2010-6-15 12:22:9 CEST]  Initialized :  
> er.extensions.ERXExtensions
> - Can't get path when run as jar: JavaDTWGeneration - Properties
> - Can't get path when run as jar: JavaDTWGeneration - Properties.lcros
> - Can't get path when run as jar: JavaDirectToWeb - Properties
> - Can't get path when run as jar: JavaDirectToWeb - Properties.lcros
> - Can't get path when run as jar: JavaEOProject - Properties
> - Can't get path when run as jar: JavaEOProject - Properties.lcros
> - Can't get path when run as jar: JavaWOJSPServlet - Properties
> - Can't get path when run as jar: JavaWOJSPServlet - Properties.lcros
> - Can't get path when run as jar: JavaJDBCAdaptor - Properties
> - Can't get path when run as jar: JavaJDBCAdaptor - Properties.lcros
> - Can't get path when run as jar: JavaXML - Properties
> - Can't get path when run as jar: JavaXML - Properties.lcros
> - Can't get path when run as jar: JavaEOControl - Properties
> - Can't get path when run as jar: JavaEOControl - Properties.lcros
> - Can't get path when run as jar: JavaEOAccess - Properties
> - Can't get path when run as jar: JavaEOAccess - Properties.lcros
> - Can't get path when run as jar: JavaWebObjects - Properties
> - Can't get path when run as jar: JavaWebObjects - Properties.lcros
> - Can't get path when run as jar: JavaFoundation - Properties
> - Can't get path when run as jar: JavaFoundation - Properties.lcros
> - Can't get path when run as jar: JavaWOExtensions - Properties
> - Can't get path when run as jar: JavaWOExtensions - Properties.lcros
> - Can't get path when run as jar: ERExtensions - Properties
> - Can't get path when run as jar: ERExtensions - Properties.lcros
> juin 15 12:22:10 N/A[N/A] INFO  org.apache.log4j.Logger  - Updated  
> the logging configuration with the current system properties.
> juin 15 12:22:10 N/A[N/A] DEBUG org.apache.log4j.Logger  -  
> log4j.loggerFactory: null
> juin 15 12:22:10 N/A[N/A] DEBUG org.apache.log4j.Logger  - Factory:  
> null
> juin 15 12:22:10 N/A[N/A] INFO  org.apache.log4j.Logger  - Updated  
> the logging configuration with the current system properties.
> juin 15 12:22:10 N/A[N/A] DEBUG org.apache.log4j.Logger  -  
> log4j.loggerFactory: null
> juin 15 12:22:10 N/A[N/A] DEBUG org.apache.log4j.Logger  - Factory:  
> null
> juin 15 12:22:10 N/A[N/A] WARN  NSLog  - Failed to load file:///J: 
> \JcommopsWS\jcommops-ptf-mvn\build\jcommops-ptf-mvn.woa/Contents/ 
> Info.plist. Treating as empty.  
> com.webobjects.foundation.NSForwardException  
> [java.io.FileNotFoundException] \System\Library\DTDs 
> \PropertyList.dtd (Le chemin d'accès spécifié est  
> introuvable):java.io.FileNotFoundException: \System\Library\DTDs 
> \PropertyList.dtd (Le chemin d'accès spécifié est introuvable)
> juin 15 12:22:10 N/A[N/A] DEBUG NSLog  - WebObjects version = 5.4.3
> juin 15 12:22:10 MainBundle[N/A] DEBUG NSLog  - Created adaptor of  
> class WODefaultAdaptor on port 2000 and address CLS-LCROS/ 
> 10.1.254.34 with WOWorkerThread minimum of 16 and maximum of 256
> juin 15 12:22:10 MainBundle[2000] DEBUG  
> com.webobjects._ideservices._PBXProjectWatcher  - Installed  
> NSProjectSearchPath fix
> juin 15 12:22:10 MainBundle[2000] DEBUG  
> com.webobjects._ideservices._PBXProjectWatcher  - Found  
> NSProjectSearchPath: ("..", "../..")
> juin 15 12:22:10 MainBundle[2000] DEBUG  
> com.webobjects._ideservices._PBXProjectWatcher.Files  -  
> openProjectsAppropriateForFile /J:/JcommopsWS/jcommops-ptf-mvn/build/ 
> jcommops-ptf-mvn.woa: ()
> juin 15 12:22:10 MainBundle[2000] DEBUG  
> com.webobjects._ideservices._PBXProjectWatcher.Files  -  
> openProjectsAppropriateForFile /J:/JcommopsWS/jcommops-ptf-mvn/build/ 
> jcommops-ptf-mvn.woa: ()
> juin 15 12:22:10 MainBundle[2000] WARN  NSLog  - Application project  
> found: Will locate resour

RE: wonder maven problem

2010-06-11 Thread Cros Laurent
Hi Henrique,

  My maven version is 2.2.1

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 10 juin 2010 17:13
À : webobjects-dev@lists.apple.com
Objet : Re: wonder maven problem

Hi Laurent,

On 10/06/10 10:50, Cros Laurent wrote:
>
> [INFO] [compiler:compile]
> [INFO] Compiling 58 source files to 
> C:\JCOMMOPS\passage-sous-maven\wonder_09_201
> 0\Frameworks\Core\JavaWOExtensions\target\classes

Great. Now it seems to be Wonder 5.0.0-SNAPSHOT source.

> [INFO] 
> 
> [ERROR] FATAL ERROR
> [INFO] 
> 
> [INFO] loader constraint violation: loader (instance of 
> org/codehaus/classworlds
> /RealmClassLoader) previously initiated loading for a different type with 
> name "
> org/codehaus/plexus/component/repository/ComponentDescriptor"

Which Maven version?

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/JV!eHy7WGwvTndxI!oX7UsS4EM7lwkAjmyuzCn44ScQ21hL9OpV6!rYhOe2XLkjvt!8eMRt!Cub63Umxp4EWgA==
  
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: wonder maven problem

2010-06-10 Thread Cros Laurent
HI,

  I am moving forward, I changed my maven version and it's far better.

So it build the following frameworks :

ERExtensions
JavaWOExtensions

But it failed to build the ERDirectToWeb Framework :


[INFO] 
[INFO] Building ERDirectToWeb Framework
[INFO]task-segment: [clean, install]
[INFO] 
[INFO] [clean:clean {execution: default-clean}]
[INFO] Deleting directory C:\JCOMMOPS\passage-sous-maven\wonder_09_2010\Framewor
ks\Core\ERDirectToWeb\target
[INFO] [wolifecycle:define-woframework-resources {execution: default-define-wofr
amework-resources}]
[INFO] Creating output folders
[INFO] Defining WO resources
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\JCOMMOPS\passage-sous-maven\wonder
_09_2010\Frameworks\Core\ERDirectToWeb\src\main\resources
[INFO] Copying 179 resources to ../ERDirectToWeb.framework\Resources
[INFO] Copying 552 resources to ../ERDirectToWeb.framework\Resources
[INFO] Copying 8 resources to ../ERDirectToWeb.framework\Resources
[INFO] Copying 2 resources to ../ERDirectToWeb.framework\Resources\Dutch.lproj
[INFO] Copying 2 resources to ../ERDirectToWeb.framework\Resources\English.lproj

[INFO] Copying 2 resources to ../ERDirectToWeb.framework\Resources\French.lproj
[INFO] Copying 2 resources to ../ERDirectToWeb.framework\Resources\German.lproj
[INFO] Copying 2 resources to ../ERDirectToWeb.framework\Resources\Italian.lproj

[INFO] Copying 2 resources to ../ERDirectToWeb.framework\Resources\Japanese.lpro
j
[INFO] Copying 2 resources to ../ERDirectToWeb.framework\Resources\Norwegian.lpr
oj
[INFO] Copying 7 resources to ../ERDirectToWeb.framework\WebServerResources
Downloading: http://maven.wocommunity.org/content/groups/public/com/webobjects/J
avaDirectToWeb/5.4.3/JavaDirectToWeb-5.4.3.pom
[INFO] Unable to find resource 'com.webobjects:JavaDirectToWeb:pom:5.4.3' in rep
ository wocommunity.releases (http://maven.wocommunity.org/content/groups/public
)
Downloading: http://mvnrepo.cls.fr:8081/nexus/content/groups/public/com/webobjec
ts/JavaDirectToWeb/5.4.3/JavaDirectToWeb-5.4.3.pom
[INFO] Unable to find resource 'com.webobjects:JavaDirectToWeb:pom:5.4.3' in rep
ository central (http://repo1.maven.org/maven2)
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Compiling 300 source files to C:\JCOMMOPS\passage-sous-maven\wonder_09_20
10\Frameworks\Core\ERDirectToWeb\target\classes
[INFO] 
[ERROR] BUILD FAILURE
[INFO] 
[INFO] Compilation failure

C:\JCOMMOPS\passage-sous-maven\wonder_09_2010\Frameworks\Core\ERDirectToWeb\Sour
ces\er\directtoweb\components\ERD2WStatelessComponent.java:[9,7] cannot access c
om.webobjects.directtoweb.generation.DTWGeneration
class file for com.webobjects.directtoweb.generation.DTWGeneration not found
public class ERD2WStatelessComponent extends D2WStatelessComponent {

C:\JCOMMOPS\passage-sous-maven\wonder_09_2010\Frameworks\Core\ERDirectToWeb\Sour
ces\er\directtoweb\components\ERD2WStatelessComponent.java:[33,8] cannot find sy
mbol
symbol  : variable super
location: class er.directtoweb.components.ERD2WStatelessComponent

C:\JCOMMOPS\passage-sous-maven\wonder_09_2010\Frameworks\Core\ERDirectToWeb\Sour
ces\er\directtoweb\components\ERD2WStatelessComponent.java:[34,50] cannot find s
ymbol
symbol  : method getClass()
location: class er.directtoweb.components.ERD2WStatelessComponent

C:\JCOMMOPS\passage-sous-maven\wonder_09_2010\Frameworks\Core\ERDirectToWeb\Sour
ces\er\directtoweb\components\ERD2WStatelessComponent.java:[29,4] method does no
t override or implement a method from a supertype


[INFO] 
[INFO] For more information, run Maven with the -e switch
[INFO] 
[INFO] Total time: 1 minute 9 seconds
[INFO] Finished at: Thu Jun 10 16:35:25 CEST 2010
[INFO] Final Memory: 38M/63M
[INFO] 

C:\JCOMMOPS\passage-sous-maven\wonder_09_2010>


It seems that the resources 'com.webobjects:JavaDirectToWeb:pom:5.4.3' is not 
found in the wocommounity maven repository !

If someone could have the solution that would be great !

Do you know if there a wonder and/or maven mailing list .

Thanks a lot guys !
 
  laurent

-Message d'origine-
De : Cros Laurent 
Envoyé : jeudi 10 juin 2010 15:51
À : 'Henrique Prange'; webobjects-dev@lists.apple.com
Cc : wonder-...@lists.sourceforge.net
Objet : RE: wonder maven problem

Henrique,

  That what I though.

So I take the latest wonder source (dat

RE: wonder maven problem

2010-06-10 Thread Cros Laurent
5:49:15 CEST 2010
[INFO] Final Memory: 30M/55M
[INFO] 

C:\JCOMMOPS\passage-sous-maven\wonder_09_2010>



Thanks for the help.

  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 10 juin 2010 15:16
À : webobjects-dev@lists.apple.com
Cc : wonder-...@lists.sourceforge.net
Objet : Re: wonder maven problem

Hi Laurent,

On 10/06/10 06:37, Cros Laurent wrote:

>
> [INFO] Installing C:\Apple\wonder\5.4\src\Wonder\Common\pom.xml to
> C:\Documents and
> Settings\lcros\.m2\repository\wonder\common\common\4.0.0-SNAPSHOT\common-4.0.0-SNAPSHOT.pom

Looks like you are trying to build a very old version of Wonder. I don't 
think Wonder 4.0.0-SNAPSHOT was completely mavenized. Did you download 
the source code from trunk?

By the way, it is probably easier to proxy the WOCommunity Maven 
repository in your Nexus instance if you want the latest version of 
Wonder libraries.

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/HM+OOTdU5dPTndxI!oX7UlK7uOqmL!e83NW!I+S7FSSjuisqey8jqRJ4ZeL58NzKt!8eMRt!CuazpFBU8KFm0g==
  
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


maven repository access problem

2010-06-09 Thread Cros Laurent
Hi all,

 

 I am trying to add the wonder project to maven.

 

I change my settings.xml according to the following document :

http://wiki.objectstyle.org/confluence/display/WOL/Quick+Start#QuickStart-Step2%3AConfiguringyourMavenSettings

 

But all the maven repositories can't be accessible  :

http://maven.wocommunity.org/content/groups/public

http://maven.wocommunity.org/content/groups/public-snapshots

http://maven.wocommunity.org/content/groups/public

http://maven.wocommunity.org/content/groups/public-snapshots

 

 

Could you tell me if all these links are just down today, or the wocommunity 
maven repositories moved to a new location ?

 

Thanks a lot.

 

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