Thanks Wayne...

I made the changes in my pom.xml, now it look like this:
....
                               <plugin>
                                        
<artifactId>maven-antrun-plugin</artifactId>
                                        <version>1.1</version>
                                        <configuration>
                                                <tasks>
                                                        <taskdef 
name="servicegen"
                                                        
classname="weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask" />

                                                        <echo 
message="${CMP_PROXY_EJB_PATH}/${ear.path}, ${java.class.path},
${ejbc-classpath}"/>
                                              <servicegen
                                                 
destEar="${CMP_PROXY_EJB_PATH}/${ear.path}"
                                                 contextURI="/cmpws">
                                                <classpath>
                                                        <pathelement 
path="${java.class.path}" />
                                                        <pathelement 
path="${ejbc-classpath}" />
                                                        <pathelement path="." />
                                                </classpath>
                                                <service 
                                                    
ejbJar="${CMP_PROXY_EJB_PATH}/${module}Bean.jar" 
                                                    
serviceName="cmpWebServiceProxy"
                                                    
targetNamespace="http://auohsalti10.posadas.com:15010/CMP";
                                                    serviceURI="/cmp_interface"
                                                    
includeEJBs="cmpWebServiceProxy">
                                                </service>
                                              </servicegen>
                                                </tasks>
                                        </configuration>
                                        <executions>
                                                <execution>
                                                        <phase>install</phase>
                                                        <goals>
                                                                <goal>run</goal>
                                                        </goals>
                                                </execution>
                                        </executions>
                                        <dependencies>
                                                <dependency>
                                                        
<groupId>weblogic</groupId>
                                                        
<artifactId>webservices</artifactId>
                                                        <version>8.1</version>
                                                </dependency>
                                                <dependency>
                                                        
<groupId>weblogic</groupId>
                                                        
<artifactId>weblogic</artifactId>
                                                        <version>8.1</version>
                                                </dependency>
                                        </dependencies>
                                </plugin>
....

And I got this error:

[INFO] Executing tasks
     [echo]
/develop/Kronos/Maeven/src/contact/implementacion/WebServices/CMPWebServiceProxy/dist/CMPWS.ear,
/develop/Kronos/Maeven/opt/apache-maven-2.0.10/boot/classworlds-1.1.jar,
/develop/Kronos/opt/bea81/weblogic81/server/lib/weblogic.jar:/develop/Kronos/opt/bea81/jdk142_04/lib/tools.jar:/develop/Kronos/opt/bea81/weblogic81/server/lib/webservices.jar:/develop/Kronos/opt/bea81/weblogic81/server/lib/webserviceclient+ssl_pj.jar:/develop/Kronos/Maeven/maevenserver/config/maevendomain/lib/jasperreports-0.5.2.jar:/develop/Kronos/Maeven/src/hsreports/HSReportEjb.jar:/develop/Kronos/opt/jolt/log4j-1.2.5.jar:/develop/Kronos/opt/compoze/lib/misc/xerces.jar
java.lang.NullPointerException
        at org.apache.tools.ant.Task.log(Task.java:346)
        at
weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.setupClasspath(ServiceGenTask.java:640)
        at
weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:171)
        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:324)
        at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        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:324)
        at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at
org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:118)
        at
org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:98)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:453)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:513)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:483)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:331)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:292)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:301)
        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: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] An Ant BuildException has occured: java.lang.NullPointerException


I was googling but nobody answers the posts like mine.



Wayne Fay wrote:
> 
>> With the next configuration I've added some jars (classworlds-1.1.jar,
>> weblogic.jar, tools.jar, webservices.jar, webserviceclient+ssl_pj.jar,
>> jasperreports-0.5.2.jar, HSReportEjb.jar, log4j-1.2.5.jar) to maven /lib
>> folder. But caused the error below
> 
> Maven does not pay attention to jars which you add to Maven's /lib
> folder like this.
> 
> Instead, you must add all items that must be on the plugin's classpath
> by adding dependencies as you have already done for ant-jsch and jsch.
> 
> Wayne
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Problem-with-servicegen-tp24082088p24095299.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to