Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [stp-dev] STP service creation

Title: Re: [stp-dev] STP service creation
Adrian,

Did you include
    -Dorg.osgi.framework.bootdelegation=*
In your eclipse.ini file as documented in the getting started document?
    http://wiki.eclipse.org/STP_Service_Creation_getting_started

Its pretty easy in Windows and Linux, but on Mac OsX its done a bit differently.

Hope this helps, I thought I had it set for a couple of weeks and kept getting this error. Works great now.

 - Richard



From: Adrian Mos <adrian.mos@xxxxxxxx>
Reply-To: STP Dev list <stp-dev@xxxxxxxxxxx>
Date: Sun, 19 Aug 2007 23:37:40 +0200
To: STP Dev list <stp-dev@xxxxxxxxxxx>
Subject: Re: [stp-dev] STP service creation

Hi Guys,

Just on the same topic, on running the service creation tutorial, I have installed the same environment as Chadra (Eclipse 3.3 and the stp-all-in-one bundle - the version that Chadra used as well as the most recent integration build) and I could not get the plugin to generate the artefacts (WSDL and the other classes). Looking into the Eclipse .log file, I found this error (see below) occurred when the generation was attempted. I have correctly configure the CXF path in the Eclipse preferences under the JAX-WS runtime path to the root of the CXF binary distribution.

Any help appreciated. 

Thank you,
Adrian.

 
!ENTRY org.eclipse.stp.common 4 0 2007-08-19 23:28:24.969
!MESSAGE Celtix Java To Wsdl Generation failure
!STACK 0
java.lang.LinkageError: loader constraints violated when linking javax/xml/namespace/QName class
        at com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl.<clinit>(RuntimeBuiltinLeafInfoImpl.java:186)
        at com.sun.xml.bind.v2.model.impl.RuntimeTypeInfoSetImpl.<init>(RuntimeTypeInfoSetImpl.java:25)
        at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.createTypeInfoSet(RuntimeModelBuilder.java:84)
        at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.createTypeInfoSet(RuntimeModelBuilder.java:41)
        at com.sun.xml.bind.v2.model.impl.ModelBuilder.<init>(ModelBuilder.java:104)
        at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.<init>(RuntimeModelBuilder.java:49)
        at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:372)
        at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:236)
        at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:76)
        at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:55)
        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 javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:210)
        at javax.xml.bind.ContextFinder.find(ContextFinder.java:366)
        at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574)
        at org.apache.cxf.jaxb.JAXBDataBinding.createJAXBContext(JAXBDataBinding.java:332)
        at org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:172)
        at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:222)
        at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:250)
        at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:138)
        at org.apache.cxf.frontend.AbstractEndpointFactory.createEndpoint(AbstractEndpointFactory.java:81)
        at org.apache.cxf.frontend.AbstractServiceFactory.createService(AbstractServiceFactory.java:29)
        at org.apache.cxf.tools.java2wsdl.processor.JavaToProcessor.process(JavaToProcessor.java:87)
        at org.eclipse.stp.sc.cxf.generators.CeltixJavaToWsdlGenerator.run(CeltixJavaToWsdlGenerator.java:102)
        at org.eclipse.stp.sc.jaxws.builders.ScJavaToWsdlBuilder.generate(ScJavaToWsdlBuilder.java:85)
        at org.eclipse.stp.sc.jaxws.builders.ScJavaToWsdlBuilder.buildOneJavaFile(ScJavaToWsdlBuilder.java:57)
        at org.eclipse.stp.sc.common.builders.ScJavaBuilder.visitResourceFile(ScJavaBuilder.java:127)
        at org.eclipse.stp.sc.common.builders.ScJavaBuilder.access$0(ScJavaBuilder.java:112)
        at org.eclipse.stp.sc.common.builders.ScJavaBuilder$ScBuildVisitor.visit(ScJavaBuilder.java:174)
        at org.eclipse.core.internal.resources.Resource$2.visit(Resource.java:105)
        at org.eclipse.core.internal.resources.Resource$1.visitElement(Resource.java:57)
        at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:81)
        at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
        at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
        at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
        at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
        at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
        at org.eclipse.core.internal.watson.ElementTreeIterator.iterate(ElementTreeIterator.java:126)
        at org.eclipse.core.internal.resources.Resource.accept(Resource.java:67)
        at org.eclipse.core.internal.resources.Resource.accept(Resource.java:103)
        at org.eclipse.core.internal.resources.Resource.accept(Resource.java:87)
        at org.eclipse.stp.sc.common.builders.ScJavaBuilder.fullBuild(ScJavaBuilder.java:75)
        at org.eclipse.stp.sc.common.builders.ScJavaBuilder.build(ScJavaBuilder.java:52)
        at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:624)
        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
        at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:166)
        at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:197)
        at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:246)
        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
        at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:249)
        at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:302)
        at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:334)
        at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:137)
        at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:235)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)


 

On Aug 13, 2007, at 5:22 PM, jain.chandra@xxxxxxxxx wrote:

Hi Adrian, Denny,

    I was able to run through an end to end scenario.  In the preferences for Apache CXF,  I was incorrectly pointing to "Apache CXF plugin for JAX-WS development" rather than Apache CXF JAX-WS runtime.

    Thanks a lot for your inputs.

regards,
chandra

 <http://people.apache.org/repo/m2-snapshot-repository/org/apache/cxf/apache-cxf/2.1-incubator-SNAPSHOT/apache-cxf-2.1-incubator-20070729.204751-4.zip>
----- Original Message ----
From: Adrian Skehill <adrian.skehill@xxxxxxxx>
To: STP Dev list <stp-dev@xxxxxxxxxxx>
Sent: Monday, August 13, 2007 3:47:10 PM
Subject: Re: [stp-dev] STP service creation

Hi,



<snip>





>         I noticed that when i create a new JAX-WS Web Service project it

>     gives a warning dialog " You must specify a valid installation

>     location for your selected runtime provider in JAX-WS preferences"

>

>         I have specified 'org.apache.cxf_2.1-incubator-SNAPSHOT" in the

>     preferences for Apache CXF.   The resulting project shows Java

>     Nature ( icon for project has a J) and not a SOA Tools Nature.

>

>         Are there any known issues with this.  I would like to debug

>     this and understand the problem.  What is the cvs repository

>     location from which i can download the code and start debugging this.



In addition to having the plugin loaded into your eclipse environment, you

will need an actual copy of the runtime you intend to deploy onto installed.

IN this case you'll need to install CXF from [1]. Then set your preferences to

point to the root of the install.



The plugin that you install into eclipse provides the STP with access to the

various generators that we need to execute during the process of creating SOA

Services. The kit install is for the compilation and subsequent development of

your SOA Services.



Regards,

Adrian.





[1] http://incubator.apache.org/cxf/download.html

----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland


       

Park yourself in front of a world of choices in alternative vehicles.
Visit the Yahoo! Auto Green Center. <http://us.rd.yahoo.com/evt=48246/*http://autos.yahoo.com/green_center/;_ylc=X3oDMTE5cDF2bXZzBF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDZ3JlZW4tY2VudGVy>
_______________________________________________
stp-dev mailing list
stp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/stp-dev
 



_______________________________________________
stp-dev mailing list
stp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/stp-dev

Back to the top