You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by uglything <ju...@gmail.com> on 2008/06/05 11:52:06 UTC

OpenEJB.war outside webapps

Hello everyone.


I'm trying to work with Tomcat6, OpenEJB3, Maven and Eclipse.


I have a tomcat6 installation with OpenEJB3 installed on it.

I would like to both from Eclipse via a launcher in which I would set the
catalina.base and openejb.base properties to address a customized /conf
directory.

This conf directory resides outside the tomcat6 installation directory.


My webapp is somewhere else too, so I would like to add a personalized
context in my server.xml file...

I hope my intention is clear, but I'll sumup a bit :


I launch Tomcat with the following arguments :



-Dcatalina.home="C:\apache-tomcat-6.0.14" -Dcatalina.base="C:\MyApp\tomcat"
-Dopenejb.home="C:\apache-tomcat-6.0.14" -Dopenejb.base="C:\MyApp\tomcat"


The MyApp dir is as follows :



MyApp
+--- tomcat
|     + server.xml
|     + openejb.xml
|     + web.xml
|     + logging.properties, catalina.policy, catalina.properties,
context.xml, tomcat-users.xml
+--- webapps
|     + openejb
|     + MyWebApp
+--- src   (as per Maven2 layout)
+--- target   (as per Maven2 layout)
      + MyWebApp


So far so good.

When I start Tomcat, everything works just fine.


The server.xml contains just Service/Engine/Host, Host points to
MyApp/webapps and the two contexts are guessed as expected.


The problems arrise when I try to locate MyWebApp elsewhere (namely in
MyApp/target/MyWebApp).


To do so, I deleted the MyApp/webapps/MyWebApp dir and changed the
server.xml to add the new context :



     &lt;Context docBase="../../target/MyWebApp" /&gt;


Nothing complex... But Tomcat tries to load MyWebApp before openejb, as
expected from the specifications... Hence the deployment fails.



Well, to address that, I tried to add explicitely the openejb context before
MyWebApp :



     &lt;Context docBase="openejb" /&gt;
     &lt;Context docBase="../../target/MyWebApp" /&gt;


Then the startup fails... I then tried to start just openEJB by removing the
MyWebApp context from the server.xml... Same exception...

Here is the exception for the sake of completeness, but I think it will be
of no help...


5 juin 2008 11:41:09 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: C:\Program
Files\Java\jdk1.5.0_13\bin;.;C:\WINNT\system32;C:\WINNT;C:\Program
Files\Java\jdk1.5.0_13\jre\bin;C:\program
files\java\jdk1.5.0_13\bin\..\jre\bin\client;C:\program
files\java\jdk1.5.0_13\bin\..\jre\bin;C:\program
files\java\jdk1.5.0_13\bin;N:\Framework\etc;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program
Files\Rational\common;C:\SFU\common\;C:\Program Files\Fichiers
communs\GTK\2.0\bin;C:\Program Files\MySQL\MySQL Server
5.0\bin;C:\Python25;C:\Python25\Scripts;C:\Program
Files\QuickTime\QTSystem\;C:\apache-2.2\php5;C:\apache-2.2\bin;C:\maven\bin;C:\Program
Files\PuTTY;N:\Framework\etc;C:\Perl\bin;C:\program
files\java\jdk1.5.0_13\bin;C:\program
files\java\jdk1.5.0_13\bin;N:\Framework\etc;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program
Files\Rational\common;C:\SFU\common\;C:\Program Files\Fichiers
communs\GTK\2.0\bin;C:\Program Files\MySQL\MySQL Server
5.0\bin;C:\Python25;C:\Python25\Scripts;C:\Program Files\QuickTime\QTSystem\
5 juin 2008 11:41:09 org.apache.coyote.http11.Http11Protocol init
INFO: Initialisation de Coyote HTTP/1.1 sur http-8080
5 juin 2008 11:41:09 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1224 ms
5 juin 2008 11:41:09 org.apache.catalina.realm.JAASRealm setContainer
INFO: Set JAAS app name Catalina
5 juin 2008 11:41:09 org.apache.catalina.mbeans.ServerLifecycleListener
createMBeans
GRAVE: createMBeans: Throwable
java.lang.NullPointerException
	at
org.apache.catalina.mbeans.MBeanUtils.createObjectName(MBeanUtils.java:1080)
	at org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:497)
	at
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:570)
	at
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:366)
	at
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:535)
	at
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:498)
	at
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:660)
	at
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:628)
	at
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:278)
	at
org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEvent(ServerLifecycleListener.java:129)
	at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:703)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
5 juin 2008 11:41:09 org.apache.catalina.core.StandardService start
INFO: Démarrage du service Catalina
5 juin 2008 11:41:09 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.14
5 juin 2008 11:41:09 org.apache.catalina.startup.Catalina start
GRAVE: Catalina.start: 
LifecycleException:  Error initializaing :  java.lang.NullPointerException
	at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4075)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
	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.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
5 juin 2008 11:41:09 org.apache.catalina.startup.Catalina start
INFO: Server startup in 156 ms


Since then I'm stuck.

Have I missed something ???

If you have any suggestion, feel free


Regards,


Juan Manuel
-- 
View this message in context: http://www.nabble.com/OpenEJB.war-outside-webapps-tp17666227p17666227.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: OpenEJB.war outside webapps

Posted by uglything <ju...@gmail.com>.
Well, I installed your war, set the openejb.war env and everything works
perfectly now !

Thanks again Dain !

Regards,
Juan Manuel

-- 
View this message in context: http://www.nabble.com/OpenEJB.war-outside-webapps-tp17666227p17773425.html
Sent from the OpenEJB User mailing list archive at Nabble.com.


Re: OpenEJB.war outside webapps

Posted by Dain Sundstrom <da...@iq80.com>.
The exception is caused when the listener fails to find the  
openejb.war file.  I think the code is only scanning the webapps  
directory, but there may even be a bug in that for Tomcat 6.

In the mean time, I added a System property "openejb.war" which we  
will use to locate the openejb.war file.  You can find a build of the  
openejb.war, which contains this patch here:

	http://people.apache.org/~dain/openejb.war

I also create issue OPENEJB-819 to track this bug.

-dain

On Jun 10, 2008, at 12:27 AM, uglything wrote:

>
> Hello Dain,
>
> Don't worry for the late reply, I'm not in a hurry :-)
> I hope that your client has come to better feelings now ;-)
>
> I get things to work by declaring the contexts in the Catalina/ 
> localhost
> repository in the tomcat conf dir.
>
> My layout is as follow :
>
> MyProject/
>        +-- src/
>        |        +-- main/
>        |        |        +-- java/
>        |        |        +-- resources/
>        |        |        +-- webapps/
>        |        |                +-- WEB-INF/
>        |        |                        +-- web.xml
>        |        +-- test/
>        |                +-- java/
>        |                +-- resources/
>        +-- target/
>        |        +-- MyProject-0.0.1-SNAPSHOT/
>        |        |        +-- META-INF/ (empty)
>        |        |        +-- WEB-INF/
>        |        |                +-- classes/
>        |        |                +-- lib/ (No OpenEJB jars in here)
>        |        |                +-- web.xml
>        |        +-- classes/
>        |        +-- test-classes/
>        |        +-- war/
>        |        +-- MyProject.war
>        +-- target-eclipse/ (Compilation directory for Eclipse)
> +-- runtime/ (directory that acts as catalina.base and openejb.base)
>                +-- conf/
>                |        +-- Catalina/
>                |        |        +-- localhost/
>                |        |                +-- openejb.xml
>                |        |                +-- MyProject.xml
>                |        +-- context.xml
>                |        +-- logging.properties
>                |        +-- openejb.xml
>                |        +-- server.xml
>                |        +-- web.xml
>                +-- logs/ (logs)
>                +-- temp/ (acts as java.io.tmpdir)
>                +-- txlog/ (logs)
>                +-- webapps/ (empty, serves as appBase for the  
> localhost
> host in server.xml)
>                +-- work/
>
>
> Here above, the contents of some important files:
>
> #########################################################################
> Server.xml: I took the one in the tomcat install. I just added the  
> OpenEJB
> listener and trimmed the comments.
>
> <Server port="8005" shutdown="SHUTDOWN">
>
>  <Listener  
> className="org.apache.openejb.tomcat.loader.OpenEJBListener" />
>  <Listener className="org.apache.catalina.core.AprLifecycleListener"
> SSLEngine="on" />
>  <Listener className="org.apache.catalina.core.JasperListener" />
>  <Listener  
> className="org.apache.catalina.mbeans.ServerLifecycleListener"
> />
>  <Listener
> className 
> ="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
>
>  <GlobalNamingResources>
>  </GlobalNamingResources>
>
>  <Service name="Catalina">
>
>    <Connector port="8080" protocol="HTTP/1.1"
>               connectionTimeout="20000"
>               redirectPort="8443" />
>    <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
>
>    <Engine name="Catalina" defaultHost="localhost">
>      <Host name="localhost"  appBase="webapps"
>            unpackWARs="false" autoDeploy="true"
>            xmlValidation="false" xmlNamespaceAware="false">
>
>      </Host>
>    </Engine>
>  </Service>
> </Server>
> #########################################################################
>
> #########################################################################
> openejb.xml: well, nothing special. I copied the one created by a  
> default
> installation
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <Context docBase="C:\apache-tomcat-6.0.14\webapps\openejb" >
>  <Valve className="org.apache.catalina.valves.RemoteAddrValve"
> allow="127\.0\.0\.1,0:0:0:0:0:0:0:1(%.*)?" deny=""/>
> </Context>
> #########################################################################
>
> #########################################################################
> MyProject.xml: Here again, nothing sexy.
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <Context docBase="../../target/MyProject-0.0.1-SNAPSHOT" />
> #########################################################################
>
> #########################################################################
> openejb.xml: I removed defaults and inserted a database for my project
>
> <openejb>
> 	<Resource id="commonsDatabase" type="javax.sql.DataSource">
> 		JdbcDriver : com.mysql.jdbc.Driver
> 		JdbcUrl : jdbc:mysql://localhost:3306/ccv?useUnicode=true
> 		UserName : ccvusr
> 		Password : ccvpwd
> 	</Resource>
> 	
> 	<Resource id="commonsDatabaseUnmanaged" type="javax.sql.DataSource">
> 		JdbcDriver : com.mysql.jdbc.Driver
> 		JdbcUrl : jdbc:mysql://localhost:3306/ccv?useUnicode=true
> 		UserName : ccvusr
> 		Password : ccvpwd
> 		JtaManaged : false
> 	</Resource>
> </openejb>
> #########################################################################
>
> #########################################################################
> context.xml: Again, this is the original file took from a clean  
> install of
> Tomcat 6 whith comments trimmed.
>
> <Context>
>    <WatchedResource>WEB-INF/web.xml</WatchedResource>
> </Context>
> #########################################################################
>
>
>
>
>
>
>
> This is the configuration I use to start the server in Eclipse :
> VM args:
> 	-Dcatalina.home="C:\apache-tomcat-6.0.14"
> 	-Dcatalina.base="."
> 	-Dopenejb.home="C:\apache-tomcat-6.0.14"
> 	-Dopenejb.base="."
> 	-Djava.io.tmpdir="temp"
> 	-Xmx128M
> 	-javaagent:"C:\apache-tomcat-6.0.14\lib\openejb-javaagent.jar"
>
> Main class:
> 	org.apache.catalina.startup.Bootstrap
>
> Program arguments:
> 	start
>
> Classpath:
> C:\apache-tomcat-6.0.14\bin\bootstrap.jar
>
> Working directory:
> 	MyProject/runtime/
>
>
> When I start the server, I get the following exception :
> java.lang.NullPointerException
> 	at
> org 
> .apache 
> .openejb 
> .tomcat.loader.OpenEJBListener.lifecycleEvent(OpenEJBListener.java:46)
> 	at
> org 
> .apache 
> .catalina 
> .util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
> 	at
> org 
> .apache.catalina.core.StandardServer.initialize(StandardServer.java: 
> 767)
> 	at org.apache.catalina.startup.Catalina.load(Catalina.java:518)
> 	at org.apache.catalina.startup.Catalina.load(Catalina.java:538)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at
> sun 
> .reflect 
> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at
> sun 
> .reflect 
> .DelegatingMethodAccessorImpl 
> .invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:585)
> 	at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
> 	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
> 10 juin 2008 09:01:23 org.apache.catalina.realm.JAASRealm setContainer
> INFO: Set JAAS app name Catalina
> 10 juin 2008 09:01:23 org.apache.coyote.http11.Http11AprProtocol init
> INFO: Initialisation de Coyote HTTP/1.1 sur http-8080
> 10 juin 2008 09:01:23 org.apache.coyote.ajp.AjpAprProtocol init
> INFO: Initializing Coyote AJP/1.3 on ajp-8009
> 10 juin 2008 09:01:23 org.apache.catalina.core.StandardService start
> INFO: Démarrage du service Catalina
> 10 juin 2008 09:01:23 org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/6.0.14
>
>
>
> After that, everything works fine, except that the openejb doesn't  
> load at
> the beginning but rather as per Tomcat's context loading rules
> (alphabetically, that is)
>
> So openejb starts first only if my project bears a context name that  
> is
> alphabetically after "openejb". I had to rename MyProject.xml to
> zMyProject.xml to get that…
>
> I've found this loader + eclipse problem in another post on this  
> forum:
> http://www.nabble.com/forum/ViewPost.jtp?post=16419231&framed=y
>
>
> SO,
>
> To sum up a bit :
>
> If I declare the contexts for openEJB and my application inside the
> server.xml something fails.
> If I declare the same contexts in the Catalina/localhost directory,
> everything works fine except for the OpenEJB loader that fails with  
> a NPE.
>
> Well I hope that you have a better sight of my project now…
> If you need more info, I'll be glad to provide you with an Eclipse  
> project
> that produce these conditions.	
>
> Again, thanks **a lot** for your concern.
>
> Regards,
>
> Juan Manuel
>
> -- 
> View this message in context: http://www.nabble.com/OpenEJB.war-outside-webapps-tp17666227p17749351.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>


Re: OpenEJB.war outside webapps

Posted by uglything <ju...@gmail.com>.
Hello Dain,

Don't worry for the late reply, I'm not in a hurry :-)
I hope that your client has come to better feelings now ;-)

I get things to work by declaring the contexts in the Catalina/localhost
repository in the tomcat conf dir.

My layout is as follow :

MyProject/
        +-- src/
        |        +-- main/
        |        |        +-- java/
        |        |        +-- resources/
        |        |        +-- webapps/
        |        |                +-- WEB-INF/
        |        |                        +-- web.xml
        |        +-- test/
        |                +-- java/
        |                +-- resources/
        +-- target/
        |        +-- MyProject-0.0.1-SNAPSHOT/
        |        |        +-- META-INF/ (empty)
        |        |        +-- WEB-INF/
        |        |                +-- classes/
        |        |                +-- lib/ (No OpenEJB jars in here)
        |        |                +-- web.xml
        |        +-- classes/
        |        +-- test-classes/
        |        +-- war/
        |        +-- MyProject.war
        +-- target-eclipse/ (Compilation directory for Eclipse)
+-- runtime/ (directory that acts as catalina.base and openejb.base)
                +-- conf/
                |        +-- Catalina/
                |        |        +-- localhost/
                |        |                +-- openejb.xml
                |        |                +-- MyProject.xml
                |        +-- context.xml
                |        +-- logging.properties
                |        +-- openejb.xml
                |        +-- server.xml
                |        +-- web.xml
                +-- logs/ (logs)
                +-- temp/ (acts as java.io.tmpdir)
                +-- txlog/ (logs)
                +-- webapps/ (empty, serves as appBase for the localhost
host in server.xml)
                +-- work/


Here above, the contents of some important files:

#########################################################################
Server.xml: I took the one in the tomcat install. I just added the OpenEJB
listener and trimmed the comments.

<Server port="8005" shutdown="SHUTDOWN">

  <Listener className="org.apache.openejb.tomcat.loader.OpenEJBListener" />
  <Listener className="org.apache.catalina.core.AprLifecycleListener"
SSLEngine="on" />
  <Listener className="org.apache.catalina.core.JasperListener" />
  <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"
/>
  <Listener
className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />

  <GlobalNamingResources>
  </GlobalNamingResources>

  <Service name="Catalina">
  
    <Connector port="8080" protocol="HTTP/1.1" 
               connectionTimeout="20000" 
               redirectPort="8443" />
    <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />

    <Engine name="Catalina" defaultHost="localhost">
      <Host name="localhost"  appBase="webapps"
            unpackWARs="false" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">
            
      </Host>
    </Engine>
  </Service>
</Server>
#########################################################################

#########################################################################
openejb.xml: well, nothing special. I copied the one created by a default
installation

<?xml version="1.0" encoding="ISO-8859-1"?>
<Context docBase="C:\apache-tomcat-6.0.14\webapps\openejb" >
  <Valve className="org.apache.catalina.valves.RemoteAddrValve"
allow="127\.0\.0\.1,0:0:0:0:0:0:0:1(%.*)?" deny=""/>
</Context>
#########################################################################

