You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Mick Knutson <mi...@gmail.com> on 2007/06/07 22:45:03 UTC

[m2] Error running genInterface for JDeveloper with AntRun

Here is my declaration:

            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>exec-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <phase>generate-sources</phase>
                        <goals>
                            <goal>exec</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <executable>java</executable>
                    <arguments>
                        <argument>-jar
C:/jdevstudio1013/webservices/lib/wsa.jar -cp
C:/jdevstudio1013/webservices/lib -genInterface -output
${basedir}/target/classes -wsdl
${basedir}/src/main/webapp/WEB-INF/wsdl/BusinessService1.wsdl -packageName
org.delta.services</argument>
                        <!--<argument>-packageName org.delta.services
</argument>-->
                        <!-- automatically creates the classpath using all
project dependencies,
                             also adding the project build directory -->
                        <!--<classpath/>-->
                    </arguments>
                </configuration>
            </plugin>




And here is the error I keep getting:

[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Result of java "-jar C:/jdevstudio1013/webservices/lib/wsa.jar -cp
C:/jdevstudio1013/webservices/lib -genInterface -output
C:\viewstore\esp_lynx_dap
\esp\dap\poc\AOPTest\BusinessService/target/classes -wsdl
C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\BusinessService/src/main/webapp/WEB-INF/wsdl/Busine
ssService1.wsdl -packageName org.delta.services" execution is: '1'.
[INFO]
------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Result of java "-jar
C:/jdevstudio1013/webservices/lib/wsa.jar -cp
C:/jdevstudio1013/webservices/li
b -genInterface -output
C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\BusinessService/target/classes
-wsdl C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\Bu
sinessService/src/main/webapp/WEB-INF/wsdl/BusinessService1.wsdl
-packageName org.delta.services" execution is: '1'.
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:564)
        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: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(
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.MojoExecutionException: Result of java
"-jar C:/jdevstudio1013/webservices/lib/wsa.jar -cp
C:/jdevstudio1013/webservices
/lib -genInterface -output
C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\BusinessService/target/classes
-wsdl C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest
\BusinessService/src/main/webapp/WEB-INF/wsdl/BusinessService1.wsdl
-packageName org.delta.services" execution is: '1'.
        at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:208)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
DefaultPluginManager.java:420)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:539)
        ... 16 more



Help would be GREATLY appreciated!


-- 
---
Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/djmick_dot_com
http://www.myspace.com/sexybeotches
http://www.thumpradio.com
---

Re: Maven and Hibernate EntityManager

Posted by André Salvati <an...@buscape-inc.com>.
Someone doing unit tests with Maven 2 and plain Hibernate EntityManager?

Thanks.


André Salvati escreveu:
> Hi,
>
> I've tried to execute my unit tests with Maven an Maven 2.0.6 and 
> Hibernate EntityManager and got problems.
>
> I have two projects (project1 and project2). Project1 depends on 
> project2.
>
> It seems, for some reason, Maven doesn't find classes at 
> *target/classes*. So, EntityManager doesn't detect these classes.
>
> When I copy project1 and project2 classes to *target/test-classes* it 
> works fine.
>
> Am I doing something wrong?
>
> I get an *org.hibernate.MappingException: Unknown entity: 
> com.xpto.empresa.model.Empresa exception*
>
> EntityManager's log:
>
> 13:58:52,796 INFO Version:15 - Hibernate EntityManager 3.2.1.GA
> 13:58:52,828 INFO Version:15 - Hibernate Annotations 3.2.1.GA
> 13:58:52,843 INFO Environment:509 - Hibernate 3.2.3
> 13:58:52,859 INFO Environment:542 - hibernate.properties not found
> 13:58:52,859 INFO Environment:676 - Bytecode provider name : cglib
> 13:58:52,875 INFO Environment:593 - using JDK 1.4 java.sql.Timestamp 
> handling
> 13:58:53,015 DEBUG Ejb3Configuration:199 - Look up for persistence 
> unit: empire
> 13:58:53,093 DEBUG DTDEntityResolver:38 - trying to resolve system-id 
> [http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd]
> 13:58:53,093 DEBUG EJB3DTDEntityResolver:49 - recognized EJB3 ORM 
> namespace; attempting to resolve on classpath under org/hibernate/ejb
> 13:58:53,093 DEBUG EJB3DTDEntityResolver:58 - located 
> [http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd] in classpath
> 13:58:53,171 DEBUG Ejb3Configuration:544 - Detect class: true; detect 
> hbm: false
> *13:58:53,187 DEBUG JarVisitor:206 - Searching mapped entities in 
> jar/par: file:/C:/workspace/empire/EmpresaEJB/target/test-classes
> 13:58:53,187 DEBUG JarVisitor:246 - Filtering: com.xpto.EmpresaTest
> 13:58:53,234 DEBUG Ejb3Configuration:544 - Detect class: true; detect 
> hbm: false
> 13:58:53,234 DEBUG JarVisitor:206 - Searching mapped entities in 
> jar/par: file:Agenda-1.0-SNAPSHOT.jar
> 13:58:53,234 WARN ExplodedJarVisitor:38 - Exploded jar does not exists 
> (ignored): file:Agenda-1.0-SNAPSHOT.jar*
>
> Thanks for any help.
>
> ---------------------------------------------------------------------
> 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


Maven and Hibernate EntityManager

Posted by André Salvati <an...@buscape-inc.com>.
Hi,

I've tried to execute my unit tests with Maven an Maven 2.0.6 and 
Hibernate EntityManager and got problems.

I have two projects (project1 and project2). Project1 depends on project2.

It seems, for some reason, Maven doesn't find classes at 
*target/classes*. So, EntityManager doesn't detect these classes.

When I copy project1 and project2 classes to *target/test-classes* it 
works fine.

Am I doing something wrong?

I get an *org.hibernate.MappingException: Unknown entity: 
com.xpto.empresa.model.Empresa exception*

EntityManager's log:

13:58:52,796 INFO Version:15 - Hibernate EntityManager 3.2.1.GA
13:58:52,828 INFO Version:15 - Hibernate Annotations 3.2.1.GA
13:58:52,843 INFO Environment:509 - Hibernate 3.2.3
13:58:52,859 INFO Environment:542 - hibernate.properties not found
13:58:52,859 INFO Environment:676 - Bytecode provider name : cglib
13:58:52,875 INFO Environment:593 - using JDK 1.4 java.sql.Timestamp 
handling
13:58:53,015 DEBUG Ejb3Configuration:199 - Look up for persistence unit: 
empire
13:58:53,093 DEBUG DTDEntityResolver:38 - trying to resolve system-id 
[http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd]
13:58:53,093 DEBUG EJB3DTDEntityResolver:49 - recognized EJB3 ORM 
namespace; attempting to resolve on classpath under org/hibernate/ejb
13:58:53,093 DEBUG EJB3DTDEntityResolver:58 - located 
[http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd] in classpath
13:58:53,171 DEBUG Ejb3Configuration:544 - Detect class: true; detect 
hbm: false
*13:58:53,187 DEBUG JarVisitor:206 - Searching mapped entities in 
jar/par: file:/C:/workspace/empire/EmpresaEJB/target/test-classes
13:58:53,187 DEBUG JarVisitor:246 - Filtering: com.xpto.EmpresaTest
13:58:53,234 DEBUG Ejb3Configuration:544 - Detect class: true; detect 
hbm: false
13:58:53,234 DEBUG JarVisitor:206 - Searching mapped entities in 
jar/par: file:Agenda-1.0-SNAPSHOT.jar
13:58:53,234 WARN ExplodedJarVisitor:38 - Exploded jar does not exists 
(ignored): file:Agenda-1.0-SNAPSHOT.jar*

Thanks for any help.

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


Re: [m2] Error running genInterface for JDeveloper with AntRun

Posted by Mick Knutson <mi...@gmail.com>.
Ive gotten a bit further, but still need some help....

Here is what I have:

            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>exec-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <phase>generate-sources</phase>
                        <goals>
                            <goal>java</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <executable>java</executable>
                    <mainClass>oracle.j2ee.ws.tools.wsa.Main</mainClass>
                    <workingDirectory>${basedir}</workingDirectory>
                    <commandlineArgs>
                        -genInterface -output
${basedir}/target/gen-classes-wsdl
${basedir}/src/main/webapp/WEB-INF/wsdl/BusinessService1.wsdl -packageName
org.delta.services
                    </commandlineArgs>
                    <classpath/>
                </configuration>
            </plugin>


