You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Schludi <bj...@gmx.de> on 2007/04/18 10:30:46 UTC

Hello, I have the following problem since 2 weeks, hope someone can help me, i've tried to ask in much other forums before:

Hello, I have the following problem since 2 weeks, hope someone can help me,
i've tried to ask in much other forums before:
I am new to maven and have to refactor an old project for JBossWS, which was
deployed on Tomcat before. The maven-script (or ejbdoclet) currently don't
generate the *Endpoint-Classes. 

I get the following error:


Generating EJB deployment descriptor (ejb-jar.xml).
[INFO] Executed tasks
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Compiling 3 source files to
C:\dev\helloMaven\FirstEJB-ejb\target\classe

[INFO] [antrun:run {execution: antTask}]
[INFO] Executing tasks
     [echo] ********** Running jboss ws **************
log4j:WARN No appenders could be found for logger
(org.jboss.ws.tools.WSTools).
log4j:WARN Please initialize the log4j system properly.
org.jboss.ws.WSException: Endpoint org.bbmag.test.StatlessEJBEndpoint ca
not be loaded
        at
org.jboss.ws.tools.helpers.ToolsHelper.handleJavaToWSDLGeneration(To
lsHelper.java:113)
        at org.jboss.ws.tools.WSTools.process(WSTools.java:132)
        at org.jboss.ws.tools.WSTools.generate(WSTools.java:120)
        at org.jboss.ws.tools.ant.wstools.execute(wstools.java:103)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at
org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(Abstract
ntMojo.java:108)
        at
org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:83

        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlug
nManager.java:420)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Def
ultLifecycleExecutor.java:539)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithL
fecycle(DefaultLifecycleExecutor.java:480)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defa
ltLifecycleExecutor.java:459)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHa
dleFailures(DefaultLifecycleExecutor.java:311)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegme
ts(DefaultLifecycleExecutor.java:278)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultL
fecycleExecutor.java:143)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:330)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl
java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        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]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error executing ant tasks

Embedded error: Error running jbossws:
Endpoint org.bbmag.test.StatlessEJBEndpoint cannot be loaded
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1 minute 7 seconds
[INFO] Finished at: Wed Apr 18 09:44:02 CEST 2007
[INFO] Final Memory: 8M/21M
[INFO]
------------------------------------------------------------------------


Here the Maven Script for the EJB, which creates an ant-task to generate:


<project>
	<modelVersion>4.0.0</modelVersion>
	<parent>
		<groupId>org.bbmag.test</groupId>
		<artifactId>FirstEJB</artifactId>
		<version>0.1</version>
	</parent> 
	<artifactId>FirstEJB-ejb</artifactId>
	<packaging>ejb</packaging>
	<name>FirstEJBejb</name>
	<description>Eine EJB</description>
	<dependencies>
		<dependency>
			<groupId>org.apache.geronimo.specs</groupId>
			<artifactId>geronimo-j2ee_1.4_spec</artifactId>
			<version>1.0</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>commons-logging</groupId>
			<artifactId>commons-logging</artifactId>
			<version>1.0.3</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>axis</groupId>
			<artifactId>axis</artifactId>
			<version>1.2</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>axis</groupId>
			<artifactId>axis-jaxrpc</artifactId>
			<version>1.2</version>
			<scope>provided</scope>
		</dependency>	
		<dependency>
			<groupId>log4j</groupId>
			<artifactId>log4j</artifactId>
			<version>1.2.13</version>
			<scope>provided</scope>
		</dependency>		
<dependency>
    <groupId>jboss</groupId>
    <artifactId>jboss-client</artifactId>
    <version>4.0.2</version>
</dependency> 
<dependency>
    <groupId>jboss</groupId>
    <artifactId>jboss-common</artifactId>
    <version>4.0.2</version>
</dependency> 
<dependency>
    <groupId>xdoclet</groupId>
    <artifactId>xdoclet-wsee-module</artifactId>
    <version>1.2.3</version>
