Re: maven2 and jboss wsconsume -- examples?

2007-12-20 Thread jsolderitsch



jsolderitsch wrote:
 
 
 jsolderitsch wrote:
 
 I am looking for some directions, or some example pom text, to show how
 the jboss wsconsume operation can be integrated into a maven2 workflow.
 
 wsconsume will generate Java code based on a wsdl spec. For example, one
 of our developers uses the following in a Windows bat file to execute
 this step:
 
 set JBOSS_HOME=C:\jboss-4.2.2.GA
 %JBOSS_HOME%\bin\wsconsume -v -k -p com.gestalt.sgs.sgsdif -w
 WEB-INF/wsdl/uob.wsdl -s src/main/java -o target/classes
 src/main/webapp/WEB-INF/wsdl/uob.wsdl
 
 I am looking for an example of how to wrap this (or the equivalent
 ant-based method) into the pom as part of the ear generation workflow.
 
 I did some searching on this forum and didn't find anything directly
 relevant.
 
 I hope this is easy and I am just ignorant of some maven basics.
 
 
 
 
 Related to this -- what is the relationship of wsimport to wsconsume?
 
 There is a JAXWS maven plugin that has wsimport support:
 
 https://jax-ws-commons.dev.java.net/jaxws-maven-plugin/usage.html
 
 Anyone have experience comparing say what JBoss' wsconsume tool does vs.
 wsimport?
 
 

OK, now things are getting weird.

I am trying to run the jaxws maven plugin that I found at the above site.

I get Bad version number in .class file errors as documented at:

http://forums.java.net/jive/thread.jspa?threadID=34567tstart=0

I have a wsdl file that works with wsconsume that I moved into the right
directory structure (I thought) for wsimport.

Update

a colleague informs me that setting a specific version for the plugin (1.8)
makes this error go away

But this might be useful info for some of us

-- 
View this message in context: 
http://www.nabble.com/maven2-and-jboss-wsconsumeexamples--tp14421784s177p14438454.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



maven2 and jboss wsconsume -- examples?

2007-12-19 Thread jsolderitsch

I am looking for some directions, or some example pom text, to show how the
jboss wsconsume operation can be integrated into a maven2 workflow.

wsconsume will generate Java code based on a wsdl spec. For example, one of
our developers uses the following in a Windows bat file to execute this
step:

set JBOSS_HOME=C:\jboss-4.2.2.GA
%JBOSS_HOME%\bin\wsconsume -v -k -p com.gestalt.sgs.sgsdif -w
WEB-INF/wsdl/uob.wsdl -s src/main/java -o target/classes
src/main/webapp/WEB-INF/wsdl/uob.wsdl

I am looking for an example of how to wrap this (or the equivalent ant-based
method) into the pom as part of the ear generation workflow.

I did some searching on this forum and didn't find anything directly
relevant.

I hope this is easy and I am just ignorant of some maven basics.


-- 
View this message in context: 
http://www.nabble.com/maven2-and-jboss-wsconsumeexamples--tp14421784s177p14421784.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: maven2 and jboss wsconsume -- examples?

2007-12-19 Thread jsolderitsch


jsolderitsch wrote:
 
 I am looking for some directions, or some example pom text, to show how
 the jboss wsconsume operation can be integrated into a maven2 workflow.
 
 wsconsume will generate Java code based on a wsdl spec. For example, one
 of our developers uses the following in a Windows bat file to execute this
 step:
 
 set JBOSS_HOME=C:\jboss-4.2.2.GA
 %JBOSS_HOME%\bin\wsconsume -v -k -p com.gestalt.sgs.sgsdif -w
 WEB-INF/wsdl/uob.wsdl -s src/main/java -o target/classes
 src/main/webapp/WEB-INF/wsdl/uob.wsdl
 
 I am looking for an example of how to wrap this (or the equivalent
 ant-based method) into the pom as part of the ear generation workflow.
 
 I did some searching on this forum and didn't find anything directly
 relevant.
 
 I hope this is easy and I am just ignorant of some maven basics.
 
 
 

Related to this -- what is the relationship of wsimport to wsconsume?

There is a JAXWS maven plugin that has wsimport support:

https://jax-ws-commons.dev.java.net/jaxws-maven-plugin/usage.html

Anyone have experience comparing say what JBoss' wsconsume tool does vs.
wsimport?