#########################################################################
MyProject.xml: Here again, nothing sexy.

<?xml version="1.0" encoding="ISO-8859-1"?>
<Context docBase="../../target/MyProject-0.0.1-SNAPSHOT" />
#########################################################################

#########################################################################
openejb.xml: I removed defaults and inserted a database for my project

<openejb>
	<Resource id="commonsDatabase" type="javax.sql.DataSource">
		JdbcDriver : com.mysql.jdbc.Driver
		JdbcUrl : jdbc:mysql://localhost:3306/ccv?useUnicode=true
		UserName : ccvusr
		Password : ccvpwd
	</Resource>
	
	<Resource id="commonsDatabaseUnmanaged" type="javax.sql.DataSource">
		JdbcDriver : com.mysql.jdbc.Driver
		JdbcUrl : jdbc:mysql://localhost:3306/ccv?useUnicode=true
		UserName : ccvusr
		Password : ccvpwd
		JtaManaged : false
	</Resource>
</openejb>
#########################################################################

#########################################################################
context.xml: Again, this is the original file took from a clean install of
Tomcat 6 whith comments trimmed.

<Context>
    <WatchedResource>WEB-INF/web.xml</WatchedResource>
</Context>
#########################################################################







This is the configuration I use to start the server in Eclipse :
VM args:
	-Dcatalina.home="C:\apache-tomcat-6.0.14"
	-Dcatalina.base="."
	-Dopenejb.home="C:\apache-tomcat-6.0.14"
	-Dopenejb.base="."
	-Djava.io.tmpdir="temp"
	-Xmx128M
	-javaagent:"C:\apache-tomcat-6.0.14\lib\openejb-javaagent.jar"

Main class:
	org.apache.catalina.startup.Bootstrap

Program arguments:
	start

Classpath:
C:\apache-tomcat-6.0.14\bin\bootstrap.jar

Working directory:
	MyProject/runtime/


When I start the server, I get the following exception :
java.lang.NullPointerException
	at
org.apache.openejb.tomcat.loader.OpenEJBListener.lifecycleEvent(OpenEJBListener.java:46)
	at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
	at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:767)
	at org.apache.catalina.startup.Catalina.load(Catalina.java:518)
	at org.apache.catalina.startup.Catalina.load(Catalina.java:538)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
10 juin 2008 09:01:23 org.apache.catalina.realm.JAASRealm setContainer
INFO: Set JAAS app name Catalina
10 juin 2008 09:01:23 org.apache.coyote.http11.Http11AprProtocol init
INFO: Initialisation de Coyote HTTP/1.1 sur http-8080
10 juin 2008 09:01:23 org.apache.coyote.ajp.AjpAprProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-8009
10 juin 2008 09:01:23 org.apache.catalina.core.StandardService start
INFO: Démarrage du service Catalina
10 juin 2008 09:01:23 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.14



After that, everything works fine, except that the openejb doesn't load at
the beginning but rather as per Tomcat's context loading rules
(alphabetically, that is)

So openejb starts first only if my project bears a context name that is
alphabetically after "openejb". I had to rename MyProject.xml to
zMyProject.xml to get that…

I've found this loader + eclipse problem in another post on this forum:
http://www.nabble.com/forum/ViewPost.jtp?post=16419231&framed=y


SO,

To sum up a bit :

If I declare the contexts for openEJB and my application inside the
server.xml something fails.
If I declare the same contexts in the Catalina/localhost directory,
everything works fine except for the OpenEJB loader that fails with a NPE.

Well I hope that you have a better sight of my project now…
If you need more info, I'll be glad to provide you with an Eclipse project
that produce these conditions.	

Again, thanks **a lot** for your concern.

Regards,

Juan Manuel

-- 
View this message in context: http://www.nabble.com/OpenEJB.war-outside-webapps-tp17666227p17749351.html
Sent from the OpenEJB User mailing list archive at Nabble.com.


Re: OpenEJB.war outside webapps

Posted by Dain Sundstrom <da...@iq80.com>.
Sorry for the late reply.  I sent one earlier, but my mail client  
locked-up internally and decided to stop sending mail :(

On Jun 6, 2008, at 3:09 AM, uglything wrote:

> I still have a problem when I explicitely set a new context in the
> server.xml...
>
> OpenEJB loads first, but when MyWebApp loads, the following  
> exception arises
> :
>
>
>
> ERROR - Unable to load web.xml in war testMain: Exception: Cannot  
> read the
> web.xml file: jndi:/localhost/testMain/WEB-INF/web.xml: null
> org.apache.openejb.OpenEJBException: Cannot read the web.xml file:
> jndi:/localhost/testMain/WEB-INF/web.xml: null
> 	at
> org 
> .apache 
> .openejb.config.ReadDescriptors.readWebApp(ReadDescriptors.java:474)
> 	at
> org 
> .apache 
> .openejb 
> .tomcat 
> .catalina 
> .TomcatWebAppBuilder.createWebModule(TomcatWebAppBuilder.java:595)
> 	at
> org 
> .apache 
> .openejb 
> .tomcat 
> .catalina 
> .TomcatWebAppBuilder.loadApplication(TomcatWebAppBuilder.java:526)
> 	at
> org 
> .apache 
> .openejb 
> .tomcat.catalina.TomcatWebAppBuilder.start(TomcatWebAppBuilder.java: 
> 229)
> 	at
> org 
> .apache 
> .openejb 
> .tomcat 
> .catalina 
> .GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:58)
> 	at
> org 
> .apache 
> .catalina 
> .util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
> 	at
> org.apache.catalina.core.StandardContext.start(StandardContext.java: 
> 4239)
> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java: 
> 1045)
> 	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.java:39)
> 	at
> sun 
> .reflect 
> .DelegatingMethodAccessorImpl 
> .invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:585)
> 	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
> 	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> Caused by: java.io.FileNotFoundException
> 	at
> org 
> .apache 
> .naming 
> .resources 
> .DirContextURLConnection.getInputStream(DirContextURLConnection.java: 
> 298)
> 	at java.net.URL.openStream(URL.java:1007)
> 	at
> org 
> .apache 
> .openejb.config.ReadDescriptors.readWebApp(ReadDescriptors.java:468)
> 	... 19 more
>
>
> Strange, isn't it ?

Is the web.xml file located in the WEB-INF directory, or is it in  
another location due to the Maven build?  Actually, can you describe  
the file layout you are using?

> The rest of the ejb-jars loads correctly, but I have a problem then  
> in a
> servlet :
>
>
> INFO  - schema update complete
> INFO  - Jndi(name=ConcreteChildOneManagerImplLocal) -->
> Ejb(deployment-id=ConcreteChildOneManagerImpl)
> INFO  - Created Ejb(deployment-id=ConcreteChildOneManagerImpl,
> ejb-name=ConcreteChildOneManagerImpl, container=Default Stateless  
> Container)
> INFO  - Jndi(name=MyTestBeanLocal) --> Ejb(deployment-id=MyTestBean)
> INFO  - Created Ejb(deployment-id=MyTestBean, ejb-name=MyTestBean,
> container=Default Stateless Container)
> INFO  - Jndi(name=ConcreteChildTwoManagerImplLocal) -->
> Ejb(deployment-id=ConcreteChildTwoManagerImpl)
> INFO  - Created Ejb(deployment-id=ConcreteChildTwoManagerImpl,
> ejb-name=ConcreteChildTwoManagerImpl, container=Default Stateless  
> Container)
> INFO  - Deployed
> Application(path=D:\projets\CCV-Core\CCV-Core-TestMain 
> \tomcat1\webapps\..\..\target\CCV-Core-TestMain-0.0.1-SNAPSHOT)
> 6 juin 2008 11:46:17 org.apache.catalina.core.StandardContext  
> listenerStart
> GRAVE: Erreur lors de la configuration de la classe d'écoute de
> l'application (application listener) LaunchTest
> javax.naming.NameNotFoundException: Le Nom LaunchTest n'est pas lié  
> à ce
> Contexte
> 	at org.apache.naming.NamingContext.lookup(NamingContext.java:770)
> 	at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
> 	at
> org 
> .apache 
> .catalina 
> .util 
> .DefaultAnnotationProcessor 
> .lookupFieldResource(DefaultAnnotationProcessor.java:203)
> 	at
> org 
> .apache 
> .catalina 
> .util 
> .DefaultAnnotationProcessor 
> .processAnnotations(DefaultAnnotationProcessor.java:139)
> 	at
> org 
> .apache 
> .catalina.core.StandardContext.listenerStart(StandardContext.java: 
> 3777)
>
> The message of the exception could be translated in plain ol'  
> english as
> follow :
>
> ERROR: Error while configuring the application listener LaunchTest
> javax.naming.NameNotFoundException: The Name LaunchTest isn't bound  
> to any
> context

I'm going to have to look into this one.  It could be caused by the  
failure to load the web.xml or something else.  I'll add some more  
extensive tests for servlet listener injection.

-dain



Re: OpenEJB.war outside webapps

Posted by uglything <ju...@gmail.com>.

Dain Sundstrom wrote:
> 
> 
> 
> On Jun 5, 2008, at 2:52 AM, uglything wrote:
> 
>> 
>> Nothing complex... But Tomcat tries to load MyWebApp before openejb,  
>> as
>> expected from the specifications... Hence the deployment fails.
>>
>>
>>
>> Well, to address that, I tried to add explicitely the openejb  
>> context before
>> MyWebApp :
>>
>>
>>
>>     &lt;Context docBase="openejb" /&gt;
>>     &lt;Context docBase="../../target/MyWebApp" /&gt;
> 
> If you add the OpenEJBListener to the server.xml file, OpenEJB will  
> always initialize first.  Simply copy the openejb-javaagent.jar file  
> to the Tomcat lib directory, and add this declaration at the top of  
> the server.xml file:
> 
>    
>    
> 
> Since Tomcat starts components in the order they are declared in the  
> server.xml file, OpenEJB will guaranteed to be running by the time  
> your application is deployed.
> 
> -dain
> 
> 
> 


Thanks dain, that was helpful.


I installed the javaagent and the openejb context loads at tomcat startup
prior to anything else.

Now my context discovered in the webapps loads at the correct time.


I still have a problem when I explicitely set a new context in the
server.xml...

OpenEJB loads first, but when MyWebApp loads, the following exception arises
:



ERROR - Unable to load web.xml in war testMain: Exception: Cannot read the
web.xml file: jndi:/localhost/testMain/WEB-INF/web.xml: null
org.apache.openejb.OpenEJBException: Cannot read the web.xml file:
jndi:/localhost/testMain/WEB-INF/web.xml: null
	at
org.apache.openejb.config.ReadDescriptors.readWebApp(ReadDescriptors.java:474)
	at
org.apache.openejb.tomcat.catalina.TomcatWebAppBuilder.createWebModule(TomcatWebAppBuilder.java:595)
	at
org.apache.openejb.tomcat.catalina.TomcatWebAppBuilder.loadApplication(TomcatWebAppBuilder.java:526)
	at
org.apache.openejb.tomcat.catalina.TomcatWebAppBuilder.start(TomcatWebAppBuilder.java:229)
	at
org.apache.openejb.tomcat.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:58)
	at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
	at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4239)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
	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.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.io.FileNotFoundException
	at
org.apache.naming.resources.DirContextURLConnection.getInputStream(DirContextURLConnection.java:298)
	at java.net.URL.openStream(URL.java:1007)
	at
org.apache.openejb.config.ReadDescriptors.readWebApp(ReadDescriptors.java:468)
	... 19 more


Strange, isn't it ?


The rest of the ejb-jars loads correctly, but I have a problem then in a
servlet :


INFO  - schema update complete
INFO  - Jndi(name=ConcreteChildOneManagerImplLocal) -->
Ejb(deployment-id=ConcreteChildOneManagerImpl)
INFO  - Created Ejb(deployment-id=ConcreteChildOneManagerImpl,
ejb-name=ConcreteChildOneManagerImpl, container=Default Stateless Container)
INFO  - Jndi(name=MyTestBeanLocal) --> Ejb(deployment-id=MyTestBean)
INFO  - Created Ejb(deployment-id=MyTestBean, ejb-name=MyTestBean,
container=Default Stateless Container)
INFO  - Jndi(name=ConcreteChildTwoManagerImplLocal) -->
Ejb(deployment-id=ConcreteChildTwoManagerImpl)
INFO  - Created Ejb(deployment-id=ConcreteChildTwoManagerImpl,
ejb-name=ConcreteChildTwoManagerImpl, container=Default Stateless Container)
INFO  - Deployed
Application(path=D:\projets\CCV-Core\CCV-Core-TestMain\tomcat1\webapps\..\..\target\CCV-Core-TestMain-0.0.1-SNAPSHOT)
6 juin 2008 11:46:17 org.apache.catalina.core.StandardContext listenerStart
GRAVE: Erreur lors de la configuration de la classe d'écoute de
l'application (application listener) LaunchTest
javax.naming.NameNotFoundException: Le Nom LaunchTest n'est pas lié à ce
Contexte
	at org.apache.naming.NamingContext.lookup(NamingContext.java:770)
	at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
	at
org.apache.catalina.util.DefaultAnnotationProcessor.lookupFieldResource(DefaultAnnotationProcessor.java:203)
	at
org.apache.catalina.util.DefaultAnnotationProcessor.processAnnotations(DefaultAnnotationProcessor.java:139)
	at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3777)
	at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4337)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
	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.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
6 juin 2008 11:46:17 org.apache.catalina.core.StandardContext listenerStart


The message of the exception could be translated in plain ol' english as
follow :


ERROR: Error while configuring the application listener LaunchTest
javax.naming.NameNotFoundException: The Name LaunchTest isn't bound to any
context



Here is the source for the listener, which by the way works just fine
without declaring the context in the servlet.xml :



import javax.ejb.EJB;
import javax.naming.NamingException;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import test.beans.TestBean;

public class LaunchTest implements ServletContextListener {
	
	@EJB
	private TestBean bean;
	
	public void contextDestroyed(ServletContextEvent arg0) {
	}

	public void contextInitialized(ServletContextEvent arg0) {
		try {
			System.out.println("/***************************************/");
			System.out.println("/* run                           */");
			System.out.println("/***************************************/");
			bean.run();
			
		} catch (NamingException e) {
			throw new RuntimeException(e);
		}

	}
}



The context in the servlet.xml is declared as follow:



     &lt;Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false"&gt;
        &lt;Context docBase="../../target/CCV-Core-TestMain-0.0.1-SNAPSHOT"
path="testMain"/&gt;
     &lt;/Host&gt;


CCV-Core-TestMain-0.0.1-SNAPSHOT is the real name for MyWebApp...



Anyway, thanks a lot for your help.

I greatly appreciate the responsiveness of the OpenEJB crew.



Cheers,


Juan Manuel


-- 
View this message in context: http://www.nabble.com/OpenEJB.war-outside-webapps-tp17666227p17688720.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: OpenEJB.war outside webapps

Posted by Dain Sundstrom <da...@iq80.com>.

On Jun 5, 2008, at 2:52 AM, uglything wrote:

> <snip/>
> Nothing complex... But Tomcat tries to load MyWebApp before openejb,  
> as
> expected from the specifications... Hence the deployment fails.
>
>
>
> Well, to address that, I tried to add explicitely the openejb  
> context before
> MyWebApp :
>
>
>
>     &lt;Context docBase="openejb" /&gt;
>     &lt;Context docBase="../../target/MyWebApp" /&gt;

If you add the OpenEJBListener to the server.xml file, OpenEJB will  
always initialize first.  Simply copy the openejb-javaagent.jar file  
to the Tomcat lib directory, and add this declaration at the top of  
the server.xml file:

   <!-- OpenEJB plugin for Tomcat -->
   <Listener className="org.apache.openejb.loader.OpenEJBListener" />

Since Tomcat starts components in the order they are declared in the  
server.xml file, OpenEJB will guaranteed to be running by the time  
your application is deployed.

-dain


Re: Antwort: Re: Antwort: Re: Re: maven build of openEJB3 [Virus checked]

Posted by Mohammad Nour El-Din <no...@gmail.com>.
Thanks for clarification :)