Now when I run this, I get the following errors (slashes (/) seem to be
removed from ${basedir}

[DEBUG] Setting accessibility to true in order to invoke main().
Error: Specified file/directory
C:viewstoreesp_lynx_dapespdappocAOPTestBusinessService/src/main/webapp/WEB-INF/wsdl/BusinessService1.wsdldoes
not exist.

Any ideas why?






On 6/8/07, Wayne Fay <wa...@gmail.com> wrote:
>
> From my reading of it, commandlineArgs is a single String, whereas
> arguments is a List of argument nodes. So delete all the
> </commandlineArgs><commandlineArgs> so its one big string, and try
> again.
>
> If it wasn't totally obvious, I'm just guessing here, I haven't had to
> do this myself (yet) for any projects.
>
> Wayne
>
> On 6/7/07, Mick Knutson <mi...@gmail.com> wrote:
> > Did not work:
> >
> >                     <arguments>
> >
> > <!--<argument>-classpath=C:/jdevstudio1013/webservices/lib</argument>-->
> >                         <commandlineArgs>-jar
> > C:/jdevstudio1013/webservices/lib/wsa.jar</commandlineArgs>
> >                         <commandlineArgs>-genInterface</commandlineArgs>
> >                         <commandlineArgs>-output
> > ${basedir}\target\classes</commandlineArgs>
> >                         <commandlineArgs>-wsdl
> >
> ${basedir}\src\main\webapp\WEB-INF\wsdl\BusinessService1.wsdl</commandlineArgs>
> >                         <commandlineArgs>-packageName org.delta.services
> > </commandlineArgs>
> >                         <!--<classpath/>-->
> >                     </arguments>
> >
> >
> >
> >
> > DEBUG] -- end configuration --
> > INFO] [exec:exec {execution: default}]
> > DEBUG] executable java not found in place, assuming it is in the PATH.
> > INFO] Could not create the Java virtual machine.
> > INFO] Unrecognized option: -jar
> C:/jdevstudio1013/webservices/lib/wsa.jar
> > INFO]
> > ------------------------------------------------------------------------
> >
> >
> >
> >
> >
> >
> > On 6/7/07, Wayne Fay <wa...@gmail.com> wrote:
> > >
> > > As I suspected... the problem is not Maven but rather the way the exec
> > > plugin is surrounding your args with quotes.
> > >
> > > Reading the documentation [1], perhaps try commandlineArgs rather than
> > > <arguments>.
> > > [1] http://mojo.codehaus.org/exec-maven-plugin/exec-mojo.html
> > >
> > > Wayne
> > >
> > > On 6/7/07, Mick Knutson <mi...@gmail.com> wrote:
> > > > Arg.
> > > > When I put the quotes I get:
> > > >
> > > > "Could not create the Java virtual machine."
> > > >
> > > > I have googled that but am still looking into that.. Ideas?
> > > >
> > > >
> > > >
> > > >
> > > > On 6/7/07, Wayne Fay <wa...@gmail.com> wrote:
> > > > >
> > > > > How does it run when you add the quotes like you've got in Maven?
> I
> > > > > imagine, not very well.
> > > > >
> > > > > Wayne
> > > > >
> > > > > On 6/7/07, Mick Knutson <mi...@gmail.com> wrote:
> > > > > > I put a bat file together in the main DIR that looks like this:
> > > > > > ---start-----
> > > > > > REM set
> > > > > >
> > > > >
> > >
> WSLIBPATH=C:\viewstore\esp_lynx_dap\esp\dap\src\main\resources\maven\repository\com\oracle\lib
> > > > > > set WSLIBPATH=C:\jdevstudio1013\webservices\lib
> > > > > >
> > > > > > set
> > > > >
> PRJPATH=C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\BusinessService
> > > > > >
> > > > > > REMset CLASSPATH=%WSLIBPATH%;%CLASSPATH%
> > > > > >
> > > > > > REM set PATH=C:\jdevstudio1013\jdk\bin;%PATH%
> > > > > >
> > > > > > REM cd %PRJPATH%\src
> > > > > >
> > > > > > java -jar %WSLIBPATH%/wsa.jar -genInterface -output
> > > > > %PRJPATH%/target/classes
> > > > > > -wsdl
> %PRJPATH%/src/main/webapp/WEB-INF/wsdl/BusinessService1.wsdl
> > > > > > -packageName org.delta.services
> > > > > >
> > > > > > REM java -jar C:/jdevstudio1013/webservices/lib/wsa.jar -cp
> > > > > > C:/jdevstudio1013/webservices/lib -genInterface -output
> > > ./target/classes
> > > > > > -wsdl
> %PRJPATH%/src/main/webapp/WEB-INF/wsdl/BusinessService1.wsdl
> > > > > > -packageName org.delta.services
> > > > > >
> > > > > >
> > > > > > set /p status=Please hit ENTER to close window
> > > > > > ---end----
> > > > > >
> > > > > > And it generates the files fine.
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > On 6/7/07, Wayne Fay <wa...@gmail.com> wrote:
> > > > > > >
> > > > > > > What happens when you run this manually from the same
> directory?
> > > > > > >
> > > > > > > java "-jar
> > > > > > > C:/jdevstudio1013/webservices/lib/wsa.jar -cp
> > > > > > > C:/jdevstudio1013/webservices/lib -genInterface -output
> > > > > > >
> > > > > > >
> > > > >
> > >
> C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\BusinessService/target/classes
> > > > > > > -wsdl C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\Bu
> > > > > > >
> sinessService/src/main/webapp/WEB-INF/wsdl/BusinessService1.wsdl
> > > > > > > -packageName org.delta.services"
> > > > > > >
> > > > > > > I would generally suspect that your problem is from the huge
> > > string
> > > > > > > encapsulate in quotes due to the single <argument> tag you've
> > > > > > > specific, and that you need to break that argument up a bit
> ie:
> > > > > > > <arguments>
> > > > > > > <argument>-jar</argument>
> > > > > > > <argument>C:/jdevstudio1013/webservices/lib/wsa.jar</argument>
> > > > > > > <argument>-cp</argument>
> > > > > > > etc
> > > > > > >
> > > > > > > Wayne
> > > > > > >
> > > > > > > On 6/7/07, Mick Knutson <mi...@gmail.com> wrote:
> > > > > > > > Here is my declaration:
> > > > > > > >
> > > > > > > >             <plugin>
> > > > > > > >                 <groupId>org.codehaus.mojo</groupId>
> > > > > > > >                 <artifactId>exec-maven-plugin</artifactId>
> > > > > > > >                 <executions>
> > > > > > > >                     <execution>
> > > > > > > >                         <phase>generate-sources</phase>
> > > > > > > >                         <goals>
> > > > > > > >                             <goal>exec</goal>
> > > > > > > >                         </goals>
> > > > > > > >                     </execution>
> > > > > > > >                 </executions>
> > > > > > > >                 <configuration>
> > > > > > > >                     <executable>java</executable>
> > > > > > > >                     <arguments>
> > > > > > > >                         <argument>-jar
> > > > > > > > C:/jdevstudio1013/webservices/lib/wsa.jar -cp
> > > > > > > > C:/jdevstudio1013/webservices/lib -genInterface -output
> > > > > > > > ${basedir}/target/classes -wsdl
> > > > > > > >
> ${basedir}/src/main/webapp/WEB-INF/wsdl/BusinessService1.wsdl
> > > > > > > -packageName
> > > > > > > > org.delta.services</argument>
> > > > > > > >                         <!--<argument>-packageName
> > > > > org.delta.services
> > > > > > > > </argument>-->
> > > > > > > >                         <!-- automatically creates the
> classpath
> > > > > using
> > > > > > > all
> > > > > > > > project dependencies,
> > > > > > > >                              also adding the project build
> > > directory
> > > > > -->
> > > > > > > >                         <!--<classpath/>-->
> > > > > > > >                     </arguments>
> > > > > > > >                 </configuration>
> > > > > > > >             </plugin>
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > And here is the error I keep getting:
> > > > > > > >
> > > > > > > > [INFO]
> > > > > > > >
> > > > >
> > >
> ------------------------------------------------------------------------
> > > > > > > > [ERROR] BUILD ERROR
> > > > > > > > [INFO]
> > > > > > > >
> > > > >
> > >
> ------------------------------------------------------------------------
> > > > > > > > [INFO] Result of java "-jar
> > > > > C:/jdevstudio1013/webservices/lib/wsa.jar
> > > > > > > -cp
> > > > > > > > C:/jdevstudio1013/webservices/lib -genInterface -output
> > > > > > > > C:\viewstore\esp_lynx_dap
> > > > > > > > \esp\dap\poc\AOPTest\BusinessService/target/classes -wsdl
> > > > > > > >
> > > > > > >
> > > > >
> > >
> C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\BusinessService/src/main/webapp/WEB-INF/wsdl/Busine
> > > > > > > > ssService1.wsdl -packageName org.delta.services" execution
> is:
> > > '1'.
> > > > > > > > [INFO]
> > > > > > > >
> > > > >
> > >
> ------------------------------------------------------------------------
> > > > > > > > [DEBUG] Trace
> > > > > > > > org.apache.maven.lifecycle.LifecycleExecutionException:
> Result
> > > of
> > > > > java
> > > > > > > "-jar
> > > > > > > > C:/jdevstudio1013/webservices/lib/wsa.jar -cp
> > > > > > > > C:/jdevstudio1013/webservices/li
> > > > > > > > b -genInterface -output
> > > > > > > >
> > > > > > >
> > > > >
> > >
> C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\BusinessService/target/classes
> > > > > > > > -wsdl C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\Bu
> > > > > > > >
> sinessService/src/main/webapp/WEB-INF/wsdl/BusinessService1.wsdl
> > > > > > > > -packageName org.delta.services" execution is: '1'.
> > > > > > > >         at
> > > > > > >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> > > > > > > > DefaultLifecycleExecutor.java:564)
> > > > > > > >         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
> > > > > > > :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(
> > > > > > > > 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.MojoExecutionException:
> > > Result of
> > > > > > > java
> > > > > > > > "-jar C:/jdevstudio1013/webservices/lib/wsa.jar -cp
> > > > > > > > C:/jdevstudio1013/webservices
> > > > > > > > /lib -genInterface -output
> > > > > > > >
> > > > > > >
> > > > >
> > >
> C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\BusinessService/target/classes
> > > > > > > > -wsdl C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest
> > > > > > > >
> > > \BusinessService/src/main/webapp/WEB-INF/wsdl/BusinessService1.wsdl
> > > > > > > > -packageName org.delta.services" execution is: '1'.
> > > > > > > >         at org.codehaus.mojo.exec.ExecMojo.execute(
> ExecMojo.java
> > > > > :208)
> > > > > > > >         at
> > > org.apache.maven.plugin.DefaultPluginManager.executeMojo(
> > > > > > > > DefaultPluginManager.java:420)
> > > > > > > >         at
> > > > > > >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> > > > > > > > DefaultLifecycleExecutor.java:539)
> > > > > > > >         ... 16 more
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > Help would be GREATLY appreciated!
> > > > > > > >
> > > > > > > >
> > > > > > > > --
> > > > > > > > ---
> > > > > > > > Thanks,
> > > > > > > > Mick Knutson
> > > > > > > >
> > > > > > > > http://www.baselogic.com
> > > > > > > > http://www.blincmagazine.com
> > > > > > > > http://www.djmick.com
> > > > > > > > http://www.myspace.com/mickknutson
> > > > > > > > http://www.myspace.com/djmick_dot_com
> > > > > > > > http://www.myspace.com/sexybeotches
> > > > > > > > http://www.thumpradio.com
> > > > > > > > ---
> > > > > > > >
> > > > > > >
> > > > > > >
> > > ---------------------------------------------------------------------
> > > > > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > > > > For additional commands, e-mail: users-help@maven.apache.org
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > ---
> > > > > > Thanks,
> > > > > > Mick Knutson
> > > > > >
> > > > > > http://www.baselogic.com
> > > > > > http://www.blincmagazine.com
> > > > > > http://www.djmick.com
> > > > > > http://www.myspace.com/mickknutson
> > > > > > http://www.myspace.com/djmick_dot_com
> > > > > > http://www.myspace.com/sexybeotches
> > > > > > http://www.thumpradio.com
> > > > > > ---
> > > > > >
> > > > >
> > > > >
> ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > > For additional commands, e-mail: users-help@maven.apache.org
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > ---
> > > > Thanks,
> > > > Mick Knutson
> > > >
> > > > http://www.baselogic.com
> > > > http://www.blincmagazine.com
> > > > http://www.djmick.com
> > > > http://www.myspace.com/mickknutson
> > > > http://www.myspace.com/djmick_dot_com
> > > > http://www.myspace.com/sexybeotches
> > > > http://www.thumpradio.com
> > > > ---
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
> >
> > --
> > ---
> > Thanks,
> > Mick Knutson
> >
> > http://www.baselogic.com
> > http://www.blincmagazine.com
> > http://www.djmick.com
> > http://www.myspace.com/mickknutson
> > http://www.myspace.com/djmick_dot_com
> > http://www.myspace.com/sexybeotches
> > http://www.thumpradio.com
> > ---
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
---
Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/djmick_dot_com
http://www.myspace.com/sexybeotches
http://www.thumpradio.com
---