-- 
View this message in context: 
http://www.nabble.com/maven2-and-jboss-wsconsumeexamples--tp14421784s177p14426652.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



JAX-WS plugin apt NoClassDefFound error

2007-03-13 Thread jsolderitsch

I am trying to use the latest snapshot of the JAX-WS plugin.

I have it working on Mac OS X.

I have a fresh install of maven and my project on a Windows XP box.

When I kick off the install goal, it chugs along for awhile and then I see:

[INFO]

[ERROR] FATAL ERROR
[INFO]

[INFO] com/sun/mirror/apt/AnnotationProcessorFactory
[INFO]

[INFO] Trace
java.lang.NoClassDefFoundError:
com/sun/mirror/apt/AnnotationProcessorFactory
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)

ETC.

I must be missing a dependency -- what is it?

Jim
-- 
View this message in context: 
http://www.nabble.com/JAX-WS-plugin-apt-NoClassDefFound-error-tf3396095s177.html#a9454976
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [m2] JAX-WS plugin apt NoClassDefFound error

2007-03-13 Thread jsolderitsch

OK -- I have a workaround -- it has to do with an unfortunate tools.jar
dependency that used to be in the POM for the JAX-WS plugin, that Dan, the
plugin maintainer, recently removed to address a concern that us Mac OS X
users had regarding the complete absence of this jar in the Mac JDK.

I added the dependency:

dependency
groupIdcom.sun/groupId
artifactIdtools/artifactId
scopesystem/scope
version1.5/version
systemPath${java.home}/../lib/tools.jar/systemPath
/dependency

to the POM for the plugin and now the build completes.

But this entry is platform specific (will not work for OS X users). I do not
needed the dependency on the Mac platform and if it is there, Mac builds
will fail.

What to do?

Jim


jsolderitsch wrote:
 
 I am trying to use the latest snapshot of the JAX-WS plugin.
 
 I have it working on Mac OS X.
 
 I have a fresh install of maven and my project on a Windows XP box.
 
 When I kick off the install goal, it chugs along for awhile and then I
 see:
 
 [INFO]
 
 [ERROR] FATAL ERROR
 [INFO]
 
 [INFO] com/sun/mirror/apt/AnnotationProcessorFactory
 [INFO]
 
 [INFO] Trace
 java.lang.NoClassDefFoundError:
 com/sun/mirror/apt/AnnotationProcessorFactory
 at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
 at
 java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
 
 ETC.
 
 I must be missing a dependency -- what is it?
 
 Jim
 

-- 
View this message in context: 
http://www.nabble.com/JAX-WS-plugin-apt-NoClassDefFound-error-tf3396095s177.html#a9455609
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [m2] JAX-WS plugin apt NoClassDefFound error

2007-03-13 Thread jsolderitsch

Thanks.

Turns out that in my project POM file, if I add a dependenciesdependency
section right below the version tag for the plugin and place the tools.jar
dependency there, I don't need to modify the POM for the plugin.

I had tried this before but placed the added dependencies section AFTER the
executions section and this didn't work for me. Adding the dependency
BEFORE the executions section however does work.

Jim


dan tran wrote:
 
 use maven profile
 
 http://maven.apache.org/guides/introduction/introduction-to-profiles.html
 -D
 
 

-- 
View this message in context: 
http://www.nabble.com/JAX-WS-plugin-apt-NoClassDefFound-error-tf3396095s177.html#a9459700
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [m2] Tools.jar Apple

2007-03-09 Thread jsolderitsch

Just want to say that I too fixed the issue by updating the same section of
the plugin's pom.

I first tried making a dependency entry in my project pom for the plugin
using the exact same syntax and this did NOT work. I had to chance the
dependency in the plugin like Ryan describes.

Hopefully a newer build of the plugin will fix this behavior and allow me to
override the tools.jar location at the project level.

Jim


dan tran wrote:
 
 From the source, jaxws-maven-plugin should should pickup your classes.jar
 if
 you have it as your denpendecy.
 
 Also, and latest source and snapshot seems to be out of sync, could you
 fetch the source and build it and test it
 with your build.
 
 -D
 
 
 On 3/8/07, Ryan Cuprak [EMAIL PROTECTED] wrote:


 The only change to a plugin (plugin itself) that I made was to
 jaxws-maven-plugin-1.0-beta-1-SNAPSHOT.pom and the sun.jdk section now
 looks like:

 dependency
  groupIdsun.jdk/groupId
  artifactIdtools/artifactId
  version1.5.0/version
  scopesystem/scope

 systemPath/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Classes/classes.jar/systemPath