On Wed, Jun 11, 2008 at 8:57 PM, Dain Sundstrom <da...@iq80.com> wrote:
> This would only be needed if the build fails (and it is only for the maven
> process).  The problem is we generate and compile a large number of classes,
> and the plugin is using javac which isn't very efficient memory wise.  When
> I get a chance, I'll update the plugin to optionally support the eclipse
> compiler.
>
> -dain
>
> On Jun 11, 2008, at 5:36 AM, Mohammad Nour El-Din wrote:
>
>> I don't unserstand why we should increase the Java Heap size ?
>>
>> On Wed, Jun 11, 2008 at 10:39 AM,  <Wo...@atosorigin.com>
>> wrote:
>>>
>>> Hi -dain
>>>
>>> the last build error I mailed in,
>>> was what it said it was, increasing the JAVA heap did the trick.
>>> I successfully compiled openejb3 ...
>>>
>>> mit freundlichen Grüßen/best regards
>>>
>>> Wolfgang Schrecker
>>>
>>> "Der Inhalt eines Begriffs nimmt ab, wenn sein Umfang zunimmt; wird
>>> dieser
>>> allumfassend, so muß der Inhalt ganz verloren gehen."
>>> from G. Frege: Die Grundlagen der Arithmetik S. 40
>>>
>>>
>>>
>>> --
>>> --------------------------------------------------
>>>
>>> Atos Worldline Processing GmbH
>>> Hahnstrasse 25
>>> 60528 Frankfurt/Main
>>> Germany
>>> Phone: +49 69/6657-1176
>>> mailto:Wolfgang.Schrecker@atosorigin.com
>>> http://www.atosworldline.com
>>>
>>> Geschäftsführer: Erik Munk Koefoed
>>> Aufsichtsratsvorsitzender: Didier Dhennin
>>> Sitz der Gesellschaft: Frankfurt/Main
>>> Handelsregister: Frankfurt/Main HRB 40 417
>>>
>>> --------------------------------------------------
>>>
>>> Atos Worldline Processing GmbH
>>> Hahnstraße 25
>>> 60528 Frankfurt/Main
>>> Germany
>>> Phone: +49 69/6657-1176
>>> Fax :
>>> mailto: Wolfgang.Schrecker@atosorigin.com
>>> http://www.atosworldline.com
>>>
>>> Geschäftsführer: Erik Munk Koefoed
>>> Aufsichtsratsvorsitzender: Didier Dhennin
>>> Sitz der Gesellschaft: Frankfurt/Main
>>> Handelsregister: Frankfurt/Main HRB 40 417
>>>
>>>
>>> * * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
>>> This e-mail is destined for the above mentioned recipient. In case you
>>> received this e-mail by accident, we would appreciate it if you could
>>> contact the sender and delete all copies stored on your computer.
>>> Please be aware that the security and confidentiality of electronic data
>>> transmitted by e-mail is not completely guaranteed and that data may be
>>> seen,
>>> copied, downloaded or changed by third persons during transmission.
>>> Atos Origin accepts no liability for the security and confidentiality of
>>> data and documents sent by e-mail. Please make sure that all important
>>> messages will be confirmed in writing by means of a telefax or a letter.
>>> * * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
>>>
>>
>>
>>
>> --
>> Thanks
>> - Mohammad Nour
>
>



-- 
Thanks
- Mohammad Nour

Re: Antwort: Re: Antwort: Re: Re: maven build of openEJB3 [Virus checked]

Posted by Dain Sundstrom <da...@iq80.com>.
This would only be needed if the build fails (and it is only for the  
maven process).  The problem is we generate and compile a large number  
of classes, and the plugin is using javac which isn't very efficient  
memory wise.  When I get a chance, I'll update the plugin to  
optionally support the eclipse compiler.

-dain

On Jun 11, 2008, at 5:36 AM, Mohammad Nour El-Din wrote:

> I don't unserstand why we should increase the Java Heap size ?
>
> On Wed, Jun 11, 2008 at 10:39 AM,   
> <Wo...@atosorigin.com> wrote:
>> Hi -dain
>>
>> the last build error I mailed in,
>> was what it said it was, increasing the JAVA heap did the trick.
>> I successfully compiled openejb3 ...
>>
>> mit freundlichen Grüßen/best regards
>>
>> Wolfgang Schrecker
>>
>> "Der Inhalt eines Begriffs nimmt ab, wenn sein Umfang zunimmt; wird  
>> dieser
>> allumfassend, so muß der Inhalt ganz verloren gehen."
>> from G. Frege: Die Grundlagen der Arithmetik S. 40
>>
>>
>>
>> --
>> --------------------------------------------------
>>
>> Atos Worldline Processing GmbH
>> Hahnstrasse 25
>> 60528 Frankfurt/Main
>> Germany
>> Phone: +49 69/6657-1176
>> mailto:Wolfgang.Schrecker@atosorigin.com
>> http://www.atosworldline.com
>>
>> Geschäftsführer: Erik Munk Koefoed
>> Aufsichtsratsvorsitzender: Didier Dhennin
>> Sitz der Gesellschaft: Frankfurt/Main
>> Handelsregister: Frankfurt/Main HRB 40 417
>>
>> --------------------------------------------------
>>
>> Atos Worldline Processing GmbH
>> Hahnstraße 25
>> 60528 Frankfurt/Main
>> Germany
>> Phone: +49 69/6657-1176
>> Fax :
>> mailto: Wolfgang.Schrecker@atosorigin.com
>> http://www.atosworldline.com
>>
>> Geschäftsführer: Erik Munk Koefoed
>> Aufsichtsratsvorsitzender: Didier Dhennin
>> Sitz der Gesellschaft: Frankfurt/Main
>> Handelsregister: Frankfurt/Main HRB 40 417
>>
>>
>> * * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
>> This e-mail is destined for the above mentioned recipient. In case  
>> you
>> received this e-mail by accident, we would appreciate it if you could
>> contact the sender and delete all copies stored on your computer.
>> Please be aware that the security and confidentiality of electronic  
>> data
>> transmitted by e-mail is not completely guaranteed and that data  
>> may be seen,
>> copied, downloaded or changed by third persons during transmission.
>> Atos Origin accepts no liability for the security and  
>> confidentiality of
>> data and documents sent by e-mail. Please make sure that all  
>> important
>> messages will be confirmed in writing by means of a telefax or a  
>> letter.
>> * * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
>>
>
>
>
> -- 
> Thanks
> - Mohammad Nour


Re: Re: Antwort: Re: Antwort: Re: Re: maven build of openEJB3 [Virus checked]

Posted by Mohammad Nour El-Din <no...@gmail.com>.
I don't unserstand why we should increase the Java Heap size ?

On Wed, Jun 11, 2008 at 10:39 AM,  <Wo...@atosorigin.com> wrote:
> Hi -dain
>
> the last build error I mailed in,
> was what it said it was, increasing the JAVA heap did the trick.
> I successfully compiled openejb3 ...
>
> mit freundlichen Grüßen/best regards
>
> Wolfgang Schrecker
>
> "Der Inhalt eines Begriffs nimmt ab, wenn sein Umfang zunimmt; wird dieser
> allumfassend, so muß der Inhalt ganz verloren gehen."
> from G. Frege: Die Grundlagen der Arithmetik S. 40
>
>
>
>  --
> --------------------------------------------------
>
> Atos Worldline Processing GmbH
> Hahnstrasse 25
> 60528 Frankfurt/Main
> Germany
> Phone: +49 69/6657-1176
> mailto:Wolfgang.Schrecker@atosorigin.com
> http://www.atosworldline.com
>
> Geschäftsführer: Erik Munk Koefoed
> Aufsichtsratsvorsitzender: Didier Dhennin
> Sitz der Gesellschaft: Frankfurt/Main
> Handelsregister: Frankfurt/Main HRB 40 417
>
> --------------------------------------------------
>
> Atos Worldline Processing GmbH
> Hahnstraße 25
> 60528 Frankfurt/Main
> Germany
> Phone: +49 69/6657-1176
> Fax :
> mailto: Wolfgang.Schrecker@atosorigin.com
> http://www.atosworldline.com
>
> Geschäftsführer: Erik Munk Koefoed
> Aufsichtsratsvorsitzender: Didier Dhennin
> Sitz der Gesellschaft: Frankfurt/Main
> Handelsregister: Frankfurt/Main HRB 40 417
>
>
> * * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
> This e-mail is destined for the above mentioned recipient. In case you
> received this e-mail by accident, we would appreciate it if you could
> contact the sender and delete all copies stored on your computer.
> Please be aware that the security and confidentiality of electronic data
> transmitted by e-mail is not completely guaranteed and that data may be seen,
> copied, downloaded or changed by third persons during transmission.
> Atos Origin accepts no liability for the security and confidentiality of
> data and documents sent by e-mail. Please make sure that all important
> messages will be confirmed in writing by means of a telefax or a letter.
> * * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
>



-- 
Thanks
- Mohammad Nour

Antwort: Re: Antwort: Re: Antwort: Re: Re: maven build of openEJB3 [Virus checked]

Posted by Wo...@atosorigin.com.
Hi -dain

the last build error I mailed in,
was what it said it was, increasing the JAVA heap did the trick.
I successfully compiled openejb3 ...

mit freundlichen Grüßen/best regards

Wolfgang Schrecker

"Der Inhalt eines Begriffs nimmt ab, wenn sein Umfang zunimmt; wird dieser
allumfassend, so muß der Inhalt ganz verloren gehen."
from G. Frege: Die Grundlagen der Arithmetik S. 40



 --
--------------------------------------------------

Atos Worldline Processing GmbH
Hahnstrasse 25
60528 Frankfurt/Main
Germany
Phone: +49 69/6657-1176
mailto:Wolfgang.Schrecker@atosorigin.com
http://www.atosworldline.com

Geschäftsführer: Erik Munk Koefoed
Aufsichtsratsvorsitzender: Didier Dhennin
Sitz der Gesellschaft: Frankfurt/Main
Handelsregister: Frankfurt/Main HRB 40 417
 
--------------------------------------------------

Atos Worldline Processing GmbH
Hahnstraße 25
60528 Frankfurt/Main
Germany
Phone: +49 69/6657-1176
Fax :
mailto: Wolfgang.Schrecker@atosorigin.com
http://www.atosworldline.com

Geschäftsführer: Erik Munk Koefoed
Aufsichtsratsvorsitzender: Didier Dhennin
Sitz der Gesellschaft: Frankfurt/Main
Handelsregister: Frankfurt/Main HRB 40 417


* * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
This e-mail is destined for the above mentioned recipient. In case you
received this e-mail by accident, we would appreciate it if you could
contact the sender and delete all copies stored on your computer.
Please be aware that the security and confidentiality of electronic data
transmitted by e-mail is not completely guaranteed and that data may be seen,
copied, downloaded or changed by third persons during transmission.
Atos Origin accepts no liability for the security and confidentiality of
data and documents sent by e-mail. Please make sure that all important
messages will be confirmed in writing by means of a telefax or a letter.
* * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *

Antwort: Re: Antwort: Re: Antwort: Re: Re: maven build of openEJB3 [Virus checked]

Posted by Wo...@atosorigin.com.
Hi dain,

after this and the one change below (after the maven output), sxc comiles
fine into my archiva maven repository.

But compiling openejb3/container/openejb-jee ( remember thats where I
started), now breaks with


................

[INFO] [sxc-jaxb:generate {execution: default}]


The system is out of resources.
Consult the following stack trace for details.
java.lang.OutOfMemoryError: Java heap space
      at com.sun.tools.javac.tree.TreeMaker.Ident(TreeMaker.java:324)
      at com.sun.tools.javac.parser.Parser.term3(Parser.java:859)
      at com.sun.tools.javac.parser.Parser.term2(Parser.java:582)
      at com.sun.tools.javac.parser.Parser.term1(Parser.java:553)
      at com.sun.tools.javac.parser.Parser.term(Parser.java:509)
      at com.sun.tools.javac.parser.Parser.term(Parser.java:491)
      at com.sun.tools.javac.parser.Parser.expression(Parser.java:481)
      at com.sun.tools.javac.parser.Parser.arguments(Parser.java:1046)
      at com.sun.tools.javac.parser.Parser.arguments(Parser.java:1061)
      at com.sun.tools.javac.parser.Parser.superSuffix(Parser.java:1009)
      at com.sun.tools.javac.parser.Parser.term3(Parser.java:835)
      at com.sun.tools.javac.parser.Parser.term2(Parser.java:582)
      at com.sun.tools.javac.parser.Parser.term1(Parser.java:553)
      at com.sun.tools.javac.parser.Parser.term(Parser.java:509)
      at com.sun.tools.javac.parser.Parser.term(Parser.java:491)
      at
com.sun.tools.javac.parser.Parser.blockStatements(Parser.java:1397)
      at com.sun.tools.javac.parser.Parser.block(Parser.java:1319)
      at com.sun.tools.javac.parser.Parser.block(Parser.java:1331)
      at
com.sun.tools.javac.parser.Parser.methodDeclaratorRest(Parser.java:2241)
      at
com.sun.tools.javac.parser.Parser.classOrInterfaceBodyDeclaration(Parser.java:2189)
      at
com.sun.tools.javac.parser.Parser.classOrInterfaceBody(Parser.java:2134)
      at
com.sun.tools.javac.parser.Parser.classDeclaration(Parser.java:2004)
      at
com.sun.tools.javac.parser.Parser.classOrInterfaceOrEnumDeclaration(Parser.java:1976)
      at
com.sun.tools.javac.parser.Parser.typeDeclaration(Parser.java:1966)
      at
com.sun.tools.javac.parser.Parser.compilationUnit(Parser.java:1909)
      at com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java:257)
      at com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java:281)
      at
com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:399)
      at com.sun.tools.javac.main.Main.compile(Main.java:592)
      at com.sun.tools.javac.main.Main.compile(Main.java:544)
      at com.sun.tools.javac.Main.compile(Main.java:85)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Could not compile generated files! Code: 3
[INFO]
------------------------------------------------------------------------
[INFO] Trace
com.envoisolutions.sxc.builder.BuildException: Could not compile generated
files! Code: 3
      at
com.envoisolutions.sxc.compiler.JavacCompiler.compile(JavacCompiler.java:105)
      at
com.envoisolutions.sxc.jaxb.JAXBGenerator.generate(JAXBGenerator.java:88)
      at
com.envoisolutions.sxc.jaxb.maven.SxcJaxbPlugin.execute(SxcJaxbPlugin.java:73)
      at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447)
      at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
      at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
      at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
      at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
      at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
      at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
      at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
      at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
      at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 29 seconds
[INFO] Finished at: Wed Jun 11 08:45:42 CEST 2008
[INFO] Final Memory: 21M/63M
[INFO]
------------------------------------------------------------------------

-------------------------------------------------------------------------------------------------

here is another one (sxc/compiler/JavaCompiler.java):
-------------------------------------------------------------------------------------------------
package com.envoisolutions.sxc.compiler;

import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.IOException;
import java.io.PrintWriter;
import java.lang.reflect.Method;
import java.net.MalformedURLException;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
import java.net.URLClassLoader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;

import com.envoisolutions.sxc.builder.BuildException;
import com.envoisolutions.sxc.util.Util;