Re: [m2] Error running genInterface for JDeveloper with AntRun

Posted by Wayne Fay <wa...@gmail.com>.
>From my reading of it, commandlineArgs is a single String, whereas
arguments is a List of argument nodes. So delete all the
</commandlineArgs><commandlineArgs> so its one big string, and try
again.

If it wasn't totally obvious, I'm just guessing here, I haven't had to
do this myself (yet) for any projects.

Wayne

On 6/7/07, Mick Knutson <mi...@gmail.com> wrote:
> Did not work:
>
>                     <arguments>
>
> <!--<argument>-classpath=C:/jdevstudio1013/webservices/lib</argument>-->
>                         <commandlineArgs>-jar
> C:/jdevstudio1013/webservices/lib/wsa.jar</commandlineArgs>
>                         <commandlineArgs>-genInterface</commandlineArgs>
>                         <commandlineArgs>-output
> ${basedir}\target\classes</commandlineArgs>
>                         <commandlineArgs>-wsdl
> ${basedir}\src\main\webapp\WEB-INF\wsdl\BusinessService1.wsdl</commandlineArgs>
>                         <commandlineArgs>-packageName org.delta.services
> </commandlineArgs>
>                         <!--<classpath/>-->
>                     </arguments>
>
>
>
>
> DEBUG] -- end configuration --
> INFO] [exec:exec {execution: default}]
> DEBUG] executable java not found in place, assuming it is in the PATH.
> INFO] Could not create the Java virtual machine.
> INFO] Unrecognized option: -jar C:/jdevstudio1013/webservices/lib/wsa.jar
> INFO]
> ------------------------------------------------------------------------
>
>
>
>
>
>
> On 6/7/07, Wayne Fay <wa...@gmail.com> wrote:
> >
> > As I suspected... the problem is not Maven but rather the way the exec
> > plugin is surrounding your args with quotes.
> >
> > Reading the documentation [1], perhaps try commandlineArgs rather than
> > <arguments>.
> > [1] http://mojo.codehaus.org/exec-maven-plugin/exec-mojo.html
> >
> > Wayne
> >
> > On 6/7/07, Mick Knutson <mi...@gmail.com> wrote:
> > > Arg.
> > > When I put the quotes I get:
> > >
> > > "Could not create the Java virtual machine."
> > >
> > > I have googled that but am still looking into that.. Ideas?
> > >
> > >
> > >
> > >
> > > On 6/7/07, Wayne Fay <wa...@gmail.com> wrote:
> > > >
> > > > How does it run when you add the quotes like you've got in Maven? I
> > > > imagine, not very well.
> > > >
> > > > Wayne
> > > >
> > > > On 6/7/07, Mick Knutson <mi...@gmail.com> wrote:
> > > > > I put a bat file together in the main DIR that looks like this:
> > > > > ---start-----
> > > > > REM set
> > > > >
> > > >
> > WSLIBPATH=C:\viewstore\esp_lynx_dap\esp\dap\src\main\resources\maven\repository\com\oracle\lib
> > > > > set WSLIBPATH=C:\jdevstudio1013\webservices\lib
> > > > >
> > > > > set
> > > > PRJPATH=C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\BusinessService
> > > > >
> > > > > REMset CLASSPATH=%WSLIBPATH%;%CLASSPATH%
> > > > >
> > > > > REM set PATH=C:\jdevstudio1013\jdk\bin;%PATH%
> > > > >
> > > > > REM cd %PRJPATH%\src
> > > > >
> > > > > java -jar %WSLIBPATH%/wsa.jar -genInterface -output
> > > > %PRJPATH%/target/classes
> > > > > -wsdl %PRJPATH%/src/main/webapp/WEB-INF/wsdl/BusinessService1.wsdl
> > > > > -packageName org.delta.services
> > > > >
> > > > > REM java -jar C:/jdevstudio1013/webservices/lib/wsa.jar -cp
> > > > > C:/jdevstudio1013/webservices/lib -genInterface -output
> > ./target/classes
> > > > > -wsdl %PRJPATH%/src/main/webapp/WEB-INF/wsdl/BusinessService1.wsdl
> > > > > -packageName org.delta.services
> > > > >
> > > > >
> > > > > set /p status=Please hit ENTER to close window
> > > > > ---end----
> > > > >
> > > > > And it generates the files fine.
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > On 6/7/07, Wayne Fay <wa...@gmail.com> wrote:
> > > > > >
> > > > > > What happens when you run this manually from the same directory?
> > > > > >
> > > > > > java "-jar
> > > > > > C:/jdevstudio1013/webservices/lib/wsa.jar -cp
> > > > > > C:/jdevstudio1013/webservices/lib -genInterface -output
> > > > > >
> > > > > >
> > > >
> > C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\BusinessService/target/classes
> > > > > > -wsdl C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\Bu
> > > > > > sinessService/src/main/webapp/WEB-INF/wsdl/BusinessService1.wsdl
> > > > > > -packageName org.delta.services"
> > > > > >
> > > > > > I would generally suspect that your problem is from the huge
> > string
> > > > > > encapsulate in quotes due to the single <argument> tag you've
> > > > > > specific, and that you need to break that argument up a bit ie:
> > > > > > <arguments>
> > > > > > <argument>-jar</argument>
> > > > > > <argument>C:/jdevstudio1013/webservices/lib/wsa.jar</argument>
> > > > > > <argument>-cp</argument>
> > > > > > etc
> > > > > >
> > > > > > Wayne
> > > > > >
> > > > > > On 6/7/07, Mick Knutson <mi...@gmail.com> wrote:
> > > > > > > Here is my declaration:
> > > > > > >
> > > > > > >             <plugin>
> > > > > > >                 <groupId>org.codehaus.mojo</groupId>
> > > > > > >                 <artifactId>exec-maven-plugin</artifactId>
> > > > > > >                 <executions>
> > > > > > >                     <execution>
> > > > > > >                         <phase>generate-sources</phase>
> > > > > > >                         <goals>
> > > > > > >                             <goal>exec</goal>
> > > > > > >                         </goals>
> > > > > > >                     </execution>
> > > > > > >                 </executions>
> > > > > > >                 <configuration>
> > > > > > >                     <executable>java</executable>
> > > > > > >                     <arguments>
> > > > > > >                         <argument>-jar
> > > > > > > C:/jdevstudio1013/webservices/lib/wsa.jar -cp
> > > > > > > C:/jdevstudio1013/webservices/lib -genInterface -output
> > > > > > > ${basedir}/target/classes -wsdl
> > > > > > > ${basedir}/src/main/webapp/WEB-INF/wsdl/BusinessService1.wsdl
> > > > > > -packageName
> > > > > > > org.delta.services</argument>
> > > > > > >                         <!--<argument>-packageName
> > > > org.delta.services
> > > > > > > </argument>-->
> > > > > > >                         <!-- automatically creates the classpath
> > > > using
> > > > > > all
> > > > > > > project dependencies,
> > > > > > >                              also adding the project build
> > directory
> > > > -->
> > > > > > >                         <!--<classpath/>-->
> > > > > > >                     </arguments>
> > > > > > >                 </configuration>
> > > > > > >             </plugin>
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > And here is the error I keep getting:
> > > > > > >
> > > > > > > [INFO]
> > > > > > >
> > > >
> > ------------------------------------------------------------------------
> > > > > > > [ERROR] BUILD ERROR
> > > > > > > [INFO]
> > > > > > >
> > > >
> > ------------------------------------------------------------------------
> > > > > > > [INFO] Result of java "-jar
> > > > C:/jdevstudio1013/webservices/lib/wsa.jar
> > > > > > -cp
> > > > > > > C:/jdevstudio1013/webservices/lib -genInterface -output
> > > > > > > C:\viewstore\esp_lynx_dap
> > > > > > > \esp\dap\poc\AOPTest\BusinessService/target/classes -wsdl
> > > > > > >
> > > > > >
> > > >
> > C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\BusinessService/src/main/webapp/WEB-INF/wsdl/Busine
> > > > > > > ssService1.wsdl -packageName org.delta.services" execution is:
> > '1'.
> > > > > > > [INFO]
> > > > > > >
> > > >
> > ------------------------------------------------------------------------
> > > > > > > [DEBUG] Trace
> > > > > > > org.apache.maven.lifecycle.LifecycleExecutionException: Result
> > of
> > > > java
> > > > > > "-jar
> > > > > > > C:/jdevstudio1013/webservices/lib/wsa.jar -cp
> > > > > > > C:/jdevstudio1013/webservices/li
> > > > > > > b -genInterface -output
> > > > > > >
> > > > > >
> > > >
> > C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\BusinessService/target/classes
> > > > > > > -wsdl C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\Bu
> > > > > > > sinessService/src/main/webapp/WEB-INF/wsdl/BusinessService1.wsdl
> > > > > > > -packageName org.delta.services" execution is: '1'.
> > > > > > >         at
> > > > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> > > > > > > DefaultLifecycleExecutor.java:564)
> > > > > > >         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
> > > > > > :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(
> > > > > > > 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.MojoExecutionException:
> > Result of
> > > > > > java
> > > > > > > "-jar C:/jdevstudio1013/webservices/lib/wsa.jar -cp
> > > > > > > C:/jdevstudio1013/webservices
> > > > > > > /lib -genInterface -output
> > > > > > >
> > > > > >
> > > >
> > C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\BusinessService/target/classes
> > > > > > > -wsdl C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest
> > > > > > >
> > \BusinessService/src/main/webapp/WEB-INF/wsdl/BusinessService1.wsdl
> > > > > > > -packageName org.delta.services" execution is: '1'.
> > > > > > >         at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java
> > > > :208)
> > > > > > >         at
> > org.apache.maven.plugin.DefaultPluginManager.executeMojo(
> > > > > > > DefaultPluginManager.java:420)
> > > > > > >         at
> > > > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> > > > > > > DefaultLifecycleExecutor.java:539)
> > > > > > >         ... 16 more
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > Help would be GREATLY appreciated!
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > ---
> > > > > > > Thanks,
> > > > > > > Mick Knutson
> > > > > > >
> > > > > > > http://www.baselogic.com
> > > > > > > http://www.blincmagazine.com
> > > > > > > http://www.djmick.com
> > > > > > > http://www.myspace.com/mickknutson
> > > > > > > http://www.myspace.com/djmick_dot_com
> > > > > > > http://www.myspace.com/sexybeotches
> > > > > > > http://www.thumpradio.com
> > > > > > > ---
> > > > > > >
> > > > > >
> > > > > >
> > ---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > > > For additional commands, e-mail: users-help@maven.apache.org
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > > ---
> > > > > Thanks,
> > > > > Mick Knutson
> > > > >
> > > > > http://www.baselogic.com
> > > > > http://www.blincmagazine.com
> > > > > http://www.djmick.com
> > > > > http://www.myspace.com/mickknutson
> > > > > http://www.myspace.com/djmick_dot_com
> > > > > http://www.myspace.com/sexybeotches
> > > > > http://www.thumpradio.com
> > > > > ---
> > > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > For additional commands, e-mail: users-help@maven.apache.org
> > > >
> > > >
> > >
> > >
> > > --
> > > ---
> > > Thanks,
> > > Mick Knutson
> > >
> > > http://www.baselogic.com
> > > http://www.blincmagazine.com
> > > http://www.djmick.com
> > > http://www.myspace.com/mickknutson
> > > http://www.myspace.com/djmick_dot_com
> > > http://www.myspace.com/sexybeotches
> > > http://www.thumpradio.com
> > > ---
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>
> --
> ---
> Thanks,
> Mick Knutson
>
> http://www.baselogic.com
> http://www.blincmagazine.com
> http://www.djmick.com
> http://www.myspace.com/mickknutson
> http://www.myspace.com/djmick_dot_com
> http://www.myspace.com/sexybeotches
> http://www.thumpradio.com
> ---
>

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