</dependency> 	
	</dependencies>
	<build>
		<testSourceDirectory>src/test</testSourceDirectory>
		<plugins>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>xdoclet-maven-plugin</artifactId>
				<executions>
					<execution>
						<id>ejb</id>
						<phase>generate-sources</phase>
						<goals>
							<goal>xdoclet</goal>
						</goals>
						<configuration>
							<tasks>
								<ejbdoclet
									verbose="true"
									force="true"
									ejbSpec="2.1"
									destDir="${project.build.directory}/generated-sources/xdoclet">
									<fileset dir="${project.build.sourceDirectory}">
										<include name="**/*Bean.java"></include>
										<include name="**/*MDB.java"></include>
									</fileset>
									<homeinterface />
									<remoteinterface />
									<localhomeinterface />
									<localinterface />
									<service-endpoint/>
									<utilobject localProxies="true"/>
									<deploymentdescriptor
destDir="${project.build.outputDirectory}/META-INF"/>
								</ejbdoclet>
							</tasks>
						</configuration>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-ejb-plugin</artifactId>
				<configuration>
					<generateClient>true</generateClient>
					<clientExcludes>
						<clientExclude>
							**/ejb/*Bean.class
						</clientExclude>
					</clientExcludes>
				</configuration>
			</plugin>
			<plugin>
			<artifactId>maven-antrun-plugin</artifactId>
			<executions>
				<execution>
				<id>antTask</id>
				<phase>process-classes</phase>
				<goals>
					<goal>run</goal>
				</goals>
				<configuration>
					<tasks>
<!-- Define a taskdef for the wstools ant task
<taskdef name="wstools" classname="org.jboss.ws.tools.ant.wstools">
<classpath refid="library.classpath"/>
<classpath refid="test.client.classpath"/>
<classpath path="${build.test.classes.dir}"/>
</taskdef>--> 
						<taskdef name="wstools" classname="org.jboss.ws.tools.ant.wstools">
							<classpath refid="maven.dependency.classpath"/>
							<classpath>
								<fileset dir="C:/servers/client/">
									<include name="activation.jar"/>
									<include name="javassist.jar"/>
									<include name="jbossall-client.jar"/>
									<include name="jbossretro-rt.jar"/>
									<include name="jboss-backport-concurrent.jar"/>
									<include name="jbossws-client.jar"/>
									<include name="jboss-xml-binding.jar"/>
									<include name="jbossws14-client.jar"/>
									<include name="log4j.jar"/>
									<include name="mail.jar"/>
								</fileset>
								<fileset dir="C:/servers/lib/endorsed">
									<include name="*.jar"/>
								</fileset>
							</classpath>
						</taskdef>
						<echo message="********** Running jboss ws **************"/>
						<mkdir dir="ws" />
						<wstools dest="C:/dev/helloMaven/FirstEJB-ejb/ws" 
						
config="C:/dev/helloMaven/FirstEJB-ejb/resources/wstools-mybean-config.xml"/>
					</tasks>
				</configuration>
				</execution>
			</executions>
			</plugin>
		</plugins>
	</build>	
</project>


And the config-Bean:

<configuration xmlns="http://www.jboss.org/jbossws-tools">
    <java-wsdl>
            <service name="FirstEJBService" style="rpc"
endpoint="org.bbmag.test.StatlessEJBEndpoint"/>
            <namespaces target-namespace="http://www.bbraun.com/webservices"
type-namespace="http://www.bbraun.com/webservices/types"/>
            <mapping file="jaxrpc-mapping.xml"/>
            <webservices ejb-link="org.bbmag.test.StatlessEjbBean"
append="true"/>
    </java-wsdl>
</configuration>
	

-- 
View this message in context: http://www.nabble.com/Hello%2C-I-have-the-following-problem-since-2-weeks%2C-hope-someone-can-help-me%2C-i%27ve-tried-to-ask-in-much-other-forums-before%3A-tf3599590s177.html#a10054385
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Hello, I have the following problem since 2 weeks, hope someone can help me, i've tried to ask in much other forums before:

Posted by Wayne Fay <wa...@gmail.com>.
Seems like a problem for the xdoclet users list. Maven looks like its
doing its job -- but xdoclet does not seem to be generating the
service endpoints you're expecting.

Wayne

On 4/18/07, Schludi <bj...@gmx.de> wrote:
>
> Hello, I have the following problem since 2 weeks, hope someone can help me,
> i've tried to ask in much other forums before:
> I am new to maven and have to refactor an old project for JBossWS, which was
> deployed on Tomcat before. The maven-script (or ejbdoclet) currently don't
> generate the *Endpoint-Classes.
>
> I get the following error:
>
>
> Generating EJB deployment descriptor (ejb-jar.xml).
> [INFO] Executed tasks
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile]
> [INFO] Compiling 3 source files to
> C:\dev\helloMaven\FirstEJB-ejb\target\classe
>
> [INFO] [antrun:run {execution: antTask}]
> [INFO] Executing tasks
>      [echo] ********** Running jboss ws **************
> log4j:WARN No appenders could be found for logger
> (org.jboss.ws.tools.WSTools).
> log4j:WARN Please initialize the log4j system properly.
> org.jboss.ws.WSException: Endpoint org.bbmag.test.StatlessEJBEndpoint ca
> not be loaded
>         at
> org.jboss.ws.tools.helpers.ToolsHelper.handleJavaToWSDLGeneration(To
> lsHelper.java:113)
>         at org.jboss.ws.tools.WSTools.process(WSTools.java:132)
>         at org.jboss.ws.tools.WSTools.generate(WSTools.java:120)
>         at org.jboss.ws.tools.ant.wstools.execute(wstools.java:103)
>         at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>         at org.apache.tools.ant.Task.perform(Task.java:364)
>         at org.apache.tools.ant.Target.execute(Target.java:341)
>         at
> org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(Abstract
> ntMojo.java:108)
>         at
> org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:83
>
>         at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlug
> nManager.java:420)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Def
> ultLifecycleExecutor.java:539)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithL
> fecycle(DefaultLifecycleExecutor.java:480)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defa
> ltLifecycleExecutor.java:459)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHa
> dleFailures(DefaultLifecycleExecutor.java:311)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegme
> ts(DefaultLifecycleExecutor.java:278)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultL
> fecycleExecutor.java:143)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:330)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl
> java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
> sorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         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]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Error executing ant tasks
>
> Embedded error: Error running jbossws:
> Endpoint org.bbmag.test.StatlessEJBEndpoint cannot be loaded
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 1 minute 7 seconds
> [INFO] Finished at: Wed Apr 18 09:44:02 CEST 2007
> [INFO] Final Memory: 8M/21M
> [INFO]
> ------------------------------------------------------------------------
>
>
> Here the Maven Script for the EJB, which creates an ant-task to generate:
>
>
> <project>
>         <modelVersion>4.0.0</modelVersion>
>         <parent>
>                 <groupId>org.bbmag.test</groupId>
>                 <artifactId>FirstEJB</artifactId>
>                 <version>0.1</version>
>         </parent>
>         <artifactId>FirstEJB-ejb</artifactId>
>         <packaging>ejb</packaging>
>         <name>FirstEJBejb</name>
>         <description>Eine EJB</description>
>         <dependencies>
>                 <dependency>
>                         <groupId>org.apache.geronimo.specs</groupId>
>                         <artifactId>geronimo-j2ee_1.4_spec</artifactId>
>                         <version>1.0</version>
>                         <scope>provided</scope>
>                 </dependency>
>                 <dependency>
>                         <groupId>commons-logging</groupId>
>                         <artifactId>commons-logging</artifactId>
>                         <version>1.0.3</version>
>                         <scope>provided</scope>
>                 </dependency>
>                 <dependency>
>                         <groupId>axis</groupId>
>                         <artifactId>axis</artifactId>
>                         <version>1.2</version>
>                         <scope>provided</scope>
>                 </dependency>
>                 <dependency>
>                         <groupId>axis</groupId>
>                         <artifactId>axis-jaxrpc</artifactId>
>                         <version>1.2</version>
>                         <scope>provided</scope>
>                 </dependency>
>                 <dependency>
>                         <groupId>log4j</groupId>
>                         <artifactId>log4j</artifactId>
>                         <version>1.2.13</version>
>                         <scope>provided</scope>
>                 </dependency>
> <dependency>
>     <groupId>jboss</groupId>
>     <artifactId>jboss-client</artifactId>
>     <version>4.0.2</version>
> </dependency>
> <dependency>
>     <groupId>jboss</groupId>
>     <artifactId>jboss-common</artifactId>
>     <version>4.0.2</version>
> </dependency>
> <dependency>
>     <groupId>xdoclet</groupId>
>     <artifactId>xdoclet-wsee-module</artifactId>
>     <version>1.2.3</version>
> </dependency>
>         </dependencies>
>         <build>
>                 <testSourceDirectory>src/test</testSourceDirectory>
>                 <plugins>
>                         <plugin>
>                                 <groupId>org.codehaus.mojo</groupId>
>                                 <artifactId>xdoclet-maven-plugin</artifactId>
>                                 <executions>
>                                         <execution>
>                                                 <id>ejb</id>
>                                                 <phase>generate-sources</phase>
>                                                 <goals>
>                                                         <goal>xdoclet</goal>
>                                                 </goals>
>                                                 <configuration>
>                                                         <tasks>
>                                                                 <ejbdoclet
>                                                                         verbose="true"
>                                                                         force="true"
>                                                                         ejbSpec="2.1"
>                                                                         destDir="${project.build.directory}/generated-sources/xdoclet">
>                                                                         <fileset dir="${project.build.sourceDirectory}">
>                                                                                 <include name="**/*Bean.java"></include>
>                                                                                 <include name="**/*MDB.java"></include>
>                                                                         </fileset>
>                                                                         <homeinterface />
>                                                                         <remoteinterface />
>                                                                         <localhomeinterface />
>                                                                         <localinterface />
>                                                                         <service-endpoint/>
>                                                                         <utilobject localProxies="true"/>
>                                                                         <deploymentdescriptor
> destDir="${project.build.outputDirectory}/META-INF"/>
>                                                                 </ejbdoclet>
>                                                         </tasks>
>                                                 </configuration>
>                                         </execution>
>                                 </executions>
>                         </plugin>
>                         <plugin>
>                                 <groupId>org.apache.maven.plugins</groupId>
>                                 <artifactId>maven-ejb-plugin</artifactId>
>                                 <configuration>
>                                         <generateClient>true</generateClient>
>                                         <clientExcludes>
>                                                 <clientExclude>
>                                                         **/ejb/*Bean.class
>                                                 </clientExclude>
>                                         </clientExcludes>
>                                 </configuration>
>                         </plugin>
>                         <plugin>
>                         <artifactId>maven-antrun-plugin</artifactId>
>                         <executions>
>                                 <execution>
>                                 <id>antTask</id>
>                                 <phase>process-classes</phase>
>                                 <goals>
>                                         <goal>run</goal>
>                                 </goals>
>                                 <configuration>
>                                         <tasks>
> <!-- Define a taskdef for the wstools ant task
> <taskdef name="wstools" classname="org.jboss.ws.tools.ant.wstools">
> <classpath refid="library.classpath"/>
> <classpath refid="test.client.classpath"/>
> <classpath path="${build.test.classes.dir}"/>
> </taskdef>-->
>                                                 <taskdef name="wstools" classname="org.jboss.ws.tools.ant.wstools">
>                                                         <classpath refid="maven.dependency.classpath"/>
>                                                         <classpath>
>                                                                 <fileset dir="C:/servers/client/">
>                                                                         <include name="activation.jar"/>
>                                                                         <include name="javassist.jar"/>
>                                                                         <include name="jbossall-client.jar"/>
>                                                                         <include name="jbossretro-rt.jar"/>
>                                                                         <include name="jboss-backport-concurrent.jar"/>
>                                                                         <include name="jbossws-client.jar"/>
>                                                                         <include name="jboss-xml-binding.jar"/>
>                                                                         <include name="jbossws14-client.jar"/>
>                                                                         <include name="log4j.jar"/>
>                                                                         <include name="mail.jar"/>
>                                                                 </fileset>
>                                                                 <fileset dir="C:/servers/lib/endorsed">
>                                                                         <include name="*.jar"/>
>                                                                 </fileset>
>                                                         </classpath>
>                                                 </taskdef>
>                                                 <echo message="********** Running jboss ws **************"/>
>                                                 <mkdir dir="ws" />
>                                                 <wstools dest="C:/dev/helloMaven/FirstEJB-ejb/ws"
>
> config="C:/dev/helloMaven/FirstEJB-ejb/resources/wstools-mybean-config.xml"/>
>                                         </tasks>
>                                 </configuration>
>                                 </execution>
>                         </executions>
>                         </plugin>
>                 </plugins>
>         </build>
> </project>
>
>
> And the config-Bean:
>
> <configuration xmlns="http://www.jboss.org/jbossws-tools">
>     <java-wsdl>
>             <service name="FirstEJBService" style="rpc"
> endpoint="org.bbmag.test.StatlessEJBEndpoint"/>
>             <namespaces target-namespace="http://www.bbraun.com/webservices"
> type-namespace="http://www.bbraun.com/webservices/types"/>
>             <mapping file="jaxrpc-mapping.xml"/>
>             <webservices ejb-link="org.bbmag.test.StatlessEjbBean"
> append="true"/>
>     </java-wsdl>
> </configuration>
>
>
> --
> View this message in context: http://www.nabble.com/Hello%2C-I-have-the-following-problem-since-2-weeks%2C-hope-someone-can-help-me%2C-i%27ve-tried-to-ask-in-much-other-forums-before%3A-tf3599590s177.html#a10054385
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven2 + XDoclet + JBoss (JBossWS)

Posted by Marco Mistroni <mm...@gmail.com>.
HI,
  in the maven wiki page i have posted an example of using mvn2, xdoclet, &
jbossws
it's here

http://docs.codehaus.org/display/MAVENUSER/Examples

pls have a look, it might be that you have specified an incorrect name in
your xdoclet tags

hth
 marco




On 4/18/07, Schludi <bj...@gmx.de> wrote:
>
>
> Hello, I have the following problem since 2 weeks, hope someone can help
> me,
> i've tried to ask in much other forums before:
> I am new to maven and have to refactor an old project for JBossWS, which
> was
> deployed on Tomcat before. The maven-script (or ejbdoclet) currently don't
> generate the *Endpoint-Classes.
>
> I get the following error:
>
>
> Generating EJB deployment descriptor (ejb-jar.xml).
> [INFO] Executed tasks
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile]
> [INFO] Compiling 3 source files to
> C:\dev\helloMaven\FirstEJB-ejb\target\classe
>
> [INFO] [antrun:run {execution: antTask}]
> [INFO] Executing tasks
>      [echo] ********** Running jboss ws **************
> log4j:WARN No appenders could be found for logger
> (org.jboss.ws.tools.WSTools).
> log4j:WARN Please initialize the log4j system properly.
> org.jboss.ws.WSException: Endpoint org.bbmag.test.StatlessEJBEndpoint ca
> not be loaded
>         at
> org.jboss.ws.tools.helpers.ToolsHelper.handleJavaToWSDLGeneration(To
> lsHelper.java:113)
>         at org.jboss.ws.tools.WSTools.process(WSTools.java:132)
>         at org.jboss.ws.tools.WSTools.generate(WSTools.java:120)
>         at org.jboss.ws.tools.ant.wstools.execute(wstools.java:103)
>         at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>         at org.apache.tools.ant.Task.perform(Task.java:364)
>         at org.apache.tools.ant.Target.execute(Target.java:341)
>         at
> org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(Abstract
> ntMojo.java:108)
>         at
> org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:83
>
>         at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlug
> nManager.java:420)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Def
> ultLifecycleExecutor.java:539)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithL
> fecycle(DefaultLifecycleExecutor.java:480)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defa
> ltLifecycleExecutor.java:459)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHa
> dleFailures(DefaultLifecycleExecutor.java:311)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegme
> ts(DefaultLifecycleExecutor.java:278)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultL
> fecycleExecutor.java:143)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:330)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl
> java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
> sorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         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]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Error executing ant tasks
>
> Embedded error: Error running jbossws:
> Endpoint org.bbmag.test.StatlessEJBEndpoint cannot be loaded
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 1 minute 7 seconds
> [INFO] Finished at: Wed Apr 18 09:44:02 CEST 2007
> [INFO] Final Memory: 8M/21M
> [INFO]
> ------------------------------------------------------------------------
>
>
> Here the Maven Script for the EJB, which creates an ant-task to generate:
>
>
> <project>
>         <modelVersion>4.0.0</modelVersion>
>         <parent>
>                 <groupId>org.bbmag.test</groupId>
>                 <artifactId>FirstEJB</artifactId>
>                 <version>0.1</version>
>         </parent>
>         <artifactId>FirstEJB-ejb</artifactId>
>         <packaging>ejb</packaging>
>         <name>FirstEJBejb</name>
>         <description>Eine EJB</description>
>         <dependencies>
>                 <dependency>
>                         <groupId>org.apache.geronimo.specs</groupId>
>                         <artifactId>geronimo-j2ee_1.4_spec</artifactId>
>                         <version>1.0</version>
>                         <scope>provided</scope>
>                 </dependency>
>                 <dependency>
>                         <groupId>commons-logging</groupId>
>                         <artifactId>commons-logging</artifactId>
>                         <version>1.0.3</version>
>                         <scope>provided</scope>
>                 </dependency>
>                 <dependency>
>                         <groupId>axis</groupId>
>                         <artifactId>axis</artifactId>
>                         <version>1.2</version>
>                         <scope>provided</scope>
>                 </dependency>
>                 <dependency>
>                         <groupId>axis</groupId>
>                         <artifactId>axis-jaxrpc</artifactId>
>                         <version>1.2</version>
>                         <scope>provided</scope>
>                 </dependency>
>                 <dependency>
>                         <groupId>log4j</groupId>
>                         <artifactId>log4j</artifactId>
>                         <version>1.2.13</version>
>                         <scope>provided</scope>
>                 </dependency>
> <dependency>
>     <groupId>jboss</groupId>
>     <artifactId>jboss-client</artifactId>
>     <version>4.0.2</version>
> </dependency>
> <dependency>
>     <groupId>jboss</groupId>
>     <artifactId>jboss-common</artifactId>
>     <version>4.0.2</version>
> </dependency>
> <dependency>
>     <groupId>xdoclet</groupId>
>     <artifactId>xdoclet-wsee-module</artifactId>
>     <version>1.2.3</version>
> </dependency>
>         </dependencies>
>         <build>
>                 <testSourceDirectory>src/test</testSourceDirectory>
>                 <plugins>
>                         <plugin>
>                                 <groupId>org.codehaus.mojo</groupId>
>
>                                 <artifactId>xdoclet-maven-plugin</artifactId>
>                                 <executions>
>                                         <execution>
>                                                 <id>ejb</id>
>
>                                                 <phase>generate-sources</phase>
>                                                 <goals>
>
>                                                         <goal>xdoclet</goal>
>                                                 </goals>
>                                                 <configuration>
>                                                         <tasks>
>                                                                 <ejbdoclet
>
>                                                                         verbose="true"
>
>                                                                         force="true"
>
>                                                                         ejbSpec="
> 2.1"
>
>                                                                         destDir="${
> project.build.directory}/generated-sources/xdoclet">
>                                                                         <fileset
> dir="${project.build.sourceDirectory}">
>                                                                                 <include
> name="**/*Bean.java"></include>
>                                                                                 <include
> name="**/*MDB.java"></include>
>
>                                                                         </fileset>
>                                                                         <homeinterface
> />
>                                                                         <remoteinterface
> />
>                                                                         <localhomeinterface
> />
>                                                                         <localinterface
> />
>
>                                                                         <service-endpoint/>
>                                                                         <utilobject
> localProxies="true"/>
>
>                                                                         <deploymentdescriptor
> destDir="${project.build.outputDirectory}/META-INF"/>
>
>                                                                 </ejbdoclet>
>                                                         </tasks>
>                                                 </configuration>
>                                         </execution>
>                                 </executions>
>                         </plugin>
>                         <plugin>
>                                 <groupId>org.apache.maven.plugins
> </groupId>
>                                 <artifactId>maven-ejb-plugin</artifactId>
>                                 <configuration>
>
>                                         <generateClient>true</generateClient>
>                                         <clientExcludes>
>                                                 <clientExclude>
>                                                         **/ejb/*Bean.class
>                                                 </clientExclude>
>                                         </clientExcludes>
>                                 </configuration>
>                         </plugin>
>                         <plugin>
>                         <artifactId>maven-antrun-plugin</artifactId>
>                         <executions>
>                                 <execution>
>                                 <id>antTask</id>
>                                 <phase>process-classes</phase>
>                                 <goals>
>                                         <goal>run</goal>
>                                 </goals>
>                                 <configuration>
>                                         <tasks>
> <!-- Define a taskdef for the wstools ant task
> <taskdef name="wstools" classname="org.jboss.ws.tools.ant.wstools">
> <classpath refid="library.classpath"/>
> <classpath refid="test.client.classpath"/>
> <classpath path="${build.test.classes.dir}"/>
> </taskdef>-->
>                                                 <taskdef name="wstools"
> classname="org.jboss.ws.tools.ant.wstools">
>                                                         <classpath refid="
> maven.dependency.classpath"/>
>                                                         <classpath>
>                                                                 <fileset
> dir="C:/servers/client/">
>                                                                         <include
> name="activation.jar"/>
>                                                                         <include
> name="javassist.jar"/>
>                                                                         <include
> name="jbossall-client.jar"/>
>                                                                         <include
> name="jbossretro-rt.jar"/>
>                                                                         <include
> name="jboss-backport-concurrent.jar"/>
>                                                                         <include
> name="jbossws-client.jar"/>
>                                                                         <include
> name="jboss-xml-binding.jar"/>
>                                                                         <include
> name="jbossws14-client.jar"/>
>                                                                         <include
> name="log4j.jar"/>
>                                                                         <include
> name="mail.jar"/>
>                                                                 </fileset>
>                                                                 <fileset
> dir="C:/servers/lib/endorsed">
>                                                                         <include
> name="*.jar"/>
>                                                                 </fileset>
>                                                         </classpath>
>                                                 </taskdef>
>                                                 <echo message="**********
> Running jboss ws **************"/>
>                                                 <mkdir dir="ws" />
>                                                 <wstools
> dest="C:/dev/helloMaven/FirstEJB-ejb/ws"
>
> config="C:/dev/helloMaven/FirstEJB-ejb/resources/wstools-mybean-config.xml
> "/>
>                                         </tasks>
>                                 </configuration>
>                                 </execution>
>                         </executions>
>                         </plugin>
>                 </plugins>
>         </build>
> </project>
>
>
> And the config-Bean:
>
> <configuration xmlns="http://www.jboss.org/jbossws-tools">
>     <java-wsdl>
>             <service name="FirstEJBService" style="rpc"
> endpoint="org.bbmag.test.StatlessEJBEndpoint"/>
>             <namespaces target-namespace="
> http://www.bbraun.com/webservices"
> type-namespace="http://www.bbraun.com/webservices/types"/>
>             <mapping file="jaxrpc-mapping.xml"/>
>             <webservices ejb-link="org.bbmag.test.StatlessEjbBean"
> append="true"/>
>     </java-wsdl>
> </configuration>
>
>
> --
> View this message in context:
> http://www.nabble.com/Maven2-%2B-XDoclet-%2B-JBoss-%28JBossWS%29-tf3599590s177.html#a10054385
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

RE: Hello, I have the following problem since 2 weeks, hope someone can help me, i've tried to ask in much other forums before:

Posted by Schludi <bj...@gmx.de>.
Hello Jörg, thanks foir your reply, can you give me an example how to do
this? Best regards
-- 
View this message in context: http://www.nabble.com/Maven2-%2B-XDoclet-%2B-JBoss-%28JBossWS%29-tf3599590s177.html#a10072616
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: Hello, I have the following problem since 2 weeks, hope someone can help me, i've tried to ask in much other forums before:

Posted by Schludi <bj...@gmx.de>.
Hi! I have tried but its still the same :/. Do you have any more idea. Thx
for your reply
-- 
View this message in context: http://www.nabble.com/Maven2-%2B-XDoclet-%2B-JBoss-%28JBossWS%29-tf3599590s177.html#a10073372
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org