This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 108598 - NB 6.0 (M9)/WLS 10 - Web Service Deploy Error: java.lang.ClassCastException
Summary: NB 6.0 (M9)/WLS 10 - Web Service Deploy Error: java.lang.ClassCastException
Status: RESOLVED DUPLICATE of bug 125499
Alias: None
Product: serverplugins
Classification: Unclassified
Component: WebLogic (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-02 02:26 UTC by jimnicolson
Modified: 2008-01-17 17:20 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
WLS 10 Log on attempting to deploy test web service (14.12 KB, application/octet-stream)
2007-07-02 23:52 UTC, jimnicolson
Details
Test Web Service Java Source (622 bytes, application/octet-stream)
2007-07-02 23:58 UTC, jimnicolson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jimnicolson 2007-07-02 02:26:27 UTC
Netbeans 6.0 M9/WLS 10GA

The Add Server dialog implies Weblogic 10 is a supported version in the wizard dialog message regarding the selection 
of a WLS Installation directory.

It is possible to add a WLS 10 GA server, start, view log. stop.

Generating a basic EchoString WebService (no other dependancies) builkds ok but attempting to deploy it fails with the 
following error.

init:
deps-jar:
compile:
library-inclusion-in-archive:
dist:
pre-run-deploy:
Distributing D:\DevEnvironments\tateam\Projects\J2EE\JEE5_SDK\nrw-service-common-wls10\dist\nrw-service-common-
wls10.jar to [ReliableWseeSAFAgent/SAF agent]
Deploying D:\DevEnvironments\tateam\Projects\J2EE\JEE5_SDK\nrw-service-common-wls10\dist\nrw-service-common-wls10.jar
Applicaton Deployed
java.lang.ClassCastException: org.netbeans.modules.j2ee.weblogic9.WLTargetModuleID
post-run-deploy:
run-deploy:
run:
BUILD SUCCESSFUL (total time: 3 seconds)
Comment 1 Sherold Dev 2007-07-02 12:50:59 UTC
Even though there is the ClassCastException, based on the log it looks like the application was deployed successfully.
Can you please check whether it was deployed successfully or not?
Comment 2 jimnicolson 2007-07-02 23:50:18 UTC
Yes and no :)

Some additional facts below:

1.Descriptor namespace version is incorrect 
<weblogic-ejb-jar xmlns="http://www.bea.com/ns/weblogic/90"/>
Descriptor is empty otherwise

2. Some additional facts from the WLS Console/Log
2.1 The JAR is visible in the WLS Console Deployments list but with a status of FAILED
Expanding the entry shows both the EJB and the Web Service
2.2 Exceptions in the WLS Log during deploy as attached
Comment 3 jimnicolson 2007-07-02 23:52:46 UTC
Created attachment 44639 [details]
WLS 10 Log on attempting to deploy test web service
Comment 4 jimnicolson 2007-07-02 23:56:15 UTC
Just noticed something odd in reviewing the WLS10 Log attachment.

The Exception refers to:

nrw.service.its.tag.common.wls10.jaxws.EchoString.

But the Class package is:

nrw.service.its.tag.common.wls10.EchoString (no jaxws)

Will attach source file. 
Comment 5 jimnicolson 2007-07-02 23:58:39 UTC
Created attachment 44640 [details]
Test Web Service Java Source
Comment 6 jimnicolson 2007-07-03 01:13:20 UTC
Just an update - same problem with Milestone 10
Comment 8 Petr Hejl 2007-09-24 14:41:38 UTC
ClassCastException is gone.

The cryptic error message indicates that wl does not generate ws support classes automatically. The workaround is to
invoke ws-gen and ws-compile and add missing classes to the jar.
Comment 9 Petr Hejl 2007-09-28 19:07:06 UTC
Need to discuss with somebody from ws team.
Comment 10 Vince Kraemer 2007-12-07 16:22:48 UTC
please close this issue if you forgot to earlier.  If this issue is still open,
please change the target milestone to reflect the current commitment.
Comment 11 Petr Hejl 2008-01-17 13:25:19 UTC
Milan can you briefly look at this?
Comment 12 Milan Kuchtiak 2008-01-17 17:20:21 UTC
JAX-WS services in Web Logic is not supported feature in 6.0. 
Though, you can create a web service for Web logic the farther behaviour is unpredictable.
This configuration was not tested. 

I reported a new enhancement.
See the issue 125499.

*** This issue has been marked as a duplicate of 125499 ***