You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Im Dj <js...@googlemail.com> on 2011/04/17 13:00:40 UTC
Configuring JAXWS on Mac OS X
Hello,
I'm currently trying to migrate my windows eclipse dev environment from
Windows 7 to Mac OS X (10.6.7) but I've run into a problem whereby I cannot
get even a simple JAX-WS based WS to produce a wsdl I can connect to in the
Mac environment.
Both environments are set up the same except for the JDK Vendor (Sun vs
Apple). But both are Sun 1.6.0_24. The Windows machine is using a 32 bit JDK
and I'm passing -d32 to the OS X's JVM.
Eclipse Helios / Apache Geronimo 2.2.1
With server logging at debug I can see lines on the windows machine
[JaxWSUtils] and [WSDL4JWrapper] which I do not see on the Mac's log.
Both Geronimo instances were created from the same archive file so I cannot
see where the problem might be coming from. Does anybody know what might be
happening here ?
thanks.
--
View this message in context: http://apache-geronimo.328035.n3.nabble.com/Configuring-JAXWS-on-Mac-OS-X-tp2830489p2830489.html
Sent from the Users mailing list archive at Nabble.com.
Re: Configuring JAXWS on Mac OS X
Posted by Im Dj <js...@googlemail.com>.
OK, this looks like a problem with the Eclipse Plugin on OS X - The compiled
WAR works just fine if I start Geronimo outside of Eclipse. I'll log a bug
report.
--
View this message in context: http://apache-geronimo.328035.n3.nabble.com/Configuring-JAXWS-on-Mac-OS-X-tp2830489p2833873.html
Sent from the Users mailing list archive at Nabble.com.
Re: Configuring JAXWS on Mac OS X
Posted by Im Dj <js...@googlemail.com>.
I've now tested on Fedora 14 x86_64 with Sun 1.6.0_24 and OpenJDK 1.6.0_20
The same project worked flawlessly both times.
--
View this message in context: http://apache-geronimo.328035.n3.nabble.com/Configuring-JAXWS-on-Mac-OS-X-tp2830489p2833797.html
Sent from the Users mailing list archive at Nabble.com.
Re: Configuring JAXWS on Mac OS X
Posted by Im Dj <js...@googlemail.com>.
Hi Daniel, thanks for the suggestion.
I tried it with:
java.vm.info mixed mode
java.vm.name OpenJDK 64-Bit Server VM
java.vm.specification.name Java Virtual Machine Specification
java.vm.specification.vendor Oracle Corporation
java.vm.specification.version 1.7
java.vm.vendor Oracle Corporation
java.vm.version 21.0-b06
Same result I'm afraid: JSP works but no Web Service. No JaxWS messages in
the log (@Debug).
I was wondering if anybody has a similar environment and can confirm whether
they have the same problem?
--
View this message in context: http://apache-geronimo.328035.n3.nabble.com/Configuring-JAXWS-on-Mac-OS-X-tp2830489p2833725.html
Sent from the Users mailing list archive at Nabble.com.
Re: Configuring JAXWS on Mac OS X
Posted by Im Dj <js...@googlemail.com>.
Hi Ivan, this is the puzzling thing; I'm already logging at the DEBUG level
and am not getting anything resembling an error.
I would at least expect to get some sort of dependency or file not found
error but nothing in the geronimo log.
--
View this message in context: http://apache-geronimo.328035.n3.nabble.com/Configuring-JAXWS-on-Mac-OS-X-tp2830489p2833640.html
Sent from the Users mailing list archive at Nabble.com.
Re: Configuring JAXWS on Mac OS X
Posted by Ivan <xh...@gmail.com>.
hmm, whatever the real issue is, if the WSDL is not generated successfully,
there should print some error messages.
Could you please update log leve to DEBUG of the package
org.apache.geronimo.jaxws.wsdl and org.apache.geronimo.jaxws.builder, and
check whether there are some debug info is print on the console.
2011/4/18 dsh <da...@googlemail.com>
> Hi,
>
> you may consider giving OpenJDK 1.7 on OSX a try. At least it comes
> with the tools.jar you are looking for. OpenJDK, if installed, can be
> found under /Library/Java/JavaVirtualMachines/1.7.0.jdk under OSX.
>
> OpenJDK download location: http://code.google.com/p/openjdk-osx-build/
>
> Cheers
> Daniel
>
> On Mon, Apr 18, 2011 at 9:32 AM, Im Dj <js...@googlemail.com> wrote:
> > Hi Ivan, thanks for the reply.
> >
> > I am new to OS X but I believe that a jdk is in use here as its defined
> in
> > Eclipse thus:
> >
> > /System/Library/Java/JavaVirtualMachines/1.6.0.jdk
> >
> > It would seem from the below link that Apple lays out the JDK somewhat
> > differently than Sun and there is no lib/tools.jar. From gooling around I
> > have seen that perhaps creating a symbolic link in lib for tools.jar
> linking
> > to ../Classes/classes.jar might help but this showed no improvement.
> >
> >
> http://developer.apple.com/library/mac/#documentation/Java/Conceptual/Java14Development/02-JavaDevTools/JavaDevTools.html
> > Java Developer Guide for Mac OS X
> >
> > Comparing the logs on Mac vs Windows I see on the Mac:
> >
> > [GBeanSingleReference] Started
> >
> default/cmdb-project/1.0/car?J2EEApplication=null,j2eeType=WebModule,name=default/cmdb-project/1.0/car
> >
> > then it goes straight to:
> >
> > [TomcatContainer] Creating context '/CMDBProject' with docBase
> >
> '/opt/apache/geronimo-tomcat6-javaee5-2.2.1/repository/default/cmdb-project/1.0/cmdb-project-1.0.car/'
> >
> > However on Windows, between these two log entries, there are stacks of
> log
> > lines from other modules (and I've removed some for brevity):
> >
> > MetadataFactoryRegistry --> Axis2ConfigGBean --> Loader --> StAXUtils -->
> > OMSerializableImpl --> Phase --> RepositoryListener -->
> > JAXWSUtils --> WSDL4JWrapper --> BaseWSDLLocator --> WSDLWrapperBasicImpl
> > --> AxisService --> AxisConfiguration --> TomcatContainer -->
> > TomcatWebAppContext.
> >
> >
> > There is no random generated folder in the web applcation's repository
> > folder - only a WAR folder structure and expected supported file and a
> > single jsp I am using to test the application is actually deployed (that
> > works when the app is deployed).
> >
> > Is there anyone out there who is using OS X as their development
> environment
> > who might know what's wrong - I strongly suspect this is to do with
> Apple's
> > JDK ?
> >
> > thanks.
> >
> > --
> > View this message in context:
> http://apache-geronimo.328035.n3.nabble.com/Configuring-JAXWS-on-Mac-OS-X-tp2830489p2833382.html
> > Sent from the Users mailing list archive at Nabble.com.
> >
>
--
Ivan
Re: Configuring JAXWS on Mac OS X
Posted by dsh <da...@googlemail.com>.
Hi,
you may consider giving OpenJDK 1.7 on OSX a try. At least it comes
with the tools.jar you are looking for. OpenJDK, if installed, can be
found under /Library/Java/JavaVirtualMachines/1.7.0.jdk under OSX.
OpenJDK download location: http://code.google.com/p/openjdk-osx-build/
Cheers
Daniel
On Mon, Apr 18, 2011 at 9:32 AM, Im Dj <js...@googlemail.com> wrote:
> Hi Ivan, thanks for the reply.
>
> I am new to OS X but I believe that a jdk is in use here as its defined in
> Eclipse thus:
>
> /System/Library/Java/JavaVirtualMachines/1.6.0.jdk
>
> It would seem from the below link that Apple lays out the JDK somewhat
> differently than Sun and there is no lib/tools.jar. From gooling around I
> have seen that perhaps creating a symbolic link in lib for tools.jar linking
> to ../Classes/classes.jar might help but this showed no improvement.
>
> http://developer.apple.com/library/mac/#documentation/Java/Conceptual/Java14Development/02-JavaDevTools/JavaDevTools.html
> Java Developer Guide for Mac OS X
>
> Comparing the logs on Mac vs Windows I see on the Mac:
>
> [GBeanSingleReference] Started
> default/cmdb-project/1.0/car?J2EEApplication=null,j2eeType=WebModule,name=default/cmdb-project/1.0/car
>
> then it goes straight to:
>
> [TomcatContainer] Creating context '/CMDBProject' with docBase
> '/opt/apache/geronimo-tomcat6-javaee5-2.2.1/repository/default/cmdb-project/1.0/cmdb-project-1.0.car/'
>
> However on Windows, between these two log entries, there are stacks of log
> lines from other modules (and I've removed some for brevity):
>
> MetadataFactoryRegistry --> Axis2ConfigGBean --> Loader --> StAXUtils -->
> OMSerializableImpl --> Phase --> RepositoryListener -->
> JAXWSUtils --> WSDL4JWrapper --> BaseWSDLLocator --> WSDLWrapperBasicImpl
> --> AxisService --> AxisConfiguration --> TomcatContainer -->
> TomcatWebAppContext.
>
>
> There is no random generated folder in the web applcation's repository
> folder - only a WAR folder structure and expected supported file and a
> single jsp I am using to test the application is actually deployed (that
> works when the app is deployed).
>
> Is there anyone out there who is using OS X as their development environment
> who might know what's wrong - I strongly suspect this is to do with Apple's
> JDK ?
>
> thanks.
>
> --
> View this message in context: http://apache-geronimo.328035.n3.nabble.com/Configuring-JAXWS-on-Mac-OS-X-tp2830489p2833382.html
> Sent from the Users mailing list archive at Nabble.com.
>
Re: Configuring JAXWS on Mac OS X
Posted by Im Dj <js...@googlemail.com>.
Hi Ivan, thanks for the reply.
I am new to OS X but I believe that a jdk is in use here as its defined in
Eclipse thus:
/System/Library/Java/JavaVirtualMachines/1.6.0.jdk
It would seem from the below link that Apple lays out the JDK somewhat
differently than Sun and there is no lib/tools.jar. From gooling around I
have seen that perhaps creating a symbolic link in lib for tools.jar linking
to ../Classes/classes.jar might help but this showed no improvement.
http://developer.apple.com/library/mac/#documentation/Java/Conceptual/Java14Development/02-JavaDevTools/JavaDevTools.html
Java Developer Guide for Mac OS X
Comparing the logs on Mac vs Windows I see on the Mac:
[GBeanSingleReference] Started
default/cmdb-project/1.0/car?J2EEApplication=null,j2eeType=WebModule,name=default/cmdb-project/1.0/car
then it goes straight to:
[TomcatContainer] Creating context '/CMDBProject' with docBase
'/opt/apache/geronimo-tomcat6-javaee5-2.2.1/repository/default/cmdb-project/1.0/cmdb-project-1.0.car/'
However on Windows, between these two log entries, there are stacks of log
lines from other modules (and I've removed some for brevity):
MetadataFactoryRegistry --> Axis2ConfigGBean --> Loader --> StAXUtils -->
OMSerializableImpl --> Phase --> RepositoryListener -->
JAXWSUtils --> WSDL4JWrapper --> BaseWSDLLocator --> WSDLWrapperBasicImpl
--> AxisService --> AxisConfiguration --> TomcatContainer -->
TomcatWebAppContext.
There is no random generated folder in the web applcation's repository
folder - only a WAR folder structure and expected supported file and a
single jsp I am using to test the application is actually deployed (that
works when the app is deployed).
Is there anyone out there who is using OS X as their development environment
who might know what's wrong - I strongly suspect this is to do with Apple's
JDK ?
thanks.
--
View this message in context: http://apache-geronimo.328035.n3.nabble.com/Configuring-JAXWS-on-Mac-OS-X-tp2830489p2833382.html
Sent from the Users mailing list archive at Nabble.com.
Re: Configuring JAXWS on Mac OS X
Posted by Ivan <xh...@gmail.com>.
WSDL generation in Geronimo depends on JDK, suppose that you have already
run the Geronimo with a JDK, not JRE.
Another way to check whether the WSDL is generated successfully is to check
the deployed application in the repository folder, those files should be in
a random generated folder in the web application root.
e.g.1828686010\***.wsdl
2011/4/17 Im Dj <js...@googlemail.com>
> Hello,
>
> I'm currently trying to migrate my windows eclipse dev environment from
> Windows 7 to Mac OS X (10.6.7) but I've run into a problem whereby I cannot
> get even a simple JAX-WS based WS to produce a wsdl I can connect to in the
> Mac environment.
>
> Both environments are set up the same except for the JDK Vendor (Sun vs
> Apple). But both are Sun 1.6.0_24. The Windows machine is using a 32 bit
> JDK
> and I'm passing -d32 to the OS X's JVM.
>
> Eclipse Helios / Apache Geronimo 2.2.1
>
> With server logging at debug I can see lines on the windows machine
> [JaxWSUtils] and [WSDL4JWrapper] which I do not see on the Mac's log.
>
> Both Geronimo instances were created from the same archive file so I cannot
> see where the problem might be coming from. Does anybody know what might be
> happening here ?
>
> thanks.
>
> --
> View this message in context:
> http://apache-geronimo.328035.n3.nabble.com/Configuring-JAXWS-on-Mac-OS-X-tp2830489p2830489.html
> Sent from the Users mailing list archive at Nabble.com.
>
--
Ivan