public class JavacCompiler extends Compiler {
    public ClassLoader compile(Map<String, File> sources) {
        if (sources.isEmpty()) {
            throw new IllegalArgumentException("sources is empty");
        }

        // create temp directory for classes
        String tmpdir = System.getProperty("java.io.tmpdir");
        File classDir = new File(new File(tmpdir), "classes" + hashCode() +
System.currentTimeMillis());
        if (!classDir.mkdir()) {
            throw new BuildException("Could not create output directory.");
        }

        try {
            // class loader used to compile classes
            ClassLoader classLoader =
Thread.currentThread().getContextClassLoader();
            if (classLoader == null) classLoader =
getClass().getClassLoader();

            // compile classes
            compile(sources, classDir, classLoader);

            // load classes
            Thread.currentThread().setContextClassLoader(classLoader);
            URLClassLoader cl = new URLClassLoader(new URL[]{
classDir.toURI().toURL()}, classLoader);
            List<String> failedToLoad = new ArrayList<String>();
            for (String className : sources.keySet()) {
                try {
                    cl.loadClass(className);
                } catch (ClassNotFoundException e) {
                    failedToLoad.add(className);
                }
            }
            if (!failedToLoad.isEmpty()) {
                throw new BuildException("Could not load generated classes
" + failedToLoad);
            }

            return cl;
        } catch (IOException e) {
            throw new BuildException(e);
        } finally {
            // clean up the temp directory
            Util.delete(classDir);
        }
    }

    public void compile(Map<String, File> sources, File classDir,
ClassLoader classLoader) {
        Set<URL> urlSet = getClasspathURLs(classLoader);
        String classpath = createClasspath(urlSet);

        URLClassLoader newCL = createNewClassLoader();

        // build arg array
        List<String> args = new ArrayList<String>(sources.size() + 7);
        args.add("-g");
        args.add("-d");
        args.add(classDir.getAbsolutePath());
        args.add("-classpath");
        args.add(classpath);
        for (File file : sources.values()) {
            args.add(file.getAbsolutePath());
        }

        // invoke compiler
        ByteArrayOutputStream out = new ByteArrayOutputStream();
        PrintWriter writer = new PrintWriter(out);
        int exitCode;
        try {
            Class<?> main = newCL.loadClass("com.sun.tools.javac.Main");
            Method method = main.getMethod("compile", String[].class,
PrintWriter.class);
            exitCode = (Integer) method.invoke(null, args.toArray(new
String[args.size()]), writer);
        } catch (ClassNotFoundException e1) {
            throw new BuildException("Could not find javac compiler!", e1);
        } catch (Exception e) {
            throw new BuildException("Could not invoke javac compiler!",
e);
        }

        // check exit code
        if (exitCode != 0) {
            writer.close();

            System.out.println(out.toString());

            throw new BuildException("Could not compile generated files!
Code: " + exitCode);
        }
    }

    private URLClassLoader createNewClassLoader() {
        URL[] urls;
        File toolsJar = new File(System.getProperty("java.home"),
"../lib/tools.jar");
        if (toolsJar.exists()) {
            try {
                urls = new URL[]{toolsJar.toURL()};
            } catch (MalformedURLException e) {
                throw new BuildException("Could not convert the file
reference to tools.jar to a URL, path to tools.jar: '"
                        + toolsJar.getAbsolutePath() + "'.");
            }
        } else {
            urls = new URL[0];
        }

        URLClassLoader newCL = new URLClassLoader(urls);
        Thread.currentThread().setContextClassLoader(newCL);

        return newCL;
    }

    private String createClasspath(Set<URL> urls) {
        StringBuilder cp = new StringBuilder();
        boolean first = true;
        for (URL u : urls) {
            if (u.getProtocol().equals("file")) {

                if (first) {
                    first = false;
                } else {
                    cp.append(File.pathSeparatorChar);
                }

                String uStr = u.toString().replaceAll(" ", "%20");
                try {
                    File file = new File(new URI(uStr));
                    cp.append(file.getAbsolutePath());
                } catch (URISyntaxException e) {

                }
            }
        }
        return cp.toString();
    }

    private Set<URL> getClasspathURLs(ClassLoader cl) {
        Set<URL> urls = new HashSet<URL>();

        while (cl != null) {
            if (cl instanceof URLClassLoader) {
                URLClassLoader ucl = (URLClassLoader) cl;

                URL[] clurls = ucl.getURLs();
                if (clurls != null) {
                    urls.addAll(Arrays.asList(clurls));
                }
            }
            cl = cl.getParent();
        }
        return urls;
    }

}
-------------------------------------------------------------------------------------------------

The other one (line 114) is at a standard location, and should be fine.

mit freundlichen Grüßen/best regards

Wolfgang Schrecker

"Der Inhalt eines Begriffs nimmt ab, wenn sein Umfang zunimmt; wird dieser
allumfassend, so muß der Inhalt ganz verloren gehen."
from G. Frege: Die Grundlagen der Arithmetik S. 40



 --
--------------------------------------------------

Atos Worldline Processing GmbH
Hahnstrasse 25
60528 Frankfurt/Main
Germany
Phone: +49 69/6657-1176
mailto:Wolfgang.Schrecker@atosorigin.com
http://www.atosworldline.com

Geschäftsführer: Erik Munk Koefoed
Aufsichtsratsvorsitzender: Didier Dhennin
Sitz der Gesellschaft: Frankfurt/Main
Handelsregister: Frankfurt/Main HRB 40 417
 
--------------------------------------------------

Atos Worldline Processing GmbH
Hahnstraße 25
60528 Frankfurt/Main
Germany
Phone: +49 69/6657-1176
Fax :
mailto: Wolfgang.Schrecker@atosorigin.com
http://www.atosworldline.com

Geschäftsführer: Erik Munk Koefoed
Aufsichtsratsvorsitzender: Didier Dhennin
Sitz der Gesellschaft: Frankfurt/Main
Handelsregister: Frankfurt/Main HRB 40 417


* * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
This e-mail is destined for the above mentioned recipient. In case you
received this e-mail by accident, we would appreciate it if you could
contact the sender and delete all copies stored on your computer.
Please be aware that the security and confidentiality of electronic data
transmitted by e-mail is not completely guaranteed and that data may be seen,
copied, downloaded or changed by third persons during transmission.
Atos Origin accepts no liability for the security and confidentiality of
data and documents sent by e-mail. Please make sure that all important
messages will be confirmed in writing by means of a telefax or a letter.
* * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *

Re: Antwort: Re: Antwort: Re: Re: maven build of openEJB3 [Virus checked]

Posted by Dain Sundstrom <da...@iq80.com>.
Excellent.  I applied the patch and published a new snapshot.

Let me know if you have any more problems, and thank you for the patch.

-dain

On Jun 10, 2008, at 12:44 AM, Wolfgang.Schrecker@atosorigin.com wrote:

> Here is the source with my tiny change in bold face:
> ------------------------------------------------------------------------------------------------------
> package com.envoisolutions.sxc.jaxb.maven;
>
> import java.io.File;
> import java.net.MalformedURLException;
> import java.net.URL;
> import java.net.URLClassLoader;
> import java.util.Arrays;
> import java.util.Map;
> import javax.xml.bind.JAXBException;
>
> import com.envoisolutions.sxc.jaxb.JAXBGenerator;
> import org.apache.maven.plugin.AbstractMojo;
> import org.apache.maven.plugin.MojoExecutionException;
> import org.apache.maven.project.MavenProject;
>
> /**
> * @goal generate
> * @description Generates SXC JaxB implementation
> * @phase process-classes
> * @requiresDependencyResolution runtime
> */
> public class SxcJaxbPlugin extends AbstractMojo {
>    /**
>     * @parameter expression="${project}"
>     * @required
>     */
>    private MavenProject project;
>
>    /**
>     * Directory source files will be written.
>     *
>     * @parameter expression="${project.build.directory}/sxc"
>     * @required
>     */
>    private File sourceOutputDirectory;
>
>    /**
>     * Directory class files will be written.
>     *
>     * @parameter expression="${project.build.directory}/classes"
>     * @required
>     */
>    private File classesOutputDirectory;
>
>    /**
>     * @parameter
>     * @required
>     */
>    private String[] classes;
>
>    /**
>     * @parameter
>     */
>    private Map<String,String> properties;
>
>    public void execute() throws MojoExecutionException {
>        try {
>            JAXBGenerator jaxbGenerator = new JAXBGenerator();
>
> jaxbGenerator
> .setSourceOutputDirectory(sourceOutputDirectory.getAbsolutePath());
>
> jaxbGenerator
> .setClassesOutputDirectory(classesOutputDirectory.getAbsolutePath());
>            jaxbGenerator.getClasses().addAll(Arrays.asList(classes));
>            if (properties != null) {
>                jaxbGenerator.getProperties().putAll(properties);
>            }
>
>            // need to manually create the classloader since maven  
> won't
> give me one
>            String directory = project.getBuild().getOutputDirectory();
>            ClassLoader classLoader =
> Thread.currentThread().getContextClassLoader();
>            if (classLoader == null) classLoader =
> getClass().getClassLoader();
>
>            classLoader = new URLClassLoader(new URL[] {(new
> File(directory)).toURI().toURL()}, classLoader);
>            jaxbGenerator.setClassLoader(classLoader);
>
>            jaxbGenerator.generate();
>        } catch (JAXBException e) {
>            throw new MojoExecutionException("Error generating JaxB  
> parser:
> " + e.getMessage(), e);
>        } catch (MalformedURLException e) {
>            throw new MojoExecutionException("Invalid build  
> outputDirectory
> " + project.getBuild().getOutputDirectory());
>        }
>    }
>
>    public File getSourceOutputDirectory() {
>        return sourceOutputDirectory;
>    }
>
>    public void setSourceOutputDirectory(File sourceOutputDirectory) {
>        this.sourceOutputDirectory = sourceOutputDirectory;
>    }
>
>    public File getClassesOutputDirectory() {
>        return classesOutputDirectory;
>    }
>
>    public void setClassesOutputDirectory(File  
> classesOutputDirectory) {
>        this.classesOutputDirectory = classesOutputDirectory;
>    }
>
>    public String[] getClasses() {
>        return classes;
>    }
>
>    public void setClasses(String[] classes) {
>        this.classes = classes;
>    }
>
>    public Map<String, String> getProperties() {
>        return properties;
>    }
>
>    public void setProperties(Map<String, String> properties) {
>        this.properties = properties;
>    }
> }
> ------------------------------------------------------------------------------------------------------
>
> The idea is that URI and URL are so close, but NOT identical.
> The difference is the characters allowed: toURI converts what is
> permissible in file names, to what is permissible in URL
> (e.g. converts blanks to %20..)
>
> mit freundlichen Grüßen/best regards
>
> Wolfgang Schrecker
>
> "Der Inhalt eines Begriffs nimmt ab, wenn sein Umfang zunimmt; wird  
> dieser
> allumfassend, so muß der Inhalt ganz verloren gehen."
> from G. Frege: Die Grundlagen der Arithmetik S. 40
>
>
>
> --
> --------------------------------------------------
>
> Atos Worldline Processing GmbH
> Hahnstrasse 25
> 60528 Frankfurt/Main
> Germany
> Phone: +49 69/6657-1176
> mailto:Wolfgang.Schrecker@atosorigin.com
> http://www.atosworldline.com
>
> Geschäftsführer: Erik Munk Koefoed
> Aufsichtsratsvorsitzender: Didier Dhennin
> Sitz der Gesellschaft: Frankfurt/Main
> Handelsregister: Frankfurt/Main HRB 40 417
>
>
>
>             Dain Sundstrom
>             <da...@iq80.com>
>                                                                        An
>             09.06.2008 21:43           users@openejb.apache.org
>                                                                      
> Kopie
>
>              Bitte antworten                                         
> Thema
>                    an                  Re: Antwort: Re: Re: maven  
> build
>             users@openejb.apa          of openEJB3 [Virus checked]
>                  che.org
>
>
>
>
>
>
>
>
>
> I wrote the plugin.  Do you have a stack trace (use -e or -X to
> generate)?  That will help me narrow down the problem.
>
> Thanks,
>
> -dain
>
> On Jun 9, 2008, at 6:16 AM, Wolfgang.Schrecker@atosorigin.com wrote:
>
>> That was a quick answer ! Thanks !
>>
>> I think you 're right:  it is a problem with spaces, and the solution
>> should not be complicated,
>>
>> change: (new File(directory)).toURL() to: (new
>> File(directory)).toURI().toURL()
>>
>> in the maven plugin com.envoisolutions.sxc.jabc.maven.SxJaxbPlugin
>> if you
>> have the source
>> or ask, whoever can do this.
>>
>> I have seen this many times and anyway ... toURI().toURL() is the
>> good way
>> to do this!
>>
>> Let me know, what happens, please ...
>>
>> mit freundlichen Grüßen/best regards
>>
>> Wolfgang Schrecker
>>
>> "Der Inhalt eines Begriffs nimmt ab, wenn sein Umfang zunimmt; wird
>> dieser
>> allumfassend, so muß der Inhalt ganz verloren gehen."
>> from G. Frege: Die Grundlagen der Arithmetik S. 40
>>
>>
>>
>> --
>> --------------------------------------------------
>>
>> Atos Worldline Processing GmbH
>> Hahnstrasse 25
>> 60528 Frankfurt/Main
>> Germany
>> Phone: +49 69/6657-1176
>> mailto:Wolfgang.Schrecker@atosorigin.com
>> http://www.atosworldline.com
>>
>> Geschäftsführer: Erik Munk Koefoed
>> Aufsichtsratsvorsitzender: Didier Dhennin
>> Sitz der Gesellschaft: Frankfurt/Main
>> Handelsregister: Frankfurt/Main HRB 40 417
>>
>>
>>
>>            "Mohammad Nour
>>            El-Din"
>>
>> <nour.mohammad@gm                                          An
>>            ail.com>                   users@openejb.apache.org
>>
>> Kopie
>>            09.06.2008 14:57
>>
>> Thema
>>                                       Re: Re: maven build of openEJB3
>>             Bitte antworten           [Virus checked]
>>                   an
>>            users@openejb.apa
>>                 che.org
>>
>>
>>
>>
>>
>>
>>
>> Does it work now, if not please start from a clean Maven local repo
>> and if it still not working try not to use a repo path with spaces,
>> and please tell us what you got :).
>>
>> On Mon, Jun 9, 2008 at 10:17 AM,  <Wo...@atosorigin.com>
>> wrote:
>>> Hi Mohammad Nour,
>>>
>>> I downloaded openEJB3.0 from the subversion repository
>>> and use MAVEN 2.0.8 on a Windows machine.
>>>
>>> I first suspected that it has to do with blanks in my path to the
>>> local
>>> maven repository.
>>>
>>> mit freundlichen Grüßen/best regards
>>>
>>> Wolfgang Schrecker
>>>
>>> "Der Inhalt eines Begriffs nimmt ab, wenn sein Umfang zunimmt; wird
>> dieser
>>> allumfassend, so muß der Inhalt ganz verloren gehen."
>>> from G. Frege: Die Grundlagen der Arithmetik S. 40
>>>
>>>
>>>
>>> --
>>> --------------------------------------------------
>>>
>>> Atos Worldline Processing GmbH
>>> Hahnstrasse 25
>>> 60528 Frankfurt/Main
>>> Germany
>>> Phone: +49 69/6657-1176
>>> mailto:Wolfgang.Schrecker@atosorigin.com
>>> http://www.atosworldline.com
>>>
>>> Geschäftsführer: Erik Munk Koefoed
>>> Aufsichtsratsvorsitzender: Didier Dhennin
>>> Sitz der Gesellschaft: Frankfurt/Main
>>> Handelsregister: Frankfurt/Main HRB 40 417
>>>
>>> --------------------------------------------------
>>>
>>> Atos Worldline Processing GmbH
>>> Hahnstraße 25
>>> 60528 Frankfurt/Main
>>> Germany
>>> Phone: +49 69/6657-1176
>>> Fax :
>>> mailto: Wolfgang.Schrecker@atosorigin.com
>>> http://www.atosworldline.com
>>>
>>> Geschäftsführer: Erik Munk Koefoed
>>> Aufsichtsratsvorsitzender: Didier Dhennin
>>> Sitz der Gesellschaft: Frankfurt/Main
>>> Handelsregister: Frankfurt/Main HRB 40 417
>>>
>>>
>>> * * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
>>> This e-mail is destined for the above mentioned recipient. In case
>>> you
>>> received this e-mail by accident, we would appreciate it if you  
>>> could
>>> contact the sender and delete all copies stored on your computer.
>>> Please be aware that the security and confidentiality of electronic
>>> data
>>> transmitted by e-mail is not completely guaranteed and that data
>>> may be
>> seen,
>>> copied, downloaded or changed by third persons during transmission.
>>> Atos Origin accepts no liability for the security and
>>> confidentiality of
>>> data and documents sent by e-mail. Please make sure that all
>>> important
>>> messages will be confirmed in writing by means of a telefax or a
>>> letter.
>>> * * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
>>>
>>
>>
>>
>> --
>> Thanks
>> - Mohammad Nour
>>
>>
>>
>> --------------------------------------------------
>>
>> Atos Worldline Processing GmbH
>> Hahnstraße 25
>> 60528 Frankfurt/Main
>> Germany
>> Phone: +49 69/6657-1176
>> Fax :
>> mailto: Wolfgang.Schrecker@atosorigin.com
>> http://www.atosworldline.com
>>
>> Geschäftsführer: Erik Munk Koefoed
>> Aufsichtsratsvorsitzender: Didier Dhennin
>> Sitz der Gesellschaft: Frankfurt/Main
>> Handelsregister: Frankfurt/Main HRB 40 417
>>
>>
>> * * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
>> This e-mail is destined for the above mentioned recipient. In case  
>> you
>> received this e-mail by accident, we would appreciate it if you could
>> contact the sender and delete all copies stored on your computer.
>> Please be aware that the security and confidentiality of electronic
>> data
>> transmitted by e-mail is not completely guaranteed and that data may
>> be seen,
>> copied, downloaded or changed by third persons during transmission.
>> Atos Origin accepts no liability for the security and
>> confidentiality of
>> data and documents sent by e-mail. Please make sure that all  
>> important
>> messages will be confirmed in writing by means of a telefax or a
>> letter.
>> * * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
>
>
>
>
> --------------------------------------------------
>
> Atos Worldline Processing GmbH
> Hahnstraße 25
> 60528 Frankfurt/Main
> Germany
> Phone: +49 69/6657-1176
> Fax :
> mailto: Wolfgang.Schrecker@atosorigin.com
> http://www.atosworldline.com
>
> Geschäftsführer: Erik Munk Koefoed
> Aufsichtsratsvorsitzender: Didier Dhennin
> Sitz der Gesellschaft: Frankfurt/Main
> Handelsregister: Frankfurt/Main HRB 40 417
>
>
> * * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
> This e-mail is destined for the above mentioned recipient. In case you
> received this e-mail by accident, we would appreciate it if you could
> contact the sender and delete all copies stored on your computer.
> Please be aware that the security and confidentiality of electronic  
> data
> transmitted by e-mail is not completely guaranteed and that data may  
> be seen,
> copied, downloaded or changed by third persons during transmission.
> Atos Origin accepts no liability for the security and  
> confidentiality of
> data and documents sent by e-mail. Please make sure that all important
> messages will be confirmed in writing by means of a telefax or a  
> letter.
> * * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *


Antwort: Re: Antwort: Re: Re: maven build of openEJB3 [Virus checked]

Posted by Wo...@atosorigin.com.
Here is the source with my tiny change in bold face:
------------------------------------------------------------------------------------------------------
package com.envoisolutions.sxc.jaxb.maven;

import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLClassLoader;
import java.util.Arrays;
import java.util.Map;
import javax.xml.bind.JAXBException;

import com.envoisolutions.sxc.jaxb.JAXBGenerator;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.project.MavenProject;

/**
 * @goal generate
 * @description Generates SXC JaxB implementation
 * @phase process-classes
 * @requiresDependencyResolution runtime
 */
public class SxcJaxbPlugin extends AbstractMojo {
    /**
     * @parameter expression="${project}"
     * @required
     */
    private MavenProject project;

    /**
     * Directory source files will be written.
     *
     * @parameter expression="${project.build.directory}/sxc"
     * @required
     */
    private File sourceOutputDirectory;

    /**
     * Directory class files will be written.
     *
     * @parameter expression="${project.build.directory}/classes"
     * @required
     */
    private File classesOutputDirectory;

    /**
     * @parameter
     * @required
     */
    private String[] classes;

    /**
     * @parameter
     */
    private Map<String,String> properties;

    public void execute() throws MojoExecutionException {
        try {
            JAXBGenerator jaxbGenerator = new JAXBGenerator();

jaxbGenerator.setSourceOutputDirectory(sourceOutputDirectory.getAbsolutePath());

jaxbGenerator.setClassesOutputDirectory(classesOutputDirectory.getAbsolutePath());
            jaxbGenerator.getClasses().addAll(Arrays.asList(classes));
            if (properties != null) {
                jaxbGenerator.getProperties().putAll(properties);
            }

            // need to manually create the classloader since maven won't
give me one
            String directory = project.getBuild().getOutputDirectory();
            ClassLoader classLoader =
Thread.currentThread().getContextClassLoader();
            if (classLoader == null) classLoader =
getClass().getClassLoader();

            classLoader = new URLClassLoader(new URL[] {(new
File(directory)).toURI().toURL()}, classLoader);
            jaxbGenerator.setClassLoader(classLoader);

            jaxbGenerator.generate();
        } catch (JAXBException e) {
            throw new MojoExecutionException("Error generating JaxB parser:
" + e.getMessage(), e);
        } catch (MalformedURLException e) {
            throw new MojoExecutionException("Invalid build outputDirectory
" + project.getBuild().getOutputDirectory());
        }
    }

    public File getSourceOutputDirectory() {
        return sourceOutputDirectory;
    }

    public void setSourceOutputDirectory(File sourceOutputDirectory) {
        this.sourceOutputDirectory = sourceOutputDirectory;
    }

    public File getClassesOutputDirectory() {
        return classesOutputDirectory;
    }

    public void setClassesOutputDirectory(File classesOutputDirectory) {
        this.classesOutputDirectory = classesOutputDirectory;
    }

    public String[] getClasses() {
        return classes;
    }

    public void setClasses(String[] classes) {
        this.classes = classes;
    }

    public Map<String, String> getProperties() {
        return properties;
    }

    public void setProperties(Map<String, String> properties) {
        this.properties = properties;
    }
}
------------------------------------------------------------------------------------------------------

The idea is that URI and URL are so close, but NOT identical.
The difference is the characters allowed: toURI converts what is
permissible in file names, to what is permissible in URL
(e.g. converts blanks to %20..)

mit freundlichen Grüßen/best regards

Wolfgang Schrecker

"Der Inhalt eines Begriffs nimmt ab, wenn sein Umfang zunimmt; wird dieser
allumfassend, so muß der Inhalt ganz verloren gehen."
from G. Frege: Die Grundlagen der Arithmetik S. 40



 --
--------------------------------------------------

Atos Worldline Processing GmbH
Hahnstrasse 25
60528 Frankfurt/Main
Germany
Phone: +49 69/6657-1176
mailto:Wolfgang.Schrecker@atosorigin.com
http://www.atosworldline.com

Geschäftsführer: Erik Munk Koefoed
Aufsichtsratsvorsitzender: Didier Dhennin
Sitz der Gesellschaft: Frankfurt/Main
Handelsregister: Frankfurt/Main HRB 40 417


                                                                           
             Dain Sundstrom                                                
             <da...@iq80.com>                                               
                                                                        An 
             09.06.2008 21:43           users@openejb.apache.org           
                                                                     Kopie 
                                                                           
              Bitte antworten                                        Thema 
                    an                  Re: Antwort: Re: Re: maven build   
             users@openejb.apa          of openEJB3 [Virus checked]        
                  che.org                                                  
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




I wrote the plugin.  Do you have a stack trace (use -e or -X to
generate)?  That will help me narrow down the problem.

Thanks,

-dain

On Jun 9, 2008, at 6:16 AM, Wolfgang.Schrecker@atosorigin.com wrote:

> That was a quick answer ! Thanks !
>
> I think you 're right:  it is a problem with spaces, and the solution
> should not be complicated,
>
> change: (new File(directory)).toURL() to: (new
> File(directory)).toURI().toURL()
>
> in the maven plugin com.envoisolutions.sxc.jabc.maven.SxJaxbPlugin
> if you
> have the source
> or ask, whoever can do this.
>
> I have seen this many times and anyway ... toURI().toURL() is the
> good way
> to do this!
>
> Let me know, what happens, please ...
>
> mit freundlichen Grüßen/best regards
>
> Wolfgang Schrecker
>
> "Der Inhalt eines Begriffs nimmt ab, wenn sein Umfang zunimmt; wird
> dieser
> allumfassend, so muß der Inhalt ganz verloren gehen."
> from G. Frege: Die Grundlagen der Arithmetik S. 40
>
>
>
> --
> --------------------------------------------------
>
> Atos Worldline Processing GmbH
> Hahnstrasse 25
> 60528 Frankfurt/Main
> Germany
> Phone: +49 69/6657-1176
> mailto:Wolfgang.Schrecker@atosorigin.com
> http://www.atosworldline.com
>
> Geschäftsführer: Erik Munk Koefoed
> Aufsichtsratsvorsitzender: Didier Dhennin
> Sitz der Gesellschaft: Frankfurt/Main
> Handelsregister: Frankfurt/Main HRB 40 417
>
>
>
>             "Mohammad Nour
>             El-Din"
>
> <nour.mohammad@gm                                          An
>             ail.com>                   users@openejb.apache.org
>
> Kopie
>             09.06.2008 14:57
>
> Thema
>                                        Re: Re: maven build of openEJB3
>              Bitte antworten           [Virus checked]
>                    an
>             users@openejb.apa
>                  che.org
>
>
>
>
>
>
>
> Does it work now, if not please start from a clean Maven local repo
> and if it still not working try not to use a repo path with spaces,
> and please tell us what you got :).
>
> On Mon, Jun 9, 2008 at 10:17 AM,  <Wo...@atosorigin.com>
> wrote:
>> Hi Mohammad Nour,
>>
>> I downloaded openEJB3.0 from the subversion repository
>> and use MAVEN 2.0.8 on a Windows machine.
>>
>> I first suspected that it has to do with blanks in my path to the
>> local
>> maven repository.
>>
>> mit freundlichen Grüßen/best regards
>>
>> Wolfgang Schrecker
>>
>> "Der Inhalt eines Begriffs nimmt ab, wenn sein Umfang zunimmt; wird
> dieser
>> allumfassend, so muß der Inhalt ganz verloren gehen."
>> from G. Frege: Die Grundlagen der Arithmetik S. 40
>>
>>
>>
>> --
>> --------------------------------------------------
>>
>> Atos Worldline Processing GmbH
>> Hahnstrasse 25
>> 60528 Frankfurt/Main
>> Germany
>> Phone: +49 69/6657-1176
>> mailto:Wolfgang.Schrecker@atosorigin.com
>> http://www.atosworldline.com
>>
>> Geschäftsführer: Erik Munk Koefoed
>> Aufsichtsratsvorsitzender: Didier Dhennin
>> Sitz der Gesellschaft: Frankfurt/Main
>> Handelsregister: Frankfurt/Main HRB 40 417
>>
>> --------------------------------------------------
>>
>> Atos Worldline Processing GmbH
>> Hahnstraße 25
>> 60528 Frankfurt/Main
>> Germany
>> Phone: +49 69/6657-1176
>> Fax :
>> mailto: Wolfgang.Schrecker@atosorigin.com
>> http://www.atosworldline.com
>>
>> Geschäftsführer: Erik Munk Koefoed
>> Aufsichtsratsvorsitzender: Didier Dhennin
>> Sitz der Gesellschaft: Frankfurt/Main
>> Handelsregister: Frankfurt/Main HRB 40 417
>>
>>
>> * * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
>> This e-mail is destined for the above mentioned recipient. In case
>> you
>> received this e-mail by accident, we would appreciate it if you could
>> contact the sender and delete all copies stored on your computer.
>> Please be aware that the security and confidentiality of electronic
>> data
>> transmitted by e-mail is not completely guaranteed and that data
>> may be
> seen,
>> copied, downloaded or changed by third persons during transmission.
>> Atos Origin accepts no liability for the security and
>> confidentiality of
>> data and documents sent by e-mail. Please make sure that all
>> important
>> messages will be confirmed in writing by means of a telefax or a
>> letter.
>> * * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
>>
>
>
>
> --
> Thanks
> - Mohammad Nour
>
>
>
> --------------------------------------------------
>
> Atos Worldline Processing GmbH
> Hahnstraße 25
> 60528 Frankfurt/Main
> Germany
> Phone: +49 69/6657-1176
> Fax :
> mailto: Wolfgang.Schrecker@atosorigin.com
> http://www.atosworldline.com
>
> Geschäftsführer: Erik Munk Koefoed
> Aufsichtsratsvorsitzender: Didier Dhennin
> Sitz der Gesellschaft: Frankfurt/Main
> Handelsregister: Frankfurt/Main HRB 40 417
>
>
> * * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
> This e-mail is destined for the above mentioned recipient. In case you
> received this e-mail by accident, we would appreciate it if you could
> contact the sender and delete all copies stored on your computer.
> Please be aware that the security and confidentiality of electronic
> data
> transmitted by e-mail is not completely guaranteed and that data may
> be seen,
> copied, downloaded or changed by third persons during transmission.
> Atos Origin accepts no liability for the security and
> confidentiality of
> data and documents sent by e-mail. Please make sure that all important
> messages will be confirmed in writing by means of a telefax or a
> letter.
> * * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *



 
--------------------------------------------------

Atos Worldline Processing GmbH
Hahnstraße 25
60528 Frankfurt/Main
Germany
Phone: +49 69/6657-1176
Fax :
mailto: Wolfgang.Schrecker@atosorigin.com
http://www.atosworldline.com

Geschäftsführer: Erik Munk Koefoed
Aufsichtsratsvorsitzender: Didier Dhennin
Sitz der Gesellschaft: Frankfurt/Main
Handelsregister: Frankfurt/Main HRB 40 417


* * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
This e-mail is destined for the above mentioned recipient. In case you
received this e-mail by accident, we would appreciate it if you could
contact the sender and delete all copies stored on your computer.
Please be aware that the security and confidentiality of electronic data
transmitted by e-mail is not completely guaranteed and that data may be seen,
copied, downloaded or changed by third persons during transmission.
Atos Origin accepts no liability for the security and confidentiality of
data and documents sent by e-mail. Please make sure that all important
messages will be confirmed in writing by means of a telefax or a letter.
* * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *

Re: Antwort: Re: Re: maven build of openEJB3 [Virus checked]

Posted by Dain Sundstrom <da...@iq80.com>.
I wrote the plugin.  Do you have a stack trace (use -e or -X to  
generate)?  That will help me narrow down the problem.

Thanks,

-dain

On Jun 9, 2008, at 6:16 AM, Wolfgang.Schrecker@atosorigin.com wrote:

> That was a quick answer ! Thanks !
>
> I think you 're right:  it is a problem with spaces, and the solution
> should not be complicated,
>
> change: (new File(directory)).toURL() to: (new
> File(directory)).toURI().toURL()
>
> in the maven plugin com.envoisolutions.sxc.jabc.maven.SxJaxbPlugin  
> if you
> have the source
> or ask, whoever can do this.
>
> I have seen this many times and anyway ... toURI().toURL() is the  
> good way
> to do this!
>
> Let me know, what happens, please ...
>
> mit freundlichen Grüßen/best regards
>
> Wolfgang Schrecker
>
> "Der Inhalt eines Begriffs nimmt ab, wenn sein Umfang zunimmt; wird  
> dieser
> allumfassend, so muß der Inhalt ganz verloren gehen."
> from G. Frege: Die Grundlagen der Arithmetik S. 40
>
>
>
> --
> --------------------------------------------------
>
> Atos Worldline Processing GmbH
> Hahnstrasse 25
> 60528 Frankfurt/Main
> Germany
> Phone: +49 69/6657-1176
> mailto:Wolfgang.Schrecker@atosorigin.com
> http://www.atosworldline.com
>
> Geschäftsführer: Erik Munk Koefoed
> Aufsichtsratsvorsitzender: Didier Dhennin
> Sitz der Gesellschaft: Frankfurt/Main
> Handelsregister: Frankfurt/Main HRB 40 417
>
>
>
>             "Mohammad Nour
>             El-Din"
>              
> <nour.mohammad@gm                                          An
>             ail.com>                   users@openejb.apache.org
>                                                                      
> Kopie
>             09.06.2008 14:57
>                                                                      
> Thema
>                                        Re: Re: maven build of openEJB3
>              Bitte antworten           [Virus checked]
>                    an
>             users@openejb.apa
>                  che.org
>
>
>
>
>
>
>
> Does it work now, if not please start from a clean Maven local repo
> and if it still not working try not to use a repo path with spaces,
> and please tell us what you got :).
>
> On Mon, Jun 9, 2008 at 10:17 AM,  <Wo...@atosorigin.com>
> wrote:
>> Hi Mohammad Nour,
>>
>> I downloaded openEJB3.0 from the subversion repository
>> and use MAVEN 2.0.8 on a Windows machine.
>>
>> I first suspected that it has to do with blanks in my path to the  
>> local
>> maven repository.
>>
>> mit freundlichen Grüßen/best regards
>>
>> Wolfgang Schrecker
>>
>> "Der Inhalt eines Begriffs nimmt ab, wenn sein Umfang zunimmt; wird
> dieser
>> allumfassend, so muß der Inhalt ganz verloren gehen."
>> from G. Frege: Die Grundlagen der Arithmetik S. 40
>>
>>
>>
>> --
>> --------------------------------------------------
>>
>> Atos Worldline Processing GmbH
>> Hahnstrasse 25
>> 60528 Frankfurt/Main
>> Germany
>> Phone: +49 69/6657-1176
>> mailto:Wolfgang.Schrecker@atosorigin.com
>> http://www.atosworldline.com
>>
>> Geschäftsführer: Erik Munk Koefoed
>> Aufsichtsratsvorsitzender: Didier Dhennin
>> Sitz der Gesellschaft: Frankfurt/Main
>> Handelsregister: Frankfurt/Main HRB 40 417
>>
>> --------------------------------------------------
>>
>> Atos Worldline Processing GmbH
>> Hahnstraße 25
>> 60528 Frankfurt/Main
>> Germany
>> Phone: +49 69/6657-1176
>> Fax :
>> mailto: Wolfgang.Schrecker@atosorigin.com
>> http://www.atosworldline.com
>>
>> Geschäftsführer: Erik Munk Koefoed
>> Aufsichtsratsvorsitzender: Didier Dhennin
>> Sitz der Gesellschaft: Frankfurt/Main
>> Handelsregister: Frankfurt/Main HRB 40 417
>>
>>
>> * * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
>> This e-mail is destined for the above mentioned recipient. In case  
>> you
>> received this e-mail by accident, we would appreciate it if you could
>> contact the sender and delete all copies stored on your computer.
>> Please be aware that the security and confidentiality of electronic  
>> data
>> transmitted by e-mail is not completely guaranteed and that data  
>> may be
> seen,
>> copied, downloaded or changed by third persons during transmission.
>> Atos Origin accepts no liability for the security and  
>> confidentiality of
>> data and documents sent by e-mail. Please make sure that all  
>> important
>> messages will be confirmed in writing by means of a telefax or a  
>> letter.
>> * * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
>>
>
>
>
> --
> Thanks
> - Mohammad Nour
>
>
>
> --------------------------------------------------
>
> Atos Worldline Processing GmbH
> Hahnstraße 25
> 60528 Frankfurt/Main
> Germany
> Phone: +49 69/6657-1176
> Fax :
> mailto: Wolfgang.Schrecker@atosorigin.com
> http://www.atosworldline.com
>
> Geschäftsführer: Erik Munk Koefoed
> Aufsichtsratsvorsitzender: Didier Dhennin
> Sitz der Gesellschaft: Frankfurt/Main
> Handelsregister: Frankfurt/Main HRB 40 417
>
>
> * * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
> This e-mail is destined for the above mentioned recipient. In case you
> received this e-mail by accident, we would appreciate it if you could
> contact the sender and delete all copies stored on your computer.
> Please be aware that the security and confidentiality of electronic  
> data
> transmitted by e-mail is not completely guaranteed and that data may  
> be seen,
> copied, downloaded or changed by third persons during transmission.
> Atos Origin accepts no liability for the security and  
> confidentiality of
> data and documents sent by e-mail. Please make sure that all important
> messages will be confirmed in writing by means of a telefax or a  
> letter.
> * * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *


Antwort: Re: Re: maven build of openEJB3 [Virus checked]

Posted by Wo...@atosorigin.com.
That was a quick answer ! Thanks !

I think you 're right:  it is a problem with spaces, and the solution
should not be complicated,

change: (new File(directory)).toURL() to: (new
File(directory)).toURI().toURL()

in the maven plugin com.envoisolutions.sxc.jabc.maven.SxJaxbPlugin if you
have the source
or ask, whoever can do this.

I have seen this many times and anyway ... toURI().toURL() is the good way
to do this!

Let me know, what happens, please ...

mit freundlichen Grüßen/best regards

Wolfgang Schrecker

"Der Inhalt eines Begriffs nimmt ab, wenn sein Umfang zunimmt; wird dieser
allumfassend, so muß der Inhalt ganz verloren gehen."
from G. Frege: Die Grundlagen der Arithmetik S. 40



 --
--------------------------------------------------

Atos Worldline Processing GmbH
Hahnstrasse 25
60528 Frankfurt/Main
Germany
Phone: +49 69/6657-1176
mailto:Wolfgang.Schrecker@atosorigin.com
http://www.atosworldline.com

Geschäftsführer: Erik Munk Koefoed
Aufsichtsratsvorsitzender: Didier Dhennin
Sitz der Gesellschaft: Frankfurt/Main
Handelsregister: Frankfurt/Main HRB 40 417


                                                                           
             "Mohammad Nour                                                
             El-Din"                                                       
             <nour.mohammad@gm                                          An 
             ail.com>                   users@openejb.apache.org           
                                                                     Kopie 
             09.06.2008 14:57                                              
                                                                     Thema 
                                        Re: Re: maven build of openEJB3    
              Bitte antworten           [Virus checked]                    
                    an                                                     
             users@openejb.apa                                             
                  che.org                                                  
                                                                           
                                                                           
                                                                           




Does it work now, if not please start from a clean Maven local repo
and if it still not working try not to use a repo path with spaces,
and please tell us what you got :).

On Mon, Jun 9, 2008 at 10:17 AM,  <Wo...@atosorigin.com>
wrote:
> Hi Mohammad Nour,
>
> I downloaded openEJB3.0 from the subversion repository
> and use MAVEN 2.0.8 on a Windows machine.
>
> I first suspected that it has to do with blanks in my path to the local
> maven repository.
>
> mit freundlichen Grüßen/best regards
>
> Wolfgang Schrecker
>
> "Der Inhalt eines Begriffs nimmt ab, wenn sein Umfang zunimmt; wird
dieser
> allumfassend, so muß der Inhalt ganz verloren gehen."
> from G. Frege: Die Grundlagen der Arithmetik S. 40
>
>
>
>  --
> --------------------------------------------------
>
> Atos Worldline Processing GmbH
> Hahnstrasse 25
> 60528 Frankfurt/Main
> Germany
> Phone: +49 69/6657-1176
> mailto:Wolfgang.Schrecker@atosorigin.com
> http://www.atosworldline.com
>
> Geschäftsführer: Erik Munk Koefoed
> Aufsichtsratsvorsitzender: Didier Dhennin
> Sitz der Gesellschaft: Frankfurt/Main
> Handelsregister: Frankfurt/Main HRB 40 417
>
> --------------------------------------------------
>
> Atos Worldline Processing GmbH
> Hahnstraße 25
> 60528 Frankfurt/Main
> Germany
> Phone: +49 69/6657-1176
> Fax :
> mailto: Wolfgang.Schrecker@atosorigin.com
> http://www.atosworldline.com
>
> Geschäftsführer: Erik Munk Koefoed
> Aufsichtsratsvorsitzender: Didier Dhennin
> Sitz der Gesellschaft: Frankfurt/Main
> Handelsregister: Frankfurt/Main HRB 40 417
>
>
> * * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
> This e-mail is destined for the above mentioned recipient. In case you
> received this e-mail by accident, we would appreciate it if you could
> contact the sender and delete all copies stored on your computer.
> Please be aware that the security and confidentiality of electronic data
> transmitted by e-mail is not completely guaranteed and that data may be
seen,
> copied, downloaded or changed by third persons during transmission.
> Atos Origin accepts no liability for the security and confidentiality of
> data and documents sent by e-mail. Please make sure that all important
> messages will be confirmed in writing by means of a telefax or a letter.
> * * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
>



--
Thanks
- Mohammad Nour


 
--------------------------------------------------

Atos Worldline Processing GmbH
Hahnstraße 25
60528 Frankfurt/Main
Germany
Phone: +49 69/6657-1176
Fax :
mailto: Wolfgang.Schrecker@atosorigin.com
http://www.atosworldline.com

Geschäftsführer: Erik Munk Koefoed
Aufsichtsratsvorsitzender: Didier Dhennin
Sitz der Gesellschaft: Frankfurt/Main
Handelsregister: Frankfurt/Main HRB 40 417


* * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
This e-mail is destined for the above mentioned recipient. In case you
received this e-mail by accident, we would appreciate it if you could
contact the sender and delete all copies stored on your computer.
Please be aware that the security and confidentiality of electronic data
transmitted by e-mail is not completely guaranteed and that data may be seen,
copied, downloaded or changed by third persons during transmission.
Atos Origin accepts no liability for the security and confidentiality of
data and documents sent by e-mail. Please make sure that all important
messages will be confirmed in writing by means of a telefax or a letter.
* * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *

Re: Re: maven build of openEJB3 [Virus checked]

Posted by Mohammad Nour El-Din <no...@gmail.com>.
Does it work now, if not please start from a clean Maven local repo
and if it still not working try not to use a repo path with spaces,
and please tell us what you got :).

On Mon, Jun 9, 2008 at 10:17 AM,  <Wo...@atosorigin.com> wrote:
> Hi Mohammad Nour,
>
> I downloaded openEJB3.0 from the subversion repository
> and use MAVEN 2.0.8 on a Windows machine.
>
> I first suspected that it has to do with blanks in my path to the local
> maven repository.
>
> mit freundlichen Grüßen/best regards
>
> Wolfgang Schrecker
>
> "Der Inhalt eines Begriffs nimmt ab, wenn sein Umfang zunimmt; wird dieser
> allumfassend, so muß der Inhalt ganz verloren gehen."
> from G. Frege: Die Grundlagen der Arithmetik S. 40
>
>
>
>  --
> --------------------------------------------------
>
> Atos Worldline Processing GmbH
> Hahnstrasse 25
> 60528 Frankfurt/Main
> Germany
> Phone: +49 69/6657-1176
> mailto:Wolfgang.Schrecker@atosorigin.com
> http://www.atosworldline.com
>
> Geschäftsführer: Erik Munk Koefoed
> Aufsichtsratsvorsitzender: Didier Dhennin
> Sitz der Gesellschaft: Frankfurt/Main
> Handelsregister: Frankfurt/Main HRB 40 417
>
> --------------------------------------------------
>
> Atos Worldline Processing GmbH
> Hahnstraße 25
> 60528 Frankfurt/Main
> Germany
> Phone: +49 69/6657-1176
> Fax :
> mailto: Wolfgang.Schrecker@atosorigin.com
> http://www.atosworldline.com
>
> Geschäftsführer: Erik Munk Koefoed
> Aufsichtsratsvorsitzender: Didier Dhennin
> Sitz der Gesellschaft: Frankfurt/Main
> Handelsregister: Frankfurt/Main HRB 40 417
>
>
> * * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
> This e-mail is destined for the above mentioned recipient. In case you
> received this e-mail by accident, we would appreciate it if you could
> contact the sender and delete all copies stored on your computer.
> Please be aware that the security and confidentiality of electronic data
> transmitted by e-mail is not completely guaranteed and that data may be seen,
> copied, downloaded or changed by third persons during transmission.
> Atos Origin accepts no liability for the security and confidentiality of
> data and documents sent by e-mail. Please make sure that all important
> messages will be confirmed in writing by means of a telefax or a letter.
> * * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
>



-- 
Thanks
- Mohammad Nour

Re: maven build of openEJB3 [Virus checked]

Posted by Manu George <ma...@gmail.com>.
I guess I did something wrong. It works with Dains patch

Regards
Manu

On Sun, Jun 8, 2008 at 1:27 PM, Mohammad Nour El-Din
<no...@gmail.com> wrote:
> Hi Dain...
>  Manu added the plugin repo but the build still failed on his
> *Windows* machine, he said he will try it using an older version of
> Maven - like 2.0.6 - but never knew what happened with him. Wolfgang,
> do you run build in the same/similar environment ?
>
> On Fri, Jun 6, 2008 at 1:45 AM, Dain Sundstrom <da...@iq80.com> wrote:
>> I think I fixed this earlier today.  I forgot to add declare the plugin
>> repository for this SXC plugin.
>>
>> Anyway, if you svn update your source code, it would build now.
>>
>> -dain
>>
>>
>> On Jun 5, 2008, at 8:24 AM, Wolfgang.Schrecker@atosorigin.com wrote:
>>
>>> Hi guys,
>>>
>>> I am pretty new to openEJB3, so please bare with me, if I am asking the
>>> obvious.
>>>
>>> Compilation of openEJB3 subproject openejb-j2ee breaks with the following
>>> message:
>>>
>>>
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Building OpenEJB :: Container :: Java EE
>>> [INFO]    task-segment: [install]
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] [remote-resources:process {execution: default}]
>>> [INFO] [resources:resources]
>>> [INFO] Using default encoding to copy filtered resources.
>>> [INFO] [compiler:compile]
>>> [INFO] Nothing to compile - all classes are up to date
>>> [INFO] [dependency-report:report {execution: default}]
>>> [INFO] [bundle:manifest {execution: bundle-manifest}]
>>> -----------------------------------------------------
>>> this realm =
>>> app0.child-container[com.envoisolutions.sxc:sxc-jaxb-maven-plugin]
>>> urls[0] = file:/D:/Dokumente und
>>>
>>> Einstellungen/DE16297/.m2/repository/com/envoisolutions/sxc/sxc-jaxb-maven-plugin/0.7-SNAPSHOT/sxc-jaxb-maven-plugin-0.7-SNAPSHOT.jar
>>> urls[1] = file:/D:/Dokumente und
>>> Einstellungen/DE16297/.m2/repository/org/codehaus/woodstox/wstx-asl/3.2.0
>>> /wstx-asl-3.2.0.jar
>>> urls[2] = file:/D:/Dokumente und
>>>
>>> Einstellungen/DE16297/.m2/repository/stax/stax-api/1.0.1/stax-api-1.0.1.jar
>>> urls[3] = file:/D:/Dokumente und
>>>
>>> Einstellungen/DE16297/.m2/repository/com/envoisolutions/sxc/sxc-core/0.7-SNAPSHOT/sxc-core-0.7-SNAPSHOT.jar
>>> urls[4] = file:/C:/Programme/Java/jdk1.5.0_12/jre/../lib/tools.jar
>>> urls[5] = file:/D:/Dokumente und
>>>
>>> Einstellungen/DE16297/.m2/repository/com/envoisolutions/sxc/sxc-runtime/0.7-SNAPSHOT/sxc-runtime-0.7-SNAPSHOT.jar
>>> urls[6] = file:/D:/Dokumente und
>>> Einstellungen/DE16297/.m2/repository/com/sun/xml/bind/jaxb-xjc/2.1.2
>>> /jaxb-xjc-2.1.2.jar
>>> urls[7] = file:/D:/Dokumente und
>>>
>>> Einstellungen/DE16297/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
>>> urls[8] = file:/D:/Dokumente und
>>> Einstellungen/DE16297/.m2/repository/com/sun/xml/bind/jaxb-impl/2.1.2
>>> /jaxb-impl-2.1.2.jar
>>> urls[9] = file:/D:/Dokumente und
>>>
>>> Einstellungen/DE16297/.m2/repository/com/envoisolutions/sxc/sxc-jaxb/0.7-SNAPSHOT/sxc-jaxb-0.7-SNAPSHOT.jar
>>> Number of imports: 6
>>> import: org.codehaus.classworlds.Entry@4891bb28
>>> import: org.codehaus.classworlds.Entry@f8e44ca4
>>> import: org.codehaus.classworlds.Entry@c51bc9e7
>>> import: org.codehaus.classworlds.Entry@bece5185
>>> import: org.codehaus.classworlds.Entry@3fee8e37
>>> import: org.codehaus.classworlds.Entry@3fee19d8
>>>
>>>
>>> this realm = plexus.core
>>> urls[0] = file:/C:/Programme/Apache Software Foundation/apache-maven-2.0.8
>>> /lib/maven-2.0.8-uber.jar
>>> Number of imports: 6
>>> import: org.codehaus.classworlds.Entry@4891bb28
>>> import: org.codehaus.classworlds.Entry@f8e44ca4
>>> import: org.codehaus.classworlds.Entry@c51bc9e7
>>> import: org.codehaus.classworlds.Entry@bece5185
>>> import: org.codehaus.classworlds.Entry@3fee8e37
>>> import: org.codehaus.classworlds.Entry@3fee19d8
>>> -----------------------------------------------------
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [ERROR] BUILD ERROR
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Internal error in the plugin manager executing goal
>>> 'com.envoisolutions.sxc:sxc-jaxb-maven-plugin:0.7-SNAPSHOT:generate':
>>> Unable to find the mojo
>>> 'com.envoisolutions.sxc:sxc-jaxb-maven-plugin:0.7-SNAPSHOT:generate' in
>>> the
>>> plugin 'com.envoisolutions.sxc:sxc-jaxb-maven-plugin'
>>> javax/xml/bind/JAXBException
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Trace
>>> org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in
>>> the plugin manager executing goal
>>> 'com.envoisolutions.sxc:sxc-jaxb-maven-plugin:0.7-SNAPSHOT:generate':
>>> Unable to find the mojo
>>> 'com.envoisolutions.sxc:sxc-jaxb-maven-plugin:0.7-SNAPSHOT:generate' in
>>> the
>>> plugin 'com.envoisolutions.sxc:sxc-jaxb-maven-plugin'
>>>     at
>>>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:543)
>>>     at
>>>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
>>>     at
>>>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
>>>     at
>>>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
>>>     at
>>>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
>>>     at
>>>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
>>>     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
>>>     at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
>>>     at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
>>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>     at
>>>
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>     at
>>>
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>     at java.lang.reflect.Method.invoke(Method.java:585)
>>>     at
>>> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>>>     at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>>>     at
>>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>>>     at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>>> Caused by: org.apache.maven.plugin.PluginManagerException: Unable to find
>>> the mojo
>>> 'com.envoisolutions.sxc:sxc-jaxb-maven-plugin:0.7-SNAPSHOT:generate' in
>>> the
>>> plugin 'com.envoisolutions.sxc:sxc-jaxb-maven-plugin'
>>>     at
>>>
>>> org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:575)
>>>     at
>>>
>>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:425)
>>>     at
>>>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
>>>     ... 16 more
>>> Caused by:
>>>
>>> org.codehaus.plexus.component.repository.exception.ComponentLookupException:
>>> Unable to lookup component
>>>
>>> 'org.apache.maven.plugin.Mojocom.envoisolutions.sxc:sxc-jaxb-maven-plugin:0.7-SNAPSHOT:generate',
>>> it could not be created
>>>     at
>>>
>>> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:335)
>>>     at
>>>
>>> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:440)
>>>     at
>>>
>>> org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:566)
>>>     ... 18 more
>>> Caused by:
>>> org.codehaus.plexus.component.factory.ComponentInstantiationException:
>>> Could not instanciate component: role: 'null', implementation:
>>> 'com.envoisolutions.sxc.jaxb.maven.SxcJaxbPlugin'
>>>     at
>>>
>>> org.codehaus.plexus.component.factory.java.JavaComponentFactory.makeException(JavaComponentFactory.java:77)
>>>     at
>>>
>>> org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(JavaComponentFactory.java:62)
>>>     at
>>>
>>> org.codehaus.plexus.DefaultPlexusContainer.createComponentInstance(DefaultPlexusContainer.java:1464)
>>>     at
>>>
>>> org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:93)
>>>     at
>>>
>>> org.codehaus.plexus.component.manager.PerLookupComponentManager.getComponent(PerLookupComponentManager.java:48)
>>>     at
>>>
>>> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331)
>>>     ... 20 more
>>> Caused by: java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
>>>     at java.lang.Class.getDeclaredConstructors0(Native Method)
>>>     at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
>>>     at java.lang.Class.getConstructor0(Class.java:2671)
>>>     at java.lang.Class.newInstance0(Class.java:321)
>>>     at java.lang.Class.newInstance(Class.java:303)
>>>     at
>>>
>>> org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(JavaComponentFactory.java:44)
>>>     ... 24 more
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Total time: 1 minute 2 seconds
>>> [INFO] Finished at: Thu Jun 05 17:21:38 CEST 2008
>>> [INFO] Final Memory: 26M/47M
>>> [INFO] -----------
>>>
>>> any help appreciated !!!!!!!!!!
>>>
>>> mit freundlichen Grüßen/best regards
>>>
>>> Wolfgang Schrecker
>>>
>>> "Der Inhalt eines Begriffs nimmt ab, wenn sein Umfang zunimmt; wird dieser
>>> allumfassend, so muß der Inhalt ganz verloren gehen."
>>> from G. Frege: Die Grundlagen der Arithmetik S. 40
>>>
>>>
>>>
>>> --
>>> --------------------------------------------------
>>>
>>> Atos Worldline Processing GmbH
>>> Hahnstrasse 25
>>> 60528 Frankfurt/Main
>>> Germany
>>> Phone: +49 69/6657-1176
>>> mailto:Wolfgang.Schrecker@atosorigin.com
>>> http://www.atosworldline.com
>>>
>>> Geschäftsführer: Erik Munk Koefoed
>>> Aufsichtsratsvorsitzender: Didier Dhennin
>>> Sitz der Gesellschaft: Frankfurt/Main
>>> Handelsregister: Frankfurt/Main HRB 40 417
>>>
>>> --------------------------------------------------
>>>
>>> Atos Worldline Processing GmbH
>>> Hahnstraße 25
>>> 60528 Frankfurt/Main
>>> Germany
>>> Phone: +49 69/6657-1176
>>> Fax :
>>> mailto: Wolfgang.Schrecker@atosorigin.com
>>> http://www.atosworldline.com
>>>
>>> Geschäftsführer: Erik Munk Koefoed
>>> Aufsichtsratsvorsitzender: Didier Dhennin
>>> Sitz der Gesellschaft: Frankfurt/Main
>>> Handelsregister: Frankfurt/Main HRB 40 417
>>>
>>>
>>> * * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
>>> This e-mail is destined for the above mentioned recipient. In case you
>>> received this e-mail by accident, we would appreciate it if you could
>>> contact the sender and delete all copies stored on your computer.
>>> Please be aware that the security and confidentiality of electronic data
>>> transmitted by e-mail is not completely guaranteed and that data may be
>>> seen,
>>> copied, downloaded or changed by third persons during transmission.
>>> Atos Origin accepts no liability for the security and confidentiality of
>>> data and documents sent by e-mail. Please make sure that all important
>>> messages will be confirmed in writing by means of a telefax or a letter.
>>> * * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
>>
>>
>
>
>
> --
> Thanks
> - Mohammad Nour
>