Re: [m2] Error running genInterface for JDeveloper with AntRun

Posted by Mick Knutson <mi...@gmail.com>.
Did not work:

                    <arguments>

<!--<argument>-classpath=C:/jdevstudio1013/webservices/lib</argument>-->
                        <commandlineArgs>-jar
C:/jdevstudio1013/webservices/lib/wsa.jar</commandlineArgs>
                        <commandlineArgs>-genInterface</commandlineArgs>
                        <commandlineArgs>-output
${basedir}\target\classes</commandlineArgs>
                        <commandlineArgs>-wsdl
${basedir}\src\main\webapp\WEB-INF\wsdl\BusinessService1.wsdl</commandlineArgs>
                        <commandlineArgs>-packageName org.delta.services
</commandlineArgs>
                        <!--<classpath/>-->
                    </arguments>




DEBUG] -- end configuration --
INFO] [exec:exec {execution: default}]
DEBUG] executable java not found in place, assuming it is in the PATH.
INFO] Could not create the Java virtual machine.
INFO] Unrecognized option: -jar C:/jdevstudio1013/webservices/lib/wsa.jar
INFO]
------------------------------------------------------------------------






On 6/7/07, Wayne Fay <wa...@gmail.com> wrote:
>
> As I suspected... the problem is not Maven but rather the way the exec
> plugin is surrounding your args with quotes.
>
> Reading the documentation [1], perhaps try commandlineArgs rather than
> <arguments>.
> [1] http://mojo.codehaus.org/exec-maven-plugin/exec-mojo.html
>
> Wayne
>
> On 6/7/07, Mick Knutson <mi...@gmail.com> wrote:
> > Arg.
> > When I put the quotes I get:
> >
> > "Could not create the Java virtual machine."
> >
> > I have googled that but am still looking into that.. Ideas?
> >
> >
> >
> >
> > On 6/7/07, Wayne Fay <wa...@gmail.com> wrote:
> > >
> > > How does it run when you add the quotes like you've got in Maven? I
> > > imagine, not very well.
> > >
> > > Wayne
> > >
> > > On 6/7/07, Mick Knutson <mi...@gmail.com> wrote:
> > > > I put a bat file together in the main DIR that looks like this:
> > > > ---start-----
> > > > REM set
> > > >
> > >
> WSLIBPATH=C:\viewstore\esp_lynx_dap\esp\dap\src\main\resources\maven\repository\com\oracle\lib
> > > > set WSLIBPATH=C:\jdevstudio1013\webservices\lib
> > > >
> > > > set
> > > PRJPATH=C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\BusinessService
> > > >
> > > > REMset CLASSPATH=%WSLIBPATH%;%CLASSPATH%
> > > >
> > > > REM set PATH=C:\jdevstudio1013\jdk\bin;%PATH%
> > > >
> > > > REM cd %PRJPATH%\src
> > > >
> > > > java -jar %WSLIBPATH%/wsa.jar -genInterface -output
> > > %PRJPATH%/target/classes
> > > > -wsdl %PRJPATH%/src/main/webapp/WEB-INF/wsdl/BusinessService1.wsdl
> > > > -packageName org.delta.services
> > > >
> > > > REM java -jar C:/jdevstudio1013/webservices/lib/wsa.jar -cp
> > > > C:/jdevstudio1013/webservices/lib -genInterface -output
> ./target/classes
> > > > -wsdl %PRJPATH%/src/main/webapp/WEB-INF/wsdl/BusinessService1.wsdl
> > > > -packageName org.delta.services
> > > >
> > > >
> > > > set /p status=Please hit ENTER to close window
> > > > ---end----
> > > >
> > > > And it generates the files fine.
> > > >
> > > >
> > > >
> > > >
> > > > On 6/7/07, Wayne Fay <wa...@gmail.com> wrote:
> > > > >
> > > > > What happens when you run this manually from the same directory?
> > > > >
> > > > > java "-jar
> > > > > C:/jdevstudio1013/webservices/lib/wsa.jar -cp
> > > > > C:/jdevstudio1013/webservices/lib -genInterface -output
> > > > >
> > > > >
> > >
> C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\BusinessService/target/classes
> > > > > -wsdl C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\Bu
> > > > > sinessService/src/main/webapp/WEB-INF/wsdl/BusinessService1.wsdl
> > > > > -packageName org.delta.services"
> > > > >
> > > > > I would generally suspect that your problem is from the huge
> string
> > > > > encapsulate in quotes due to the single <argument> tag you've
> > > > > specific, and that you need to break that argument up a bit ie:
> > > > > <arguments>
> > > > > <argument>-jar</argument>
> > > > > <argument>C:/jdevstudio1013/webservices/lib/wsa.jar</argument>
> > > > > <argument>-cp</argument>
> > > > > etc
> > > > >
> > > > > Wayne
> > > > >
> > > > > On 6/7/07, Mick Knutson <mi...@gmail.com> wrote:
> > > > > > Here is my declaration:
> > > > > >
> > > > > >             <plugin>
> > > > > >                 <groupId>org.codehaus.mojo</groupId>
> > > > > >                 <artifactId>exec-maven-plugin</artifactId>
> > > > > >                 <executions>
> > > > > >                     <execution>
> > > > > >                         <phase>generate-sources</phase>
> > > > > >                         <goals>
> > > > > >                             <goal>exec</goal>
> > > > > >                         </goals>
> > > > > >                     </execution>
> > > > > >                 </executions>
> > > > > >                 <configuration>
> > > > > >                     <executable>java</executable>
> > > > > >                     <arguments>
> > > > > >                         <argument>-jar
> > > > > > C:/jdevstudio1013/webservices/lib/wsa.jar -cp
> > > > > > C:/jdevstudio1013/webservices/lib -genInterface -output
> > > > > > ${basedir}/target/classes -wsdl
> > > > > > ${basedir}/src/main/webapp/WEB-INF/wsdl/BusinessService1.wsdl
> > > > > -packageName
> > > > > > org.delta.services</argument>
> > > > > >                         <!--<argument>-packageName
> > > org.delta.services
> > > > > > </argument>-->
> > > > > >                         <!-- automatically creates the classpath
> > > using
> > > > > all
> > > > > > project dependencies,
> > > > > >                              also adding the project build
> directory
> > > -->
> > > > > >                         <!--<classpath/>-->
> > > > > >                     </arguments>
> > > > > >                 </configuration>
> > > > > >             </plugin>
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > And here is the error I keep getting:
> > > > > >
> > > > > > [INFO]
> > > > > >
> > >
> ------------------------------------------------------------------------
> > > > > > [ERROR] BUILD ERROR
> > > > > > [INFO]
> > > > > >
> > >
> ------------------------------------------------------------------------
> > > > > > [INFO] Result of java "-jar
> > > C:/jdevstudio1013/webservices/lib/wsa.jar
> > > > > -cp
> > > > > > C:/jdevstudio1013/webservices/lib -genInterface -output
> > > > > > C:\viewstore\esp_lynx_dap
> > > > > > \esp\dap\poc\AOPTest\BusinessService/target/classes -wsdl
> > > > > >
> > > > >
> > >
> C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\BusinessService/src/main/webapp/WEB-INF/wsdl/Busine
> > > > > > ssService1.wsdl -packageName org.delta.services" execution is:
> '1'.
> > > > > > [INFO]
> > > > > >
> > >
> ------------------------------------------------------------------------
> > > > > > [DEBUG] Trace
> > > > > > org.apache.maven.lifecycle.LifecycleExecutionException: Result
> of
> > > java
> > > > > "-jar
> > > > > > C:/jdevstudio1013/webservices/lib/wsa.jar -cp
> > > > > > C:/jdevstudio1013/webservices/li
> > > > > > b -genInterface -output
> > > > > >
> > > > >
> > >
> C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\BusinessService/target/classes
> > > > > > -wsdl C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\Bu
> > > > > > sinessService/src/main/webapp/WEB-INF/wsdl/BusinessService1.wsdl
> > > > > > -packageName org.delta.services" execution is: '1'.
> > > > > >         at
> > > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> > > > > > DefaultLifecycleExecutor.java:564)
> > > > > >         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
> > > > > :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(
> > > > > > 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.MojoExecutionException:
> Result of
> > > > > java
> > > > > > "-jar C:/jdevstudio1013/webservices/lib/wsa.jar -cp
> > > > > > C:/jdevstudio1013/webservices
> > > > > > /lib -genInterface -output
> > > > > >
> > > > >
> > >
> C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\BusinessService/target/classes
> > > > > > -wsdl C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest
> > > > > >
> \BusinessService/src/main/webapp/WEB-INF/wsdl/BusinessService1.wsdl
> > > > > > -packageName org.delta.services" execution is: '1'.
> > > > > >         at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java
> > > :208)
> > > > > >         at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(
> > > > > > DefaultPluginManager.java:420)
> > > > > >         at
> > > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> > > > > > DefaultLifecycleExecutor.java:539)
> > > > > >         ... 16 more
> > > > > >
> > > > > >
> > > > > >
> > > > > > Help would be GREATLY appreciated!
> > > > > >
> > > > > >
> > > > > > --
> > > > > > ---
> > > > > > Thanks,
> > > > > > Mick Knutson
> > > > > >
> > > > > > http://www.baselogic.com
> > > > > > http://www.blincmagazine.com
> > > > > > http://www.djmick.com
> > > > > > http://www.myspace.com/mickknutson
> > > > > > http://www.myspace.com/djmick_dot_com
> > > > > > http://www.myspace.com/sexybeotches
> > > > > > http://www.thumpradio.com
> > > > > > ---
> > > > > >
> > > > >
> > > > >
> ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > > For additional commands, e-mail: users-help@maven.apache.org
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > ---
> > > > Thanks,
> > > > Mick Knutson
> > > >
> > > > http://www.baselogic.com
> > > > http://www.blincmagazine.com
> > > > http://www.djmick.com
> > > > http://www.myspace.com/mickknutson
> > > > http://www.myspace.com/djmick_dot_com
> > > > http://www.myspace.com/sexybeotches
> > > > http://www.thumpradio.com
> > > > ---
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
> >
> > --
> > ---
> > Thanks,
> > Mick Knutson
> >
> > http://www.baselogic.com
> > http://www.blincmagazine.com
> > http://www.djmick.com
> > http://www.myspace.com/mickknutson
> > http://www.myspace.com/djmick_dot_com
> > http://www.myspace.com/sexybeotches
> > http://www.thumpradio.com
> > ---
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
---
Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/djmick_dot_com
http://www.myspace.com/sexybeotches
http://www.thumpradio.com
---