/dependency

 Specifying this as the dependency for the plugin in my pom file didn't
 work.

 Haven't figured out a non-hack approach yet.

 -Ryan


 On Thursday, March 08, 2007, at 08:45PM, Dan Tran [EMAIL PROTECTED]
 wrote:
 also, what did you change in the plugin's pom?  If it is valid, i will
 fix
 the plugin
 
 -D
 
 
 On 3/8/07, Dan Tran [EMAIL PROTECTED] wrote:
 
  Ryan, I should have said this out loud early so you dont have to go
 thru
  this
 
  any way, if maven folk willing to fix
 
  http://jira.codehaus.org/browse/MEV-498
 
  an all will be okie
 
  -Dan
 
 
   On 3/8/07, Ryan Cuprak [EMAIL PROTECTED] wrote:
  
   Hello,
  
   Got my jaxws stuff working!
  
   Added the repository:
   repository
  id java.net/id
  url
 https://maven-repository.dev.java.net/nonav/repository
   /url
  layoutlegacy/layout
  /repository
   (deleted entries javax entries and .m2 and re-downloaded - only had
 to
   download the jsr 181 jar separately. - think I installed the wrong
 jar
   previously)
  
   and the dependency (for webservice annotations):
  dependency
  groupIdjavax.jws/groupId
  artifactIdjsr181-api/artifactId
  version1.0-MR1/version
  scopecompile/scope
  /dependency
  
   That seemed to do the trick.
  
   Also, kinda wondering if mvnrepository.com indexes the
 java.netstuff.
  
   -Ryan
  
   On Thursday, March 08, 2007, at 12:17PM, Ryan Cuprak 
 [EMAIL PROTECTED]
   wrote:
   
 Any chance you could send me your pom.xml file? I am a little
   baffled why the JAXWS plugin is failing on what appears to be a
   classpath issue with the annotations.
   
 How did using a legacy repository affect things?
   
 Thanks,
 -Ryan
   
   On Mar 8, 2007, at 3:08 PM, jsolderitsch wrote:
   
   
Yes -- I found two plug-in poms in my .m2 -- this one and
jaxws-maven-plugin-1.0-beta-1-20070203.171044-8.pom
   
I changed the latter one first and that didn't help and then I
changed the
one you mentioned and I was past the tools.jar block.
   
And I was able to build a deployable war file based on a pojo
 with
some
JAX-WS annotations.
   
I did need to use the legacy repository:
https://maven-repository.dev.java.net/nonav/repository and this
seemed to
let me compile all the way. At one point I did also do a mvn
install:file
for the jar jaxws-rt.jar that I got from the nightly JAX-WS 2.1
build. But
this was before I switched to the legacy repo from
https://maven2-repository.dev.java.net/nonav/repository which is
supposedly
the preferred one.
   
Good luck.
   
Jim
   
   
Ryan Cuprak wrote:
   
   
I edited:
/Users/username/.m2/repository/org/codehaus/mojo/jaxws-maven-
plugin/
1.0-beta-1-SNAPSHOT/jaxws-maven-plugin-1.0-beta-1-SNAPSHOT.pom
   
  However, I hit another roadblock once I got past that problem.
 The
plugin can't find the class file for the Webservice annotation
 tag.
Plan to download the source and tinker with it later today.
   
  -Ryan
   
On Mar 8, 2007, at 1:43 PM, jsolderitsch wrote:
   
   
Question -- Which pom file under .m2?
   
I find myself in exactly the same situation and error condition
trying to
use the jax-ws plug-in on Mac OS X?
   
Ryan Cuprak wrote:
   
   
  Managed to get around the problem. I edited the pom file
under .m2
to point directly at the classes.jar file on MacOS X. A bit of
 a
hack
but it worked.
   
  -Ryan
   
On Mar 6, 2007, at 2:37 PM, Ryan Cuprak wrote:
   
   
The error message is:
Missing:
--
1) sun.jdk:tools:jar:1.5.0
   
  Try downloading the file manually from the project website.
   
  Then, install it using the command