Antwort: Re: maven build of openEJB3 [Virus checked]

Posted by Wo...@atosorigin.com.
Hi Mohammad Nour,

I downloaded openEJB3.0 from the subversion repository
and use MAVEN 2.0.8 on a Windows machine.

I first suspected that it has to do with blanks in my path to the local
maven repository.

mit freundlichen Grüßen/best regards

Wolfgang Schrecker

"Der Inhalt eines Begriffs nimmt ab, wenn sein Umfang zunimmt; wird dieser
allumfassend, so muß der Inhalt ganz verloren gehen."
from G. Frege: Die Grundlagen der Arithmetik S. 40



 --
--------------------------------------------------

Atos Worldline Processing GmbH
Hahnstrasse 25
60528 Frankfurt/Main
Germany
Phone: +49 69/6657-1176
mailto:Wolfgang.Schrecker@atosorigin.com
http://www.atosworldline.com

Geschäftsführer: Erik Munk Koefoed
Aufsichtsratsvorsitzender: Didier Dhennin
Sitz der Gesellschaft: Frankfurt/Main
Handelsregister: Frankfurt/Main HRB 40 417
 
--------------------------------------------------

Atos Worldline Processing GmbH
Hahnstraße 25
60528 Frankfurt/Main
Germany
Phone: +49 69/6657-1176
Fax :
mailto: Wolfgang.Schrecker@atosorigin.com
http://www.atosworldline.com

