Hi all,

We are building a bundle which must access a web service using jaxws,
but we keep hitting a problem.
When we load our bundle dynamically using another bundle we get the
following error:

Exception in thread "Timer-0"
com.sun.xml.internal.ws.model.RuntimeModelerException: runtime modeler
error: Wrapper class nl.prifes.printer.log.Poll is not found. Have you
run APT to generate them?
        at 
com.sun.xml.internal.ws.model.RuntimeModeler.getClass(RuntimeModeler.java:256)
        at 
com.sun.xml.internal.ws.model.RuntimeModeler.processDocWrappedMethod(RuntimeModeler.java:567)
        at 
com.sun.xml.internal.ws.model.RuntimeModeler.processMethod(RuntimeModeler.java:514)
        at 
com.sun.xml.internal.ws.model.RuntimeModeler.processClass(RuntimeModeler.java:341)
        at 
com.sun.xml.internal.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:227)
        at 
com.sun.xml.internal.ws.client.WSServiceDelegate.addSEI(WSServiceDelegate.java:588)
        at 
com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:291)
        at 
com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:274)
        at 
com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:267)
        at javax.xml.ws.Service.getPort(Service.java:92)
        at 
nl.prifes.printer.log.PrifesPrinterService.getPrifesPrinterPort(PrifesPrinterService.java:56)
        at nl.prifes.printer.log.Activator$SendLogTask.run(Activator.java:63)
        at java.util.TimerThread.mainLoop(Timer.java:512)
        at java.util.TimerThread.run(Timer.java:462)

If we put the same code in the master bundle which loads felix and
itself, everything works fine. But to make everything more flexible we
would like to have it in another bundle.

In our pom.xml file, we have:

          <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>jaxws-maven-plugin</artifactId>
                <executions>
                        <execution>
                                <goals>
                                        <goal>wsimport</goal>
                                </goals>
                                <configuration>
                                        <wsdlUrls>

<wsdlUrl>http://localhost:8084/prifesserver/PrifesPrinter?wsdl</wsdlUrl>
                                        </wsdlUrls>
                                        
<packageName>nl.prifes.printer.log</packageName>
                                </configuration>
                        </execution>
                </executions>
      </plugin>

And our java source file contains:

package nl.prifes.printer.log;

....

                PrifesPrinterService serv = new PrifesPrinterService();
                PrifesPrinter pp = serv.getPrifesPrinterPort();
                System.out.println(pp.sendData(1, 1, "Test"));

....

The missing class is present in the .jar file (verified by unzipping it).

We also tried including javax.xml.ws (and others) in our .jar, but
that attempt doesn't work because:

org.osgi.framework.BundleException: Unresolved package in bundle 1:
package; (package=javax.xml.transform)

and:

[WARNING] Warning building bundle
nl.prifes.printer:printerlogbundle:bundle:1.0.0 : Instructions for
Private-Package that are never used: javax\.xml\.transform

We use the maven-bundle-plugin to generate the manifest file.

Hopefully someone can help us.

Thanks,

Stefan

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

Reply via email to