Re: [m2] Tools.jar Apple

2007-03-09 Thread jsolderitsch

Not yet -- I confess I am new to maven and trying to build and use a plugin
is not something I know how to do, although it may be easy.

I presume I use svn to get the code from where?

And then I use mvn to build?

But then how do I arrange to use my own build to run the plugin from my
project location.

If there is a reference I can go to that covers this, I will be glad to read
and follow it.

Thanks

Jim


dan tran wrote:
 
 did you try to build the plugin from source and test with your project?
 
 -D
 
 

-- 
View this message in context: 
http://www.nabble.com/Tools.jar---Apple-tf3357700s177.html#a9396114
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [m2] Tools.jar Apple

2007-03-09 Thread jsolderitsch

Yes! I built the plugin from source -- the POM no longer expresses a
dependency on tools.jar -- and using the plugin, I do NOT have to do
anything special for Max OS X support.

My project builds without any special considerations.

Thanks for the tutorial and advice.

Jim


dan tran wrote:
 
 checkout the source from
 http://svn.codehaus.org/mojo/trunk/mojo/mojo-sandbox/jaxws-maven-plugin
 
 then run
 
   mvn install
 
 your project will automatically pickup this plugin build, rather than the
 old binary at codehaus snapshot
 
 -D
 

 dan tran wrote:
 
  did you try to build the plugin from source and test with your project?
 
  -D
 
 

 --
 View this message in context:
 http://www.nabble.com/Tools.jar---Apple-tf3357700s177.html#a9396114
 Sent from the Maven - Users mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
 

-- 
View this message in context: 
http://www.nabble.com/Tools.jar---Apple-tf3357700s177.html#a9400099
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [m2] Tools.jar Apple

2007-03-08 Thread jsolderitsch

Question -- Which pom file under .m2?

I find myself in exactly the same situation and error condition trying to
use the jax-ws plug-in on Mac OS X?

Ryan Cuprak wrote:
 
 
   Managed to get around the problem. I edited the pom file under .m2  
 to point directly at the classes.jar file on MacOS X. A bit of a hack  
 but it worked.
 
   -Ryan
 
 On Mar 6, 2007, at 2:37 PM, Ryan Cuprak wrote:
 

 The error message is:
 Missing:
 --
 1) sun.jdk:tools:jar:1.5.0

   Try downloading the file manually from the project website.

   Then, install it using the command:
   mvn install:install-file -DgroupId=sun.jdk -DartifactId=tools \
   -Dversion=1.5.0 -Dpackaging=jar -Dfile=/path/to/file

   Path to dependency:
 1) org.codehaus.mojo:jaxws-maven-plugin:maven-plugin:1.0- 
 beta-1-20070203.171044-8
 2) sun.jdk:tools:jar:1.5.0


  On the mac, the classes that comprise the tools are located in:
  /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Classes/ 
 classes.jar
  Googling I come across postings where it is recommend that I alter  
 the systempath to point to classes.jar.

  -Ryan

 On Mar 6, 2007, at 2:30 PM, Dan Tran wrote:

 jaxws is capable of automatically pickup tools.jar from
 ${java.home}/lib/tools.jar
 ( MacOS specific)

 What is the error?

 you may need to get the latest source and build your self.


 -D


 On 3/6/07, Ryan Cuprak [EMAIL PROTECTED] wrote:

 Hello,
 I am trying to get the jaxws-maven-plugin up and running on my
 box. Evidently Apple has been kind enough to stick tools.jar  
 elsewhere.

 Any reason why the snippet below wouldn't work?

 -Ryan

 Snippet:

 plugins
 plugin
 groupIdorg.codehaus.mojo/groupId
 artifactIdjaxws-maven-plugin/artifactId
 version1.0-beta-1-SNAPSHOT/version
 executions
 execution
 goals
 goalwsgen/goal
 /goals
 /execution
 /executions
 configuration
 seinet.cuprak.ryanportal/sei
 genWsdltrue/genWsdl

 /configuration
 dependencies
 dependency
 groupIdsun.jdk/groupId
 artifactIdtools/artifactId
 version1.5.0/version
 systemPath/System/Library/Frameworks/
 JavaVM.framework/Versions/1.5/Classes/classes.jar/systemPath
 scopesystem/scope
 /dependency
 /dependencies
 /plugin

 /plugins

  
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Tools.jar---Apple-tf3357700s177.html#a9378680
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [m2] Tools.jar Apple