Re: [m2] Error running genInterface for JDeveloper with AntRun

Posted by Wayne Fay <wa...@gmail.com>.
As I suspected... the problem is not Maven but rather the way the exec
plugin is surrounding your args with quotes.

Reading the documentation [1], perhaps try commandlineArgs rather than
<arguments>.
[1] http://mojo.codehaus.org/exec-maven-plugin/exec-mojo.html

Wayne

On 6/7/07, Mick Knutson <mi...@gmail.com> wrote:
> Arg.
> When I put the quotes I get:
>
> "Could not create the Java virtual machine."
>
> I have googled that but am still looking into that.. Ideas?
>
>
>
>
> On 6/7/07, Wayne Fay <wa...@gmail.com> wrote:
> >
> > How does it run when you add the quotes like you've got in Maven? I
> > imagine, not very well.
> >
> > Wayne
> >
> > On 6/7/07, Mick Knutson <mi...@gmail.com> wrote:
> > > I put a bat file together in the main DIR that looks like this:
> > > ---start-----
> > > REM set
> > >
> > WSLIBPATH=C:\viewstore\esp_lynx_dap\esp\dap\src\main\resources\maven\repository\com\oracle\lib
> > > set WSLIBPATH=C:\jdevstudio1013\webservices\lib
> > >
> > > set
> > PRJPATH=C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\BusinessService
> > >
> > > REMset CLASSPATH=%WSLIBPATH%;%CLASSPATH%
> > >
> > > REM set PATH=C:\jdevstudio1013\jdk\bin;%PATH%
> > >
> > > REM cd %PRJPATH%\src
> > >
> > > java -jar %WSLIBPATH%/wsa.jar -genInterface -output
> > %PRJPATH%/target/classes
> > > -wsdl %PRJPATH%/src/main/webapp/WEB-INF/wsdl/BusinessService1.wsdl
> > > -packageName org.delta.services
> > >
> > > REM java -jar C:/jdevstudio1013/webservices/lib/wsa.jar -cp
> > > C:/jdevstudio1013/webservices/lib -genInterface -output ./target/classes
> > > -wsdl %PRJPATH%/src/main/webapp/WEB-INF/wsdl/BusinessService1.wsdl
> > > -packageName org.delta.services
> > >
> > >
> > > set /p status=Please hit ENTER to close window
> > > ---end----
> > >
> > > And it generates the files fine.
> > >
> > >
> > >
> > >
> > > On 6/7/07, Wayne Fay <wa...@gmail.com> wrote:
> > > >
> > > > What happens when you run this manually from the same directory?
> > > >
> > > > java "-jar
> > > > C:/jdevstudio1013/webservices/lib/wsa.jar -cp
> > > > C:/jdevstudio1013/webservices/lib -genInterface -output
> > > >
> > > >
> > C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\BusinessService/target/classes
> > > > -wsdl C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\Bu
> > > > sinessService/src/main/webapp/WEB-INF/wsdl/BusinessService1.wsdl
> > > > -packageName org.delta.services"
> > > >
> > > > I would generally suspect that your problem is from the huge string
> > > > encapsulate in quotes due to the single <argument> tag you've
> > > > specific, and that you need to break that argument up a bit ie:
> > > > <arguments>
> > > > <argument>-jar</argument>
> > > > <argument>C:/jdevstudio1013/webservices/lib/wsa.jar</argument>
> > > > <argument>-cp</argument>
> > > > etc
> > > >
> > > > Wayne
> > > >
> > > > On 6/7/07, Mick Knutson <mi...@gmail.com> wrote:
> > > > > Here is my declaration:
> > > > >
> > > > >             <plugin>
> > > > >                 <groupId>org.codehaus.mojo</groupId>
> > > > >                 <artifactId>exec-maven-plugin</artifactId>
> > > > >                 <executions>
> > > > >                     <execution>
> > > > >                         <phase>generate-sources</phase>
> > > > >                         <goals>
> > > > >                             <goal>exec</goal>
> > > > >                         </goals>
> > > > >                     </execution>
> > > > >                 </executions>
> > > > >                 <configuration>
> > > > >                     <executable>java</executable>
> > > > >                     <arguments>
> > > > >                         <argument>-jar
> > > > > C:/jdevstudio1013/webservices/lib/wsa.jar -cp
> > > > > C:/jdevstudio1013/webservices/lib -genInterface -output
> > > > > ${basedir}/target/classes -wsdl
> > > > > ${basedir}/src/main/webapp/WEB-INF/wsdl/BusinessService1.wsdl
> > > > -packageName
> > > > > org.delta.services</argument>
> > > > >                         <!--<argument>-packageName
> > org.delta.services
> > > > > </argument>-->
> > > > >                         <!-- automatically creates the classpath
> > using
> > > > all
> > > > > project dependencies,
> > > > >                              also adding the project build directory
> > -->
> > > > >                         <!--<classpath/>-->
> > > > >                     </arguments>
> > > > >                 </configuration>
> > > > >             </plugin>
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > And here is the error I keep getting:
> > > > >
> > > > > [INFO]
> > > > >
> > ------------------------------------------------------------------------
> > > > > [ERROR] BUILD ERROR
> > > > > [INFO]
> > > > >
> > ------------------------------------------------------------------------
> > > > > [INFO] Result of java "-jar
> > C:/jdevstudio1013/webservices/lib/wsa.jar
> > > > -cp
> > > > > C:/jdevstudio1013/webservices/lib -genInterface -output
> > > > > C:\viewstore\esp_lynx_dap
> > > > > \esp\dap\poc\AOPTest\BusinessService/target/classes -wsdl
> > > > >
> > > >
> > C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\BusinessService/src/main/webapp/WEB-INF/wsdl/Busine
> > > > > ssService1.wsdl -packageName org.delta.services" execution is: '1'.
> > > > > [INFO]
> > > > >
> > ------------------------------------------------------------------------
> > > > > [DEBUG] Trace
> > > > > org.apache.maven.lifecycle.LifecycleExecutionException: Result of
> > java
> > > > "-jar
> > > > > C:/jdevstudio1013/webservices/lib/wsa.jar -cp
> > > > > C:/jdevstudio1013/webservices/li
> > > > > b -genInterface -output
> > > > >
> > > >
> > C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\BusinessService/target/classes
> > > > > -wsdl C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\Bu
> > > > > sinessService/src/main/webapp/WEB-INF/wsdl/BusinessService1.wsdl
> > > > > -packageName org.delta.services" execution is: '1'.
> > > > >         at
> > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> > > > > DefaultLifecycleExecutor.java:564)
> > > > >         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
> > > > :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(
> > > > > 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.MojoExecutionException: Result of
> > > > java
> > > > > "-jar C:/jdevstudio1013/webservices/lib/wsa.jar -cp
> > > > > C:/jdevstudio1013/webservices
> > > > > /lib -genInterface -output
> > > > >
> > > >
> > C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\BusinessService/target/classes
> > > > > -wsdl C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest
> > > > > \BusinessService/src/main/webapp/WEB-INF/wsdl/BusinessService1.wsdl
> > > > > -packageName org.delta.services" execution is: '1'.
> > > > >         at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java
> > :208)
> > > > >         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
> > > > > DefaultPluginManager.java:420)
> > > > >         at
> > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> > > > > DefaultLifecycleExecutor.java:539)
> > > > >         ... 16 more
> > > > >
> > > > >
> > > > >
> > > > > Help would be GREATLY appreciated!
> > > > >
> > > > >
> > > > > --
> > > > > ---
> > > > > Thanks,
> > > > > Mick Knutson
> > > > >
> > > > > http://www.baselogic.com
> > > > > http://www.blincmagazine.com
> > > > > http://www.djmick.com
> > > > > http://www.myspace.com/mickknutson
> > > > > http://www.myspace.com/djmick_dot_com
> > > > > http://www.myspace.com/sexybeotches
> > > > > http://www.thumpradio.com
> > > > > ---
> > > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > For additional commands, e-mail: users-help@maven.apache.org
> > > >
> > > >
> > >
> > >
> > > --
> > > ---
> > > Thanks,
> > > Mick Knutson
> > >
> > > http://www.baselogic.com
> > > http://www.blincmagazine.com
> > > http://www.djmick.com
> > > http://www.myspace.com/mickknutson
> > > http://www.myspace.com/djmick_dot_com
> > > http://www.myspace.com/sexybeotches
> > > http://www.thumpradio.com
> > > ---
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>
> --
> ---
> Thanks,
> Mick Knutson
>
> http://www.baselogic.com
> http://www.blincmagazine.com
> http://www.djmick.com
> http://www.myspace.com/mickknutson
> http://www.myspace.com/djmick_dot_com
> http://www.myspace.com/sexybeotches
> http://www.thumpradio.com
> ---
>

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