Geschäftsführer: Erik Munk Koefoed
Aufsichtsratsvorsitzender: Didier Dhennin
Sitz der Gesellschaft: Frankfurt/Main
Handelsregister: Frankfurt/Main HRB 40 417


* * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
This e-mail is destined for the above mentioned recipient. In case you
received this e-mail by accident, we would appreciate it if you could
contact the sender and delete all copies stored on your computer.
Please be aware that the security and confidentiality of electronic data
transmitted by e-mail is not completely guaranteed and that data may be seen,
copied, downloaded or changed by third persons during transmission.
Atos Origin accepts no liability for the security and confidentiality of
data and documents sent by e-mail. Please make sure that all important
messages will be confirmed in writing by means of a telefax or a letter.
* * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *

Re: maven build of openEJB3 [Virus checked]

Posted by Mohammad Nour El-Din <no...@gmail.com>.
Hi Dain...
  Manu added the plugin repo but the build still failed on his
*Windows* machine, he said he will try it using an older version of
Maven - like 2.0.6 - but never knew what happened with him. Wolfgang,
do you run build in the same/similar environment ?

On Fri, Jun 6, 2008 at 1:45 AM, Dain Sundstrom <da...@iq80.com> wrote:
> I think I fixed this earlier today.  I forgot to add declare the plugin
> repository for this SXC plugin.
>
> Anyway, if you svn update your source code, it would build now.
>
> -dain
>
>
> On Jun 5, 2008, at 8:24 AM, Wolfgang.Schrecker@atosorigin.com wrote:
>
>> Hi guys,
>>
>> I am pretty new to openEJB3, so please bare with me, if I am asking the
>> obvious.
>>
>> Compilation of openEJB3 subproject openejb-j2ee breaks with the following
>> message:
>>
>>
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Building OpenEJB :: Container :: Java EE
>> [INFO]    task-segment: [install]
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] [remote-resources:process {execution: default}]
>> [INFO] [resources:resources]
>> [INFO] Using default encoding to copy filtered resources.
>> [INFO] [compiler:compile]
>> [INFO] Nothing to compile - all classes are up to date
>> [INFO] [dependency-report:report {execution: default}]
>> [INFO] [bundle:manifest {execution: bundle-manifest}]
>> -----------------------------------------------------
>> this realm =
>> app0.child-container[com.envoisolutions.sxc:sxc-jaxb-maven-plugin]
>> urls[0] = file:/D:/Dokumente und
>>
>> Einstellungen/DE16297/.m2/repository/com/envoisolutions/sxc/sxc-jaxb-maven-plugin/0.7-SNAPSHOT/sxc-jaxb-maven-plugin-0.7-SNAPSHOT.jar
>> urls[1] = file:/D:/Dokumente und
>> Einstellungen/DE16297/.m2/repository/org/codehaus/woodstox/wstx-asl/3.2.0
>> /wstx-asl-3.2.0.jar
>> urls[2] = file:/D:/Dokumente und
>>
>> Einstellungen/DE16297/.m2/repository/stax/stax-api/1.0.1/stax-api-1.0.1.jar
>> urls[3] = file:/D:/Dokumente und
>>
>> Einstellungen/DE16297/.m2/repository/com/envoisolutions/sxc/sxc-core/0.7-SNAPSHOT/sxc-core-0.7-SNAPSHOT.jar
>> urls[4] = file:/C:/Programme/Java/jdk1.5.0_12/jre/../lib/tools.jar
>> urls[5] = file:/D:/Dokumente und
>>
>> Einstellungen/DE16297/.m2/repository/com/envoisolutions/sxc/sxc-runtime/0.7-SNAPSHOT/sxc-runtime-0.7-SNAPSHOT.jar
>> urls[6] = file:/D:/Dokumente und
>> Einstellungen/DE16297/.m2/repository/com/sun/xml/bind/jaxb-xjc/2.1.2
>> /jaxb-xjc-2.1.2.jar
>> urls[7] = file:/D:/Dokumente und
>>
>> Einstellungen/DE16297/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
>> urls[8] = file:/D:/Dokumente und
>> Einstellungen/DE16297/.m2/repository/com/sun/xml/bind/jaxb-impl/2.1.2
>> /jaxb-impl-2.1.2.jar
>> urls[9] = file:/D:/Dokumente und
>>
>> Einstellungen/DE16297/.m2/repository/com/envoisolutions/sxc/sxc-jaxb/0.7-SNAPSHOT/sxc-jaxb-0.7-SNAPSHOT.jar
>> Number of imports: 6
>> import: org.codehaus.classworlds.Entry@4891bb28
>> import: org.codehaus.classworlds.Entry@f8e44ca4
>> import: org.codehaus.classworlds.Entry@c51bc9e7
>> import: org.codehaus.classworlds.Entry@bece5185
>> import: org.codehaus.classworlds.Entry@3fee8e37
>> import: org.codehaus.classworlds.Entry@3fee19d8
>>
>>
>> this realm = plexus.core
>> urls[0] = file:/C:/Programme/Apache Software Foundation/apache-maven-2.0.8
>> /lib/maven-2.0.8-uber.jar
>> Number of imports: 6
>> import: org.codehaus.classworlds.Entry@4891bb28
>> import: org.codehaus.classworlds.Entry@f8e44ca4
>> import: org.codehaus.classworlds.Entry@c51bc9e7
>> import: org.codehaus.classworlds.Entry@bece5185
>> import: org.codehaus.classworlds.Entry@3fee8e37
>> import: org.codehaus.classworlds.Entry@3fee19d8
>> -----------------------------------------------------
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD ERROR
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Internal error in the plugin manager executing goal
>> 'com.envoisolutions.sxc:sxc-jaxb-maven-plugin:0.7-SNAPSHOT:generate':
>> Unable to find the mojo
>> 'com.envoisolutions.sxc:sxc-jaxb-maven-plugin:0.7-SNAPSHOT:generate' in
>> the
>> plugin 'com.envoisolutions.sxc:sxc-jaxb-maven-plugin'
>> javax/xml/bind/JAXBException
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Trace
>> org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in
>> the plugin manager executing goal
>> 'com.envoisolutions.sxc:sxc-jaxb-maven-plugin:0.7-SNAPSHOT:generate':
>> Unable to find the mojo
>> 'com.envoisolutions.sxc:sxc-jaxb-maven-plugin:0.7-SNAPSHOT:generate' in
>> the
>> plugin 'com.envoisolutions.sxc:sxc-jaxb-maven-plugin'
>>     at
>>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:543)
>>     at
>>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
>>     at
>>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
>>     at
>>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
>>     at
>>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
>>     at
>>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
>>     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
>>     at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
>>     at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>     at
>>
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>     at
>>
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>     at java.lang.reflect.Method.invoke(Method.java:585)
>>     at
>> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>>     at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>>     at
>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>>     at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>> Caused by: org.apache.maven.plugin.PluginManagerException: Unable to find
>> the mojo
>> 'com.envoisolutions.sxc:sxc-jaxb-maven-plugin:0.7-SNAPSHOT:generate' in
>> the
>> plugin 'com.envoisolutions.sxc:sxc-jaxb-maven-plugin'
>>     at
>>
>> org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:575)
>>     at
>>
>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:425)
>>     at
>>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
>>     ... 16 more
>> Caused by:
>>
>> org.codehaus.plexus.component.repository.exception.ComponentLookupException:
>> Unable to lookup component
>>
>> 'org.apache.maven.plugin.Mojocom.envoisolutions.sxc:sxc-jaxb-maven-plugin:0.7-SNAPSHOT:generate',
>> it could not be created
>>     at
>>
>> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:335)
>>     at
>>
>> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:440)
>>     at
>>
>> org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:566)
>>     ... 18 more
>> Caused by:
>> org.codehaus.plexus.component.factory.ComponentInstantiationException:
>> Could not instanciate component: role: 'null', implementation:
>> 'com.envoisolutions.sxc.jaxb.maven.SxcJaxbPlugin'
>>     at
>>
>> org.codehaus.plexus.component.factory.java.JavaComponentFactory.makeException(JavaComponentFactory.java:77)
>>     at
>>
>> org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(JavaComponentFactory.java:62)
>>     at
>>
>> org.codehaus.plexus.DefaultPlexusContainer.createComponentInstance(DefaultPlexusContainer.java:1464)
>>     at
>>
>> org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:93)
>>     at
>>
>> org.codehaus.plexus.component.manager.PerLookupComponentManager.getComponent(PerLookupComponentManager.java:48)
>>     at
>>
>> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331)
>>     ... 20 more
>> Caused by: java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
>>     at java.lang.Class.getDeclaredConstructors0(Native Method)
>>     at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
>>     at java.lang.Class.getConstructor0(Class.java:2671)
>>     at java.lang.Class.newInstance0(Class.java:321)
>>     at java.lang.Class.newInstance(Class.java:303)
>>     at
>>
>> org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(JavaComponentFactory.java:44)
>>     ... 24 more
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 1 minute 2 seconds
>> [INFO] Finished at: Thu Jun 05 17:21:38 CEST 2008
>> [INFO] Final Memory: 26M/47M
>> [INFO] -----------
>>
>> any help appreciated !!!!!!!!!!
>>
>> mit freundlichen Grüßen/best regards
>>
>> Wolfgang Schrecker
>>
>> "Der Inhalt eines Begriffs nimmt ab, wenn sein Umfang zunimmt; wird dieser
>> allumfassend, so muß der Inhalt ganz verloren gehen."
>> from G. Frege: Die Grundlagen der Arithmetik S. 40
>>
>>
>>
>> --
>> --------------------------------------------------
>>
>> Atos Worldline Processing GmbH
>> Hahnstrasse 25
>> 60528 Frankfurt/Main
>> Germany
>> Phone: +49 69/6657-1176
>> mailto:Wolfgang.Schrecker@atosorigin.com
>> http://www.atosworldline.com
>>
>> Geschäftsführer: Erik Munk Koefoed
>> Aufsichtsratsvorsitzender: Didier Dhennin
>> Sitz der Gesellschaft: Frankfurt/Main
>> Handelsregister: Frankfurt/Main HRB 40 417
>>
>> --------------------------------------------------
>>
>> Atos Worldline Processing GmbH
>> Hahnstraße 25
>> 60528 Frankfurt/Main
>> Germany
>> Phone: +49 69/6657-1176
>> Fax :
>> mailto: Wolfgang.Schrecker@atosorigin.com
>> http://www.atosworldline.com
>>
>> Geschäftsführer: Erik Munk Koefoed
>> Aufsichtsratsvorsitzender: Didier Dhennin
>> Sitz der Gesellschaft: Frankfurt/Main
>> Handelsregister: Frankfurt/Main HRB 40 417
>>
>>
>> * * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
>> This e-mail is destined for the above mentioned recipient. In case you
>> received this e-mail by accident, we would appreciate it if you could
>> contact the sender and delete all copies stored on your computer.
>> Please be aware that the security and confidentiality of electronic data
>> transmitted by e-mail is not completely guaranteed and that data may be
>> seen,
>> copied, downloaded or changed by third persons during transmission.
>> Atos Origin accepts no liability for the security and confidentiality of
>> data and documents sent by e-mail. Please make sure that all important
>> messages will be confirmed in writing by means of a telefax or a letter.
>> * * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
>
>