2007-03-08 Thread jsolderitsch

Yes -- I found two plug-in poms in my .m2 -- this one and
jaxws-maven-plugin-1.0-beta-1-20070203.171044-8.pom

I changed the latter one first and that didn't help and then I changed the
one you mentioned and I was past the tools.jar block.

And I was able to build a deployable war file based on a pojo with some
JAX-WS annotations.

I did need to use the legacy repository:
https://maven-repository.dev.java.net/nonav/repository and this seemed to
let me compile all the way. At one point I did also do a mvn install:file
for the jar jaxws-rt.jar that I got from the nightly JAX-WS 2.1 build. But
this was before I switched to the legacy repo from
https://maven2-repository.dev.java.net/nonav/repository which is supposedly
the preferred one.

Good luck.

Jim


Ryan Cuprak wrote:
 
 
 I edited:
 /Users/username/.m2/repository/org/codehaus/mojo/jaxws-maven-plugin/ 
 1.0-beta-1-SNAPSHOT/jaxws-maven-plugin-1.0-beta-1-SNAPSHOT.pom
 
   However, I hit another roadblock once I got past that problem. The  
 plugin can't find the class file for the Webservice annotation tag.  
 Plan to download the source and tinker with it later today.
 
   -Ryan
 
 On Mar 8, 2007, at 1:43 PM, jsolderitsch wrote:
 

 Question -- Which pom file under .m2?

 I find myself in exactly the same situation and error condition  
 trying to
 use the jax-ws plug-in on Mac OS X?

 Ryan Cuprak wrote:


   Managed to get around the problem. I edited the pom file under .m2
 to point directly at the classes.jar file on MacOS X. A bit of a hack
 but it worked.

   -Ryan

 On Mar 6, 2007, at 2:37 PM, Ryan Cuprak wrote:


 The error message is:
 Missing:
 --
 1) sun.jdk:tools:jar:1.5.0

   Try downloading the file manually from the project website.

   Then, install it using the command:
   mvn install:install-file -DgroupId=sun.jdk - 
 DartifactId=tools \
   -Dversion=1.5.0 -Dpackaging=jar -Dfile=/path/to/file

   Path to dependency:
 1) org.codehaus.mojo:jaxws-maven-plugin:maven-plugin:1.0-
 beta-1-20070203.171044-8
 2) sun.jdk:tools:jar:1.5.0


  On the mac, the classes that comprise the tools are located in:
  /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Classes/
 classes.jar
  Googling I come across postings where it is recommend that I alter
 the systempath to point to classes.jar.

  -Ryan

 On Mar 6, 2007, at 2:30 PM, Dan Tran wrote:

 jaxws is capable of automatically pickup tools.jar from
 ${java.home}/lib/tools.jar
 ( MacOS specific)

 What is the error?

 you may need to get the latest source and build your self.


 -D


 On 3/6/07, Ryan Cuprak [EMAIL PROTECTED] wrote:

 Hello,
 I am trying to get the jaxws-maven-plugin up and running on my
 box. Evidently Apple has been kind enough to stick tools.jar
 elsewhere.

 Any reason why the snippet below wouldn't work?

 -Ryan

 Snippet:

 plugins
 plugin
 groupIdorg.codehaus.mojo/groupId
 artifactIdjaxws-maven-plugin/artifactId
 version1.0-beta-1-SNAPSHOT/version
 executions
 execution
 goals
 goalwsgen/goal
 /goals
 /execution
 /executions
 configuration
 seinet.cuprak.ryanportal/sei
 genWsdltrue/genWsdl

 /configuration
 dependencies
 dependency
 groupIdsun.jdk/groupId
 artifactIdtools/artifactId
 version1.5.0/version
 systemPath/System/Library/Frameworks/
 JavaVM.framework/Versions/1.5/Classes/classes.jar/systemPath
 scopesystem/scope
 /dependency
 /dependencies
 /plugin

 /plugins

 -- 
 --
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




  
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 -- 
 View this message in context: http://www.nabble.com/Tools.jar--- 
 Apple-tf3357700s177.html#a9378680
 Sent from the Maven - Users mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Tools.jar