Re: [m2] Error running genInterface for JDeveloper with AntRun

Posted by Mick Knutson <mi...@gmail.com>.
Arg.
When I put the quotes I get:

"Could not create the Java virtual machine."

I have googled that but am still looking into that.. Ideas?




On 6/7/07, Wayne Fay <wa...@gmail.com> wrote:
>
> How does it run when you add the quotes like you've got in Maven? I
> imagine, not very well.
>
> Wayne
>
> On 6/7/07, Mick Knutson <mi...@gmail.com> wrote:
> > I put a bat file together in the main DIR that looks like this:
> > ---start-----
> > REM set
> >
> WSLIBPATH=C:\viewstore\esp_lynx_dap\esp\dap\src\main\resources\maven\repository\com\oracle\lib
> > set WSLIBPATH=C:\jdevstudio1013\webservices\lib
> >
> > set
> PRJPATH=C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\BusinessService
> >
> > REMset CLASSPATH=%WSLIBPATH%;%CLASSPATH%
> >
> > REM set PATH=C:\jdevstudio1013\jdk\bin;%PATH%
> >
> > REM cd %PRJPATH%\src
> >
> > java -jar %WSLIBPATH%/wsa.jar -genInterface -output
> %PRJPATH%/target/classes
> > -wsdl %PRJPATH%/src/main/webapp/WEB-INF/wsdl/BusinessService1.wsdl
> > -packageName org.delta.services
> >
> > REM java -jar C:/jdevstudio1013/webservices/lib/wsa.jar -cp
> > C:/jdevstudio1013/webservices/lib -genInterface -output ./target/classes
> > -wsdl %PRJPATH%/src/main/webapp/WEB-INF/wsdl/BusinessService1.wsdl
> > -packageName org.delta.services
> >
> >
> > set /p status=Please hit ENTER to close window
> > ---end----
> >
> > And it generates the files fine.
> >
> >
> >
> >
> > On 6/7/07, Wayne Fay <wa...@gmail.com> wrote:
> > >
> > > What happens when you run this manually from the same directory?
> > >
> > > java "-jar
> > > C:/jdevstudio1013/webservices/lib/wsa.jar -cp
> > > C:/jdevstudio1013/webservices/lib -genInterface -output
> > >
> > >
> C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\BusinessService/target/classes
> > > -wsdl C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\Bu
> > > sinessService/src/main/webapp/WEB-INF/wsdl/BusinessService1.wsdl
> > > -packageName org.delta.services"
> > >
> > > I would generally suspect that your problem is from the huge string
> > > encapsulate in quotes due to the single <argument> tag you've
> > > specific, and that you need to break that argument up a bit ie:
> > > <arguments>
> > > <argument>-jar</argument>
> > > <argument>C:/jdevstudio1013/webservices/lib/wsa.jar</argument>
> > > <argument>-cp</argument>
> > > etc
> > >
> > > Wayne
> > >
> > > On 6/7/07, Mick Knutson <mi...@gmail.com> wrote:
> > > > Here is my declaration:
> > > >
> > > >             <plugin>
> > > >                 <groupId>org.codehaus.mojo</groupId>
> > > >                 <artifactId>exec-maven-plugin</artifactId>
> > > >                 <executions>
> > > >                     <execution>
> > > >                         <phase>generate-sources</phase>
> > > >                         <goals>
> > > >                             <goal>exec</goal>
> > > >                         </goals>
> > > >                     </execution>
> > > >                 </executions>
> > > >                 <configuration>
> > > >                     <executable>java</executable>
> > > >                     <arguments>
> > > >                         <argument>-jar
> > > > C:/jdevstudio1013/webservices/lib/wsa.jar -cp
> > > > C:/jdevstudio1013/webservices/lib -genInterface -output
> > > > ${basedir}/target/classes -wsdl
> > > > ${basedir}/src/main/webapp/WEB-INF/wsdl/BusinessService1.wsdl
> > > -packageName
> > > > org.delta.services</argument>
> > > >                         <!--<argument>-packageName
> org.delta.services
> > > > </argument>-->
> > > >                         <!-- automatically creates the classpath
> using
> > > all
> > > > project dependencies,
> > > >                              also adding the project build directory
> -->
> > > >                         <!--<classpath/>-->
> > > >                     </arguments>
> > > >                 </configuration>
> > > >             </plugin>
> > > >
> > > >
> > > >
> > > >
> > > > And here is the error I keep getting:
> > > >
> > > > [INFO]
> > > >
> ------------------------------------------------------------------------
> > > > [ERROR] BUILD ERROR
> > > > [INFO]
> > > >
> ------------------------------------------------------------------------
> > > > [INFO] Result of java "-jar
> C:/jdevstudio1013/webservices/lib/wsa.jar
> > > -cp
> > > > C:/jdevstudio1013/webservices/lib -genInterface -output
> > > > C:\viewstore\esp_lynx_dap
> > > > \esp\dap\poc\AOPTest\BusinessService/target/classes -wsdl
> > > >
> > >
> C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\BusinessService/src/main/webapp/WEB-INF/wsdl/Busine
> > > > ssService1.wsdl -packageName org.delta.services" execution is: '1'.
> > > > [INFO]
> > > >
> ------------------------------------------------------------------------
> > > > [DEBUG] Trace
> > > > org.apache.maven.lifecycle.LifecycleExecutionException: Result of
> java
> > > "-jar
> > > > C:/jdevstudio1013/webservices/lib/wsa.jar -cp
> > > > C:/jdevstudio1013/webservices/li
> > > > b -genInterface -output
> > > >
> > >
> C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\BusinessService/target/classes
> > > > -wsdl C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\Bu
> > > > sinessService/src/main/webapp/WEB-INF/wsdl/BusinessService1.wsdl
> > > > -packageName org.delta.services" execution is: '1'.
> > > >         at
> > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> > > > DefaultLifecycleExecutor.java:564)
> > > >         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
> > > :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(
> > > > 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.MojoExecutionException: Result of
> > > java
> > > > "-jar C:/jdevstudio1013/webservices/lib/wsa.jar -cp
> > > > C:/jdevstudio1013/webservices
> > > > /lib -genInterface -output
> > > >
> > >
> C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\BusinessService/target/classes
> > > > -wsdl C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest
> > > > \BusinessService/src/main/webapp/WEB-INF/wsdl/BusinessService1.wsdl
> > > > -packageName org.delta.services" execution is: '1'.
> > > >         at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java
> :208)
> > > >         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
> > > > DefaultPluginManager.java:420)
> > > >         at
> > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> > > > DefaultLifecycleExecutor.java:539)
> > > >         ... 16 more
> > > >
> > > >
> > > >
> > > > Help would be GREATLY appreciated!
> > > >
> > > >
> > > > --
> > > > ---
> > > > Thanks,
> > > > Mick Knutson
> > > >
> > > > http://www.baselogic.com
> > > > http://www.blincmagazine.com
> > > > http://www.djmick.com
> > > > http://www.myspace.com/mickknutson
> > > > http://www.myspace.com/djmick_dot_com
> > > > http://www.myspace.com/sexybeotches
> > > > http://www.thumpradio.com
> > > > ---
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
> >
> > --
> > ---
> > Thanks,
> > Mick Knutson
> >
> > http://www.baselogic.com
> > http://www.blincmagazine.com
> > http://www.djmick.com
> > http://www.myspace.com/mickknutson
> > http://www.myspace.com/djmick_dot_com
> > http://www.myspace.com/sexybeotches
> > http://www.thumpradio.com
> > ---
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
---
Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/djmick_dot_com
http://www.myspace.com/sexybeotches
http://www.thumpradio.com
---

Re: [m2] Error running genInterface for JDeveloper with AntRun

Posted by Wayne Fay <wa...@gmail.com>.
How does it run when you add the quotes like you've got in Maven? I
imagine, not very well.

Wayne