-- 
Thanks
- Mohammad Nour

Re: maven build of openEJB3 [Virus checked]

Posted by Dain Sundstrom <da...@iq80.com>.
I think I fixed this earlier today.  I forgot to add declare the  
plugin repository for this SXC plugin.

Anyway, if you svn update your source code, it would build now.

-dain


On Jun 5, 2008, at 8:24 AM, Wolfgang.Schrecker@atosorigin.com wrote:

> Hi guys,
>
> I am pretty new to openEJB3, so please bare with me, if I am asking  
> the
> obvious.
>
> Compilation of openEJB3 subproject openejb-j2ee breaks with the  
> following
> message:
>
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building OpenEJB :: Container :: Java EE
> [INFO]    task-segment: [install]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [remote-resources:process {execution: default}]
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [dependency-report:report {execution: default}]
> [INFO] [bundle:manifest {execution: bundle-manifest}]
> -----------------------------------------------------
> this realm =
> app0.child-container[com.envoisolutions.sxc:sxc-jaxb-maven-plugin]
> urls[0] = file:/D:/Dokumente und
> Einstellungen/DE16297/.m2/repository/com/envoisolutions/sxc/sxc-jaxb- 
> maven-plugin/0.7-SNAPSHOT/sxc-jaxb-maven-plugin-0.7-SNAPSHOT.jar
> urls[1] = file:/D:/Dokumente und
> Einstellungen/DE16297/.m2/repository/org/codehaus/woodstox/wstx-asl/ 
> 3.2.0
> /wstx-asl-3.2.0.jar
> urls[2] = file:/D:/Dokumente und
> Einstellungen/DE16297/.m2/repository/stax/stax-api/1.0.1/stax- 
> api-1.0.1.jar
> urls[3] = file:/D:/Dokumente und
> Einstellungen/DE16297/.m2/repository/com/envoisolutions/sxc/sxc-core/ 
> 0.7-SNAPSHOT/sxc-core-0.7-SNAPSHOT.jar
> urls[4] = file:/C:/Programme/Java/jdk1.5.0_12/jre/../lib/tools.jar
> urls[5] = file:/D:/Dokumente und
> Einstellungen/DE16297/.m2/repository/com/envoisolutions/sxc/sxc- 
> runtime/0.7-SNAPSHOT/sxc-runtime-0.7-SNAPSHOT.jar
> urls[6] = file:/D:/Dokumente und
> Einstellungen/DE16297/.m2/repository/com/sun/xml/bind/jaxb-xjc/2.1.2
> /jaxb-xjc-2.1.2.jar
> urls[7] = file:/D:/Dokumente und
> Einstellungen/DE16297/.m2/repository/org/codehaus/plexus/plexus- 
> utils/1.1/plexus-utils-1.1.jar
> urls[8] = file:/D:/Dokumente und
> Einstellungen/DE16297/.m2/repository/com/sun/xml/bind/jaxb-impl/2.1.2
> /jaxb-impl-2.1.2.jar
> urls[9] = file:/D:/Dokumente und
> Einstellungen/DE16297/.m2/repository/com/envoisolutions/sxc/sxc-jaxb/ 
> 0.7-SNAPSHOT/sxc-jaxb-0.7-SNAPSHOT.jar
> Number of imports: 6
> import: org.codehaus.classworlds.Entry@4891bb28
> import: org.codehaus.classworlds.Entry@f8e44ca4
> import: org.codehaus.classworlds.Entry@c51bc9e7
> import: org.codehaus.classworlds.Entry@bece5185
> import: org.codehaus.classworlds.Entry@3fee8e37
> import: org.codehaus.classworlds.Entry@3fee19d8
>
>
> this realm = plexus.core
> urls[0] = file:/C:/Programme/Apache Software Foundation/apache- 
> maven-2.0.8
> /lib/maven-2.0.8-uber.jar
> Number of imports: 6
> import: org.codehaus.classworlds.Entry@4891bb28
> import: org.codehaus.classworlds.Entry@f8e44ca4
> import: org.codehaus.classworlds.Entry@c51bc9e7
> import: org.codehaus.classworlds.Entry@bece5185
> import: org.codehaus.classworlds.Entry@3fee8e37
> import: org.codehaus.classworlds.Entry@3fee19d8
> -----------------------------------------------------
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Internal error in the plugin manager executing goal
> 'com.envoisolutions.sxc:sxc-jaxb-maven-plugin:0.7-SNAPSHOT:generate':
> Unable to find the mojo
> 'com.envoisolutions.sxc:sxc-jaxb-maven-plugin:0.7-SNAPSHOT:generate'  
> in the
> plugin 'com.envoisolutions.sxc:sxc-jaxb-maven-plugin'
> javax/xml/bind/JAXBException
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Internal  
> error in
> the plugin manager executing goal
> 'com.envoisolutions.sxc:sxc-jaxb-maven-plugin:0.7-SNAPSHOT:generate':
> Unable to find the mojo
> 'com.envoisolutions.sxc:sxc-jaxb-maven-plugin:0.7-SNAPSHOT:generate'  
> in the
> plugin 'com.envoisolutions.sxc:sxc-jaxb-maven-plugin'
>      at
> org 
> .apache 
> .maven 
> .lifecycle 
> .DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java: 
> 543)
>      at
> org 
> .apache 
> .maven 
> .lifecycle 
> .DefaultLifecycleExecutor 
> .executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
>      at
> org 
> .apache 
> .maven 
> .lifecycle 
> .DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java: 
> 459)
>      at
> org 
> .apache 
> .maven 
> .lifecycle 
> .DefaultLifecycleExecutor 
> .executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
>      at
> org 
> .apache 
> .maven 
> .lifecycle 
> .DefaultLifecycleExecutor 
> .executeTaskSegments(DefaultLifecycleExecutor.java:278)
>      at
> org 
> .apache 
> .maven 
> .lifecycle 
> .DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
>      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
>      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
>      at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
>      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>      at
> sun 
> .reflect 
> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>      at
> sun 
> .reflect 
> .DelegatingMethodAccessorImpl 
> .invoke(DelegatingMethodAccessorImpl.java:25)
>      at java.lang.reflect.Method.invoke(Method.java:585)
>      at
> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>      at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>      at
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>      at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.PluginManagerException: Unable to  
> find
> the mojo
> 'com.envoisolutions.sxc:sxc-jaxb-maven-plugin:0.7-SNAPSHOT:generate'  
> in the
> plugin 'com.envoisolutions.sxc:sxc-jaxb-maven-plugin'
>      at
> org 
> .apache 
> .maven 
> .plugin 
> .DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:575)
>      at
> org 
> .apache 
> .maven 
> .plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java: 
> 425)
>      at
> org 
> .apache 
> .maven 
> .lifecycle 
> .DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java: 
> 539)
>      ... 16 more
> Caused by:
> org 
> .codehaus 
> .plexus.component.repository.exception.ComponentLookupException:
> Unable to lookup component
> 'org.apache.maven.plugin.Mojocom.envoisolutions.sxc:sxc-jaxb-maven- 
> plugin:0.7-SNAPSHOT:generate',
> it could not be created
>      at
> org 
> .codehaus 
> .plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:335)
>      at
> org 
> .codehaus 
> .plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:440)
>      at
> org 
> .apache 
> .maven 
> .plugin 
> .DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:566)
>      ... 18 more
> Caused by:
> org.codehaus.plexus.component.factory.ComponentInstantiationException:
> Could not instanciate component: role: 'null', implementation:
> 'com.envoisolutions.sxc.jaxb.maven.SxcJaxbPlugin'
>      at
> org 
> .codehaus 
> .plexus 
> .component 
> .factory 
> .java.JavaComponentFactory.makeException(JavaComponentFactory.java:77)
>      at
> org 
> .codehaus 
> .plexus 
> .component 
> .factory 
> .java.JavaComponentFactory.newInstance(JavaComponentFactory.java:62)
>      at
> org 
> .codehaus 
> .plexus 
> .DefaultPlexusContainer 
> .createComponentInstance(DefaultPlexusContainer.java:1464)
>      at
> org 
> .codehaus 
> .plexus 
> .component 
> .manager 
> .AbstractComponentManager 
> .createComponentInstance(AbstractComponentManager.java:93)
>      at
> org 
> .codehaus 
> .plexus 
> .component 
> .manager 
> .PerLookupComponentManager 
> .getComponent(PerLookupComponentManager.java:48)
>      at
> org 
> .codehaus 
> .plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331)
>      ... 20 more
> Caused by: java.lang.NoClassDefFoundError: javax/xml/bind/ 
> JAXBException
>      at java.lang.Class.getDeclaredConstructors0(Native Method)
>      at java.lang.Class.privateGetDeclaredConstructors(Class.java: 
> 2357)
>      at java.lang.Class.getConstructor0(Class.java:2671)
>      at java.lang.Class.newInstance0(Class.java:321)
>      at java.lang.Class.newInstance(Class.java:303)
>      at
> org 
> .codehaus 
> .plexus 
> .component 
> .factory 
> .java.JavaComponentFactory.newInstance(JavaComponentFactory.java:44)
>      ... 24 more
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 1 minute 2 seconds
> [INFO] Finished at: Thu Jun 05 17:21:38 CEST 2008
> [INFO] Final Memory: 26M/47M
> [INFO] -----------
>
> any help appreciated !!!!!!!!!!
>
> mit freundlichen Grüßen/best regards
>
> Wolfgang Schrecker
>
> "Der Inhalt eines Begriffs nimmt ab, wenn sein Umfang zunimmt; wird  
> dieser
> allumfassend, so muß der Inhalt ganz verloren gehen."
> from G. Frege: Die Grundlagen der Arithmetik S. 40
>
>
>
> --
> --------------------------------------------------
>
> Atos Worldline Processing GmbH
> Hahnstrasse 25
> 60528 Frankfurt/Main
> Germany
> Phone: +49 69/6657-1176
> mailto:Wolfgang.Schrecker@atosorigin.com
> http://www.atosworldline.com
>
> Geschäftsführer: Erik Munk Koefoed
> Aufsichtsratsvorsitzender: Didier Dhennin
> Sitz der Gesellschaft: Frankfurt/Main
> Handelsregister: Frankfurt/Main HRB 40 417
>
> --------------------------------------------------
>
> Atos Worldline Processing GmbH
> Hahnstraße 25
> 60528 Frankfurt/Main
> Germany
> Phone: +49 69/6657-1176
> Fax :
> mailto: Wolfgang.Schrecker@atosorigin.com
> http://www.atosworldline.com
>
> Geschäftsführer: Erik Munk Koefoed
> Aufsichtsratsvorsitzender: Didier Dhennin
> Sitz der Gesellschaft: Frankfurt/Main
> Handelsregister: Frankfurt/Main HRB 40 417
>
>
> * * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
> This e-mail is destined for the above mentioned recipient. In case you
> received this e-mail by accident, we would appreciate it if you could
> contact the sender and delete all copies stored on your computer.
> Please be aware that the security and confidentiality of electronic  
> data
> transmitted by e-mail is not completely guaranteed and that data may  
> be seen,
> copied, downloaded or changed by third persons during transmission.
> Atos Origin accepts no liability for the security and  
> confidentiality of
> data and documents sent by e-mail. Please make sure that all important
> messages will be confirmed in writing by means of a telefax or a  
> letter.
> * * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *


maven build of openEJB3 [Virus checked]

Posted by Wo...@atosorigin.com.
Hi guys,

I am pretty new to openEJB3, so please bare with me, if I am asking the
obvious.

Compilation of openEJB3 subproject openejb-j2ee breaks with the following
message:


[INFO]
------------------------------------------------------------------------
[INFO] Building OpenEJB :: Container :: Java EE
[INFO]    task-segment: [install]
[INFO]
------------------------------------------------------------------------
[INFO] [remote-resources:process {execution: default}]
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [dependency-report:report {execution: default}]
[INFO] [bundle:manifest {execution: bundle-manifest}]
-----------------------------------------------------
this realm =
app0.child-container[com.envoisolutions.sxc:sxc-jaxb-maven-plugin]
urls[0] = file:/D:/Dokumente und
Einstellungen/DE16297/.m2/repository/com/envoisolutions/sxc/sxc-jaxb-maven-plugin/0.7-SNAPSHOT/sxc-jaxb-maven-plugin-0.7-SNAPSHOT.jar
urls[1] = file:/D:/Dokumente und
Einstellungen/DE16297/.m2/repository/org/codehaus/woodstox/wstx-asl/3.2.0
/wstx-asl-3.2.0.jar
urls[2] = file:/D:/Dokumente und
Einstellungen/DE16297/.m2/repository/stax/stax-api/1.0.1/stax-api-1.0.1.jar
urls[3] = file:/D:/Dokumente und
Einstellungen/DE16297/.m2/repository/com/envoisolutions/sxc/sxc-core/0.7-SNAPSHOT/sxc-core-0.7-SNAPSHOT.jar
urls[4] = file:/C:/Programme/Java/jdk1.5.0_12/jre/../lib/tools.jar
urls[5] = file:/D:/Dokumente und
Einstellungen/DE16297/.m2/repository/com/envoisolutions/sxc/sxc-runtime/0.7-SNAPSHOT/sxc-runtime-0.7-SNAPSHOT.jar
urls[6] = file:/D:/Dokumente und
Einstellungen/DE16297/.m2/repository/com/sun/xml/bind/jaxb-xjc/2.1.2
/jaxb-xjc-2.1.2.jar
urls[7] = file:/D:/Dokumente und
Einstellungen/DE16297/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
urls[8] = file:/D:/Dokumente und
Einstellungen/DE16297/.m2/repository/com/sun/xml/bind/jaxb-impl/2.1.2
/jaxb-impl-2.1.2.jar
urls[9] = file:/D:/Dokumente und
Einstellungen/DE16297/.m2/repository/com/envoisolutions/sxc/sxc-jaxb/0.7-SNAPSHOT/sxc-jaxb-0.7-SNAPSHOT.jar
Number of imports: 6
import: org.codehaus.classworlds.Entry@4891bb28
import: org.codehaus.classworlds.Entry@f8e44ca4
import: org.codehaus.classworlds.Entry@c51bc9e7
import: org.codehaus.classworlds.Entry@bece5185
import: org.codehaus.classworlds.Entry@3fee8e37
import: org.codehaus.classworlds.Entry@3fee19d8


this realm = plexus.core
urls[0] = file:/C:/Programme/Apache Software Foundation/apache-maven-2.0.8
/lib/maven-2.0.8-uber.jar
Number of imports: 6
import: org.codehaus.classworlds.Entry@4891bb28
import: org.codehaus.classworlds.Entry@f8e44ca4
import: org.codehaus.classworlds.Entry@c51bc9e7
import: org.codehaus.classworlds.Entry@bece5185
import: org.codehaus.classworlds.Entry@3fee8e37
import: org.codehaus.classworlds.Entry@3fee19d8
-----------------------------------------------------
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Internal error in the plugin manager executing goal
'com.envoisolutions.sxc:sxc-jaxb-maven-plugin:0.7-SNAPSHOT:generate':
Unable to find the mojo
'com.envoisolutions.sxc:sxc-jaxb-maven-plugin:0.7-SNAPSHOT:generate' in the
plugin 'com.envoisolutions.sxc:sxc-jaxb-maven-plugin'
javax/xml/bind/JAXBException
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in
the plugin manager executing goal
'com.envoisolutions.sxc:sxc-jaxb-maven-plugin:0.7-SNAPSHOT:generate':
Unable to find the mojo
'com.envoisolutions.sxc:sxc-jaxb-maven-plugin:0.7-SNAPSHOT:generate' in the
plugin 'com.envoisolutions.sxc:sxc-jaxb-maven-plugin'
      at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:543)
      at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
      at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
      at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
      at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
      at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
      at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
      at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
      at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.PluginManagerException: Unable to find
the mojo
'com.envoisolutions.sxc:sxc-jaxb-maven-plugin:0.7-SNAPSHOT:generate' in the
plugin 'com.envoisolutions.sxc:sxc-jaxb-maven-plugin'
      at
org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:575)
      at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:425)
      at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
      ... 16 more
Caused by:
org.codehaus.plexus.component.repository.exception.ComponentLookupException:
 Unable to lookup component
'org.apache.maven.plugin.Mojocom.envoisolutions.sxc:sxc-jaxb-maven-plugin:0.7-SNAPSHOT:generate',
 it could not be created
      at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:335)
      at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:440)
      at
org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:566)
      ... 18 more
Caused by:
org.codehaus.plexus.component.factory.ComponentInstantiationException:
Could not instanciate component: role: 'null', implementation:
'com.envoisolutions.sxc.jaxb.maven.SxcJaxbPlugin'
      at
org.codehaus.plexus.component.factory.java.JavaComponentFactory.makeException(JavaComponentFactory.java:77)
      at
org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(JavaComponentFactory.java:62)
      at
org.codehaus.plexus.DefaultPlexusContainer.createComponentInstance(DefaultPlexusContainer.java:1464)
      at
org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:93)
      at
org.codehaus.plexus.component.manager.PerLookupComponentManager.getComponent(PerLookupComponentManager.java:48)
      at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331)
      ... 20 more
Caused by: java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
      at java.lang.Class.getDeclaredConstructors0(Native Method)
      at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
      at java.lang.Class.getConstructor0(Class.java:2671)
      at java.lang.Class.newInstance0(Class.java:321)
      at java.lang.Class.newInstance(Class.java:303)
      at
org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(JavaComponentFactory.java:44)
      ... 24 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1 minute 2 seconds
[INFO] Finished at: Thu Jun 05 17:21:38 CEST 2008
[INFO] Final Memory: 26M/47M
[INFO] -----------

any help appreciated !!!!!!!!!!

mit freundlichen Grüßen/best regards

Wolfgang Schrecker

"Der Inhalt eines Begriffs nimmt ab, wenn sein Umfang zunimmt; wird dieser
allumfassend, so muß der Inhalt ganz verloren gehen."
from G. Frege: Die Grundlagen der Arithmetik S. 40



 --
--------------------------------------------------

Atos Worldline Processing GmbH
Hahnstrasse 25
60528 Frankfurt/Main
Germany
Phone: +49 69/6657-1176
mailto:Wolfgang.Schrecker@atosorigin.com
http://www.atosworldline.com

Geschäftsführer: Erik Munk Koefoed
Aufsichtsratsvorsitzender: Didier Dhennin
Sitz der Gesellschaft: Frankfurt/Main
Handelsregister: Frankfurt/Main HRB 40 417
 
--------------------------------------------------

Atos Worldline Processing GmbH
Hahnstraße 25
60528 Frankfurt/Main
Germany
Phone: +49 69/6657-1176
Fax :
mailto: Wolfgang.Schrecker@atosorigin.com
http://www.atosworldline.com

Geschäftsführer: Erik Munk Koefoed
Aufsichtsratsvorsitzender: Didier Dhennin
Sitz der Gesellschaft: Frankfurt/Main
Handelsregister: Frankfurt/Main HRB 40 417


* * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *
This e-mail is destined for the above mentioned recipient. In case you
received this e-mail by accident, we would appreciate it if you could
contact the sender and delete all copies stored on your computer.
Please be aware that the security and confidentiality of electronic data
transmitted by e-mail is not completely guaranteed and that data may be seen,
copied, downloaded or changed by third persons during transmission.
Atos Origin accepts no liability for the security and confidentiality of
data and documents sent by e-mail. Please make sure that all important
messages will be confirmed in writing by means of a telefax or a letter.
* * * * * * * * L E G A L    D I S C L A I M E R * * * * * * * *