Skip to main content

problem with exception

9 replies [Last post]
brianpdoyle
Offline
Joined: 2005-05-01

One of my web methods on my web service class throws an exception. When I run apt on the class the appropriate com.company.blah.POISearchExceptionBean is created. When I go to deploy the web service an exception is thrown saying it cannot find the class: com.company.someother.package.POISearchExceptionBean. For some reason it appears to be looking for the exception in a different package structure than where the ExceptionBean was created with apt. I get a similar error when I run wsgen on the web service class to generate a wsdl. Any ideas what I'm doing wrong? Thanks!

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
brianpdoyle
Offline
Joined: 2005-05-01

Is there an ETA when this new version of JAX-WS will be coming out that fixes the bug with throwing exceptions from the web service? You mentioned a new version coming out about two weeks ago. Thanks.

kohlert
Offline
Joined: 2003-06-16

Brian,
Sorry about the delay but we have been doing a little re-architecting and the workspace has not been stable. I hope a weekly build will come out today or tomorrow.

Thank you for your patience

brianpdoyle
Offline
Joined: 2005-05-01

I've downloaded the latest early access edition to see if the exception throwing issue has been corrected, but this version now requires you to have a Sun Java Application server if you have any endpoints. Is this going to be a requirement going forward or is it just for this release?

Also if I'm reading this correctly, it appears that the bug isn't fixed:

Known Bugs/Issues
* Checked exception is not wrapped correctly in ExecutionException for async clients in for proxy port.

brianpdoyle
Offline
Joined: 2005-05-01

Sorry, one clarification there. When I deploy or run wsgen it complains that it can't find:

com.localmatters.hermes.service.poi.telcontar.jaxws.POIExceptionBean

kohlert
Offline
Joined: 2003-06-16

Brian,
I believe you found a bug. It should be fixed in the next weekly drop of JAX-WS that should be coming out later this week. It can be downloaded from: https://jax-rpc.dev.java.net/binaryDrops.html

brianpdoyle
Offline
Joined: 2005-05-01

Sorry for the newbie question, but I went to download the latest JAXRPC_SI.class, which was new as of yesterday, the readme file indicates to move the jaxrpc-impl.jar from the lib directory to your jwsdp-home. The problem is I don't have a jaxrpc-impl.jar in my current jwsdp-home. Here is what I have:

jaxb-api.jar
jaxb-libs.jar
jaxws-api.jar
jaxws-tools.jar
jsr181-api.jar
jaxb-impl.jar
jaxb-xjc.jar
jaxws-rt.jar
jsr173_api.jar

Thanks.

kohlert
Offline
Joined: 2003-06-16

Brian,
That page contains both JAX-RPC and JAX-WS. You downloaded
the JAX-RPC one. The JAX-WS one has not been updated yet.
It probably won't be updated until sometime next week as we are in the middle of changing some code. I am sorry for the inconvenience.

brianpdoyle
Offline
Joined: 2005-05-01

I'm using EA2. It is being generated into

com.localmatters.hermes.server.web.ws.jaxws.POIExceptionBean

The real exception lives in:

com.localmatters.hermes.service.poi.telcontar.POIException

When I deploy into tomcat or run the wsgen it complains that it can't find:

com.localmatters.hermes.service.poi.telcontar.POIExceptionBean

kohlert
Offline
Joined: 2003-06-16

Are you using EA1 or EA2? What is the exact package that the bean is being generated into?