On 6/7/07, Mick Knutson <mi...@gmail.com> wrote:
> I put a bat file together in the main DIR that looks like this:
> ---start-----
> REM set
> WSLIBPATH=C:\viewstore\esp_lynx_dap\esp\dap\src\main\resources\maven\repository\com\oracle\lib
> set WSLIBPATH=C:\jdevstudio1013\webservices\lib
>
> set PRJPATH=C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\BusinessService
>
> REMset CLASSPATH=%WSLIBPATH%;%CLASSPATH%
>
> REM set PATH=C:\jdevstudio1013\jdk\bin;%PATH%
>
> REM cd %PRJPATH%\src
>
> java -jar %WSLIBPATH%/wsa.jar -genInterface -output %PRJPATH%/target/classes
> -wsdl %PRJPATH%/src/main/webapp/WEB-INF/wsdl/BusinessService1.wsdl
> -packageName org.delta.services
>
> REM java -jar C:/jdevstudio1013/webservices/lib/wsa.jar -cp
> C:/jdevstudio1013/webservices/lib -genInterface -output ./target/classes
> -wsdl %PRJPATH%/src/main/webapp/WEB-INF/wsdl/BusinessService1.wsdl
> -packageName org.delta.services
>
>
> set /p status=Please hit ENTER to close window
> ---end----
>
> And it generates the files fine.
>
>
>
>
> On 6/7/07, Wayne Fay <wa...@gmail.com> wrote:
> >
> > What happens when you run this manually from the same directory?
> >
> > java "-jar
> > C:/jdevstudio1013/webservices/lib/wsa.jar -cp
> > C:/jdevstudio1013/webservices/lib -genInterface -output
> >
> > C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\BusinessService/target/classes
> > -wsdl C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\Bu
> > sinessService/src/main/webapp/WEB-INF/wsdl/BusinessService1.wsdl
> > -packageName org.delta.services"
> >
> > I would generally suspect that your problem is from the huge string
> > encapsulate in quotes due to the single <argument> tag you've
> > specific, and that you need to break that argument up a bit ie:
> > <arguments>
> > <argument>-jar</argument>
> > <argument>C:/jdevstudio1013/webservices/lib/wsa.jar</argument>
> > <argument>-cp</argument>
> > etc
> >
> > Wayne
> >
> > On 6/7/07, Mick Knutson <mi...@gmail.com> wrote:
> > > Here is my declaration:
> > >
> > >             <plugin>
> > >                 <groupId>org.codehaus.mojo</groupId>
> > >                 <artifactId>exec-maven-plugin</artifactId>
> > >                 <executions>
> > >                     <execution>
> > >                         <phase>generate-sources</phase>
> > >                         <goals>
> > >                             <goal>exec</goal>
> > >                         </goals>
> > >                     </execution>
> > >                 </executions>
> > >                 <configuration>
> > >                     <executable>java</executable>
> > >                     <arguments>
> > >                         <argument>-jar
> > > C:/jdevstudio1013/webservices/lib/wsa.jar -cp
> > > C:/jdevstudio1013/webservices/lib -genInterface -output
> > > ${basedir}/target/classes -wsdl
> > > ${basedir}/src/main/webapp/WEB-INF/wsdl/BusinessService1.wsdl
> > -packageName
> > > org.delta.services</argument>
> > >                         <!--<argument>-packageName org.delta.services
> > > </argument>-->
> > >                         <!-- automatically creates the classpath using
> > all
> > > project dependencies,
> > >                              also adding the project build directory -->
> > >                         <!--<classpath/>-->
> > >                     </arguments>
> > >                 </configuration>
> > >             </plugin>
> > >
> > >
> > >
> > >
> > > And here is the error I keep getting:
> > >
> > > [INFO]
> > > ------------------------------------------------------------------------
> > > [ERROR] BUILD ERROR
> > > [INFO]
> > > ------------------------------------------------------------------------
> > > [INFO] Result of java "-jar C:/jdevstudio1013/webservices/lib/wsa.jar
> > -cp
> > > C:/jdevstudio1013/webservices/lib -genInterface -output
> > > C:\viewstore\esp_lynx_dap
> > > \esp\dap\poc\AOPTest\BusinessService/target/classes -wsdl
> > >
> > C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\BusinessService/src/main/webapp/WEB-INF/wsdl/Busine
> > > ssService1.wsdl -packageName org.delta.services" execution is: '1'.
> > > [INFO]
> > > ------------------------------------------------------------------------
> > > [DEBUG] Trace
> > > org.apache.maven.lifecycle.LifecycleExecutionException: Result of java
> > "-jar
> > > C:/jdevstudio1013/webservices/lib/wsa.jar -cp
> > > C:/jdevstudio1013/webservices/li
> > > b -genInterface -output
> > >
> > C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\BusinessService/target/classes
> > > -wsdl C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\Bu
> > > sinessService/src/main/webapp/WEB-INF/wsdl/BusinessService1.wsdl
> > > -packageName org.delta.services" execution is: '1'.
> > >         at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> > > DefaultLifecycleExecutor.java:564)
> > >         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
> > :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(
> > > 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.MojoExecutionException: Result of
> > java
> > > "-jar C:/jdevstudio1013/webservices/lib/wsa.jar -cp
> > > C:/jdevstudio1013/webservices
> > > /lib -genInterface -output
> > >
> > C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\BusinessService/target/classes
> > > -wsdl C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest
> > > \BusinessService/src/main/webapp/WEB-INF/wsdl/BusinessService1.wsdl
> > > -packageName org.delta.services" execution is: '1'.
> > >         at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:208)
> > >         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
> > > DefaultPluginManager.java:420)
> > >         at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> > > DefaultLifecycleExecutor.java:539)
> > >         ... 16 more
> > >
> > >
> > >
> > > Help would be GREATLY appreciated!
> > >
> > >
> > > --
> > > ---
> > > Thanks,
> > > Mick Knutson
> > >
> > > http://www.baselogic.com
> > > http://www.blincmagazine.com
> > > http://www.djmick.com
> > > http://www.myspace.com/mickknutson
> > > http://www.myspace.com/djmick_dot_com
> > > http://www.myspace.com/sexybeotches
> > > http://www.thumpradio.com
> > > ---
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>
> --
> ---
> Thanks,
> Mick Knutson
>
> http://www.baselogic.com
> http://www.blincmagazine.com
> http://www.djmick.com
> http://www.myspace.com/mickknutson
> http://www.myspace.com/djmick_dot_com
> http://www.myspace.com/sexybeotches
> http://www.thumpradio.com
> ---
>

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


Re: [m2] Error running genInterface for JDeveloper with AntRun

Posted by Mick Knutson <mi...@gmail.com>.
As I hack around this, I started getting the following INFO just before the
error:

[INFO] [exec:exec {execution: default}]
[DEBUG] executable java not found in place, assuming it is in the PATH.
[INFO] Could not create the Java virtual machine.
[INFO] Unrecognized option: -jar C:/jdevstudio1013/webservices/lib/wsa.jar




And I also separated the parameters:

                    <arguments>

<!--<argument>-classpath=C:\jdevstudio1013\webservices\lib</argument>-->

<argument>-jar=C:/jdevstudio1013/webservices/lib/wsa.jar</argument>
                        <argument>-genInterface</argument>
                        <argument>-output
${basedir}\target\classes</argument>
                        <argument>-wsdl
${basedir}\src\main\webapp\WEB-INF\wsdl\BusinessService1.wsdl</argument>
                        <argument>-packageName org.delta.services</argument>




On 6/7/07, Mick Knutson <mi...@gmail.com> wrote:
>
> I put a bat file together in the main DIR that looks like this:
> ---start-----
> REM set
> WSLIBPATH=C:\viewstore\esp_lynx_dap\esp\dap\src\main\resources\maven\repository\com\oracle\lib
> set WSLIBPATH=C:\jdevstudio1013\webservices\lib
>
> set PRJPATH=C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\BusinessService
>
> REMset CLASSPATH=%WSLIBPATH%;%CLASSPATH%
>
> REM set PATH=C:\jdevstudio1013\jdk\bin;%PATH%
>
> REM cd %PRJPATH%\src
>
> java -jar %WSLIBPATH%/wsa.jar -genInterface -output
> %PRJPATH%/target/classes -wsdl
> %PRJPATH%/src/main/webapp/WEB-INF/wsdl/BusinessService1.wsdl -packageName
> org.delta.services
>
> REM java -jar C:/jdevstudio1013/webservices/lib/wsa.jar -cp
> C:/jdevstudio1013/webservices/lib -genInterface -output ./target/classes
> -wsdl %PRJPATH%/src/main/webapp/WEB-INF/wsdl/BusinessService1.wsdl
> -packageName org.delta.services
>
>
> set /p status=Please hit ENTER to close window
> ---end----
>
> And it generates the files fine.
>
>
>
>
> On 6/7/07, Wayne Fay <wa...@gmail.com> wrote:
> >
> > What happens when you run this manually from the same directory?
> >
> > java "-jar
> > C:/jdevstudio1013/webservices/lib/wsa.jar -cp
> > C:/jdevstudio1013/webservices/lib -genInterface -output
> >
> > C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\BusinessService/target/classes
> > -wsdl C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\Bu
> > sinessService/src/main/webapp/WEB-INF/wsdl/BusinessService1.wsdl
> > -packageName org.delta.services"
> >
> > I would generally suspect that your problem is from the huge string
> > encapsulate in quotes due to the single <argument> tag you've
> > specific, and that you need to break that argument up a bit ie:
> > <arguments>
> > <argument>-jar</argument>
> > <argument>C:/jdevstudio1013/webservices/lib/wsa.jar</argument>
> > <argument>-cp</argument>
> > etc
> >
> > Wayne
> >
> > On 6/7/07, Mick Knutson <mi...@gmail.com> wrote:
> > > Here is my declaration:
> > >
> > >             <plugin>
> > >                 <groupId> org.codehaus.mojo</groupId>
> > >                 <artifactId>exec-maven-plugin</artifactId>
> > >                 <executions>
> > >                     <execution>
> > >                         <phase>generate-sources</phase>
> > >                         <goals>
> > >                             <goal>exec</goal>
> > >                         </goals>
> > >                     </execution>
> > >                 </executions>
> > >                 <configuration>
> > >                     <executable>java</executable>
> > >                     <arguments>
> > >                         <argument>-jar
> > > C:/jdevstudio1013/webservices/lib/wsa.jar -cp
> > > C:/jdevstudio1013/webservices/lib -genInterface -output
> > > ${basedir}/target/classes -wsdl
> > > ${basedir}/src/main/webapp/WEB-INF/wsdl/BusinessService1.wsdl
> > -packageName
> > > org.delta.services</argument>
> > >                         <!--<argument>-packageName org.delta.services
> > > </argument>-->
> > >                         <!-- automatically creates the classpath using
> > all
> > > project dependencies,
> > >                              also adding the project build directory
> > -->
> > >                         <!--<classpath/>-->
> > >                     </arguments>
> > >                 </configuration>
> > >             </plugin>
> > >
> > >
> > >
> > >
> > > And here is the error I keep getting:
> > >
> > > [INFO]
> > >
> > ------------------------------------------------------------------------
> > > [ERROR] BUILD ERROR
> > > [INFO]
> > >
> > ------------------------------------------------------------------------
> > > [INFO] Result of java "-jar C:/jdevstudio1013/webservices/lib/wsa.jar
> > -cp
> > > C:/jdevstudio1013/webservices/lib -genInterface -output
> > > C:\viewstore\esp_lynx_dap
> > > \esp\dap\poc\AOPTest\BusinessService/target/classes -wsdl
> > >
> > C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\BusinessService/src/main/webapp/WEB-INF/wsdl/Busine
> > > ssService1.wsdl -packageName org.delta.services" execution is: '1'.
> > > [INFO]
> > >
> > ------------------------------------------------------------------------
> > > [DEBUG] Trace
> > > org.apache.maven.lifecycle.LifecycleExecutionException : Result of
> > java "-jar
> > > C:/jdevstudio1013/webservices/lib/wsa.jar -cp
> > > C:/jdevstudio1013/webservices/li
> > > b -genInterface -output
> > >
> > C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\BusinessService/target/classes
> >
> > > -wsdl C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\Bu
> > > sinessService/src/main/webapp/WEB-INF/wsdl/BusinessService1.wsdl
> > > -packageName org.delta.services" execution is: '1'.
> > >         at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> > > DefaultLifecycleExecutor.java:564)
> > >         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
> > :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(
> > > 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.MojoExecutionException: Result of
> > java
> > > "-jar C:/jdevstudio1013/webservices/lib/wsa.jar -cp
> > > C:/jdevstudio1013/webservices
> > > /lib -genInterface -output
> > >
> > C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\BusinessService/target/classes
> > > -wsdl C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest
> > > \BusinessService/src/main/webapp/WEB-INF/wsdl/BusinessService1.wsdl
> > > -packageName org.delta.services" execution is: '1'.
> > >         at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:208)
> > >         at org.apache.maven.plugin.DefaultPluginManager.executeMojo (
> > > DefaultPluginManager.java:420)
> > >         at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> > > DefaultLifecycleExecutor.java:539)
> > >         ... 16 more
> > >
> > >
> > >
> > > Help would be GREATLY appreciated!
> > >
> > >
> > > --
> > > ---
> > > Thanks,
> > > Mick Knutson
> > >
> > > http://www.baselogic.com
> > > http://www.blincmagazine.com
> > > http://www.djmick.com
> > > http://www.myspace.com/mickknutson
> > > http://www.myspace.com/djmick_dot_com
> > > http://www.myspace.com/sexybeotches
> > > http://www.thumpradio.com
> > > ---
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>
> --
> ---
> Thanks,
> Mick Knutson
>
> http://www.baselogic.com
> http://www.blincmagazine.com
> http://www.djmick.com
> http://www.myspace.com/mickknutson
> http://www.myspace.com/djmick_dot_com
> http://www.myspace.com/sexybeotches
> http://www.thumpradio.com
> ---
>



-- 
---
Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/djmick_dot_com
http://www.myspace.com/sexybeotches
http://www.thumpradio.com
---

Re: [m2] Error running genInterface for JDeveloper with AntRun

Posted by Mick Knutson <mi...@gmail.com>.
I put a bat file together in the main DIR that looks like this:
---start-----
REM set
WSLIBPATH=C:\viewstore\esp_lynx_dap\esp\dap\src\main\resources\maven\repository\com\oracle\lib
set WSLIBPATH=C:\jdevstudio1013\webservices\lib

set PRJPATH=C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\BusinessService

REMset CLASSPATH=%WSLIBPATH%;%CLASSPATH%

REM set PATH=C:\jdevstudio1013\jdk\bin;%PATH%

REM cd %PRJPATH%\src

java -jar %WSLIBPATH%/wsa.jar -genInterface -output %PRJPATH%/target/classes
-wsdl %PRJPATH%/src/main/webapp/WEB-INF/wsdl/BusinessService1.wsdl
-packageName org.delta.services

REM java -jar C:/jdevstudio1013/webservices/lib/wsa.jar -cp
C:/jdevstudio1013/webservices/lib -genInterface -output ./target/classes
-wsdl %PRJPATH%/src/main/webapp/WEB-INF/wsdl/BusinessService1.wsdl
-packageName org.delta.services


set /p status=Please hit ENTER to close window
---end----

And it generates the files fine.




On 6/7/07, Wayne Fay <wa...@gmail.com> wrote:
>
> What happens when you run this manually from the same directory?
>
> java "-jar
> C:/jdevstudio1013/webservices/lib/wsa.jar -cp
> C:/jdevstudio1013/webservices/lib -genInterface -output
>
> C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\BusinessService/target/classes
> -wsdl C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\Bu
> sinessService/src/main/webapp/WEB-INF/wsdl/BusinessService1.wsdl
> -packageName org.delta.services"
>
> I would generally suspect that your problem is from the huge string
> encapsulate in quotes due to the single <argument> tag you've
> specific, and that you need to break that argument up a bit ie:
> <arguments>
> <argument>-jar</argument>
> <argument>C:/jdevstudio1013/webservices/lib/wsa.jar</argument>
> <argument>-cp</argument>
> etc
>
> Wayne
>
> On 6/7/07, Mick Knutson <mi...@gmail.com> wrote:
> > Here is my declaration:
> >
> >             <plugin>
> >                 <groupId>org.codehaus.mojo</groupId>
> >                 <artifactId>exec-maven-plugin</artifactId>
> >                 <executions>
> >                     <execution>
> >                         <phase>generate-sources</phase>
> >                         <goals>
> >                             <goal>exec</goal>
> >                         </goals>
> >                     </execution>
> >                 </executions>
> >                 <configuration>
> >                     <executable>java</executable>
> >                     <arguments>
> >                         <argument>-jar
> > C:/jdevstudio1013/webservices/lib/wsa.jar -cp
> > C:/jdevstudio1013/webservices/lib -genInterface -output
> > ${basedir}/target/classes -wsdl
> > ${basedir}/src/main/webapp/WEB-INF/wsdl/BusinessService1.wsdl
> -packageName
> > org.delta.services</argument>
> >                         <!--<argument>-packageName org.delta.services
> > </argument>-->
> >                         <!-- automatically creates the classpath using
> all
> > project dependencies,
> >                              also adding the project build directory -->
> >                         <!--<classpath/>-->
> >                     </arguments>
> >                 </configuration>
> >             </plugin>
> >
> >
> >
> >
> > And here is the error I keep getting:
> >
> > [INFO]
> > ------------------------------------------------------------------------
> > [ERROR] BUILD ERROR
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Result of java "-jar C:/jdevstudio1013/webservices/lib/wsa.jar
> -cp
> > C:/jdevstudio1013/webservices/lib -genInterface -output
> > C:\viewstore\esp_lynx_dap
> > \esp\dap\poc\AOPTest\BusinessService/target/classes -wsdl
> >
> C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\BusinessService/src/main/webapp/WEB-INF/wsdl/Busine
> > ssService1.wsdl -packageName org.delta.services" execution is: '1'.
> > [INFO]
> > ------------------------------------------------------------------------
> > [DEBUG] Trace
> > org.apache.maven.lifecycle.LifecycleExecutionException: Result of java
> "-jar
> > C:/jdevstudio1013/webservices/lib/wsa.jar -cp
> > C:/jdevstudio1013/webservices/li
> > b -genInterface -output
> >
> C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\BusinessService/target/classes
> > -wsdl C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\Bu
> > sinessService/src/main/webapp/WEB-INF/wsdl/BusinessService1.wsdl
> > -packageName org.delta.services" execution is: '1'.
> >         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> > DefaultLifecycleExecutor.java:564)
> >         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
> :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(
> > 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.MojoExecutionException: Result of
> java
> > "-jar C:/jdevstudio1013/webservices/lib/wsa.jar -cp
> > C:/jdevstudio1013/webservices
> > /lib -genInterface -output
> >
> C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\BusinessService/target/classes
> > -wsdl C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest
> > \BusinessService/src/main/webapp/WEB-INF/wsdl/BusinessService1.wsdl
> > -packageName org.delta.services" execution is: '1'.
> >         at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:208)
> >         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
> > DefaultPluginManager.java:420)
> >         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> > DefaultLifecycleExecutor.java:539)
> >         ... 16 more
> >
> >
> >
> > Help would be GREATLY appreciated!
> >
> >
> > --
> > ---
> > Thanks,
> > Mick Knutson
> >
> > http://www.baselogic.com
> > http://www.blincmagazine.com
> > http://www.djmick.com
> > http://www.myspace.com/mickknutson
> > http://www.myspace.com/djmick_dot_com
> > http://www.myspace.com/sexybeotches
> > http://www.thumpradio.com
> > ---
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
---
Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/djmick_dot_com
http://www.myspace.com/sexybeotches
http://www.thumpradio.com
---

Re: [m2] Error running genInterface for JDeveloper with AntRun

Posted by Wayne Fay <wa...@gmail.com>.
What happens when you run this manually from the same directory?

java "-jar
C:/jdevstudio1013/webservices/lib/wsa.jar -cp
C:/jdevstudio1013/webservices/lib -genInterface -output
C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\BusinessService/target/classes
-wsdl C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\Bu
sinessService/src/main/webapp/WEB-INF/wsdl/BusinessService1.wsdl
-packageName org.delta.services"

I would generally suspect that your problem is from the huge string
encapsulate in quotes due to the single <argument> tag you've
specific, and that you need to break that argument up a bit ie:
<arguments>
<argument>-jar</argument>
<argument>C:/jdevstudio1013/webservices/lib/wsa.jar</argument>
<argument>-cp</argument>
etc

Wayne

On 6/7/07, Mick Knutson <mi...@gmail.com> wrote:
> Here is my declaration:
>
>             <plugin>
>                 <groupId>org.codehaus.mojo</groupId>
>                 <artifactId>exec-maven-plugin</artifactId>
>                 <executions>
>                     <execution>
>                         <phase>generate-sources</phase>
>                         <goals>
>                             <goal>exec</goal>
>                         </goals>
>                     </execution>
>                 </executions>
>                 <configuration>
>                     <executable>java</executable>
>                     <arguments>
>                         <argument>-jar
> C:/jdevstudio1013/webservices/lib/wsa.jar -cp
> C:/jdevstudio1013/webservices/lib -genInterface -output
> ${basedir}/target/classes -wsdl
> ${basedir}/src/main/webapp/WEB-INF/wsdl/BusinessService1.wsdl -packageName
> org.delta.services</argument>
>                         <!--<argument>-packageName org.delta.services
> </argument>-->
>                         <!-- automatically creates the classpath using all
> project dependencies,
>                              also adding the project build directory -->
>                         <!--<classpath/>-->
>                     </arguments>
>                 </configuration>
>             </plugin>
>
>
>
>
> And here is the error I keep getting:
>
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Result of java "-jar C:/jdevstudio1013/webservices/lib/wsa.jar -cp
> C:/jdevstudio1013/webservices/lib -genInterface -output
> C:\viewstore\esp_lynx_dap
> \esp\dap\poc\AOPTest\BusinessService/target/classes -wsdl
> C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\BusinessService/src/main/webapp/WEB-INF/wsdl/Busine
> ssService1.wsdl -packageName org.delta.services" execution is: '1'.
> [INFO]
> ------------------------------------------------------------------------
> [DEBUG] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Result of java "-jar
> C:/jdevstudio1013/webservices/lib/wsa.jar -cp
> C:/jdevstudio1013/webservices/li
> b -genInterface -output
> C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\BusinessService/target/classes
> -wsdl C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\Bu
> sinessService/src/main/webapp/WEB-INF/wsdl/BusinessService1.wsdl
> -packageName org.delta.services" execution is: '1'.
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> DefaultLifecycleExecutor.java:564)
>         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: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(
> 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.MojoExecutionException: Result of java
> "-jar C:/jdevstudio1013/webservices/lib/wsa.jar -cp
> C:/jdevstudio1013/webservices
> /lib -genInterface -output
> C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest\BusinessService/target/classes
> -wsdl C:\viewstore\esp_lynx_dap\esp\dap\poc\AOPTest
> \BusinessService/src/main/webapp/WEB-INF/wsdl/BusinessService1.wsdl
> -packageName org.delta.services" execution is: '1'.
>         at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:208)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
> DefaultPluginManager.java:420)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> DefaultLifecycleExecutor.java:539)
>         ... 16 more
>
>
>
> Help would be GREATLY appreciated!
>
>
> --
> ---
> Thanks,
> Mick Knutson
>
> http://www.baselogic.com
> http://www.blincmagazine.com
> http://www.djmick.com
> http://www.myspace.com/mickknutson
> http://www.myspace.com/djmick_dot_com
> http://www.myspace.com/sexybeotches
> http://www.thumpradio.com
> ---
>

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