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 102349 - Hello-JAXW webservices project issues with IDE
Summary: Hello-JAXW webservices project issues with IDE
Status: RESOLVED WONTFIX
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 9 (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Nitya Doraisamy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-24 15:42 UTC by nouar38
Modified: 2007-04-24 19:58 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nouar38 2007-04-24 15:42:19 UTC
Found that Hello-JAXWS sample project can Run successfully many times if we
don't undeploy it (web application) from the RunTime/Servers/domain1.

If we undeploy this application from IDE, it cannot run any more.

How to produce:
verify ${javee.home}/domains/domain1/autodepoly does not have sub directories 
for this webservice

*** launch IDE & start the domain1 server (local default domain)
1) open project and select the folder for Hello-jaxw sample

2) select Run Project

3) wait a little bit, refresh/expand the already added server
domain1/applications and see in Web Applications an entry for
the endpoint_Hello expand and find 3 entries jsp/default and Hello.

4) look in the View the Server log message:

[AutoDeploy] Selecting file
/opt/SDK/domains/domain1/autodeploy/endpoint/Hello.class for autodeployment.
wsgen successful
DPL5306:Servlet Web Service Endpoint [Hello] listening at address
[http://gamay-03:8080/Hello/HelloService]
deployed with moduleid = endpoint_Hello
[AutoDeploy] Successfully autodeployed :
/opt/SDK/domains/domain1/autodeploy/endpoint/Hello.class.

JTS5014: Recoverable JTS instance, serverId = [3700]
About to load the system app: MEjbApp
LDR5010: All ejb(s) of [MEjbApp] loaded successfully!
About to load the system app: __ejb_container_timer_app
EJB5109:EJB Timer Service started successfully for datasource [jdbc/__TimerPool]
LDR5010: All ejb(s) of [__ejb_container_timer_app] loaded successfully!

ISSUE1:
<< Container com.sun.enterprise.webservice.JAXWSContainer@1486540 doesn't
support class com.sun.xml.ws.api.server.Module
>>

5) In the Ouput Hello-jaxw:

init:
compile-deploy-service:
/opt/SDK
Compiling 1 source file to /opt/SDK/domains/domain1/autodeploy
get-artifacts-windows:
get-artifacts-unix:
parsing WSDL...


generating code...
get-artifacts:
compile-client:
Compiling 1 source file to /opt/SDK/samples/javaee5/webservices/hello-jaxws/build
run-client-windows:
run-client-unix:
Apr 24, 2007 3:53:47 PM com.sun.enterprise.appclient.MainWithModuleSupport
setTargetServerProperties
[Issue 102200 ]<< WARNING: ACC023:The best practice in case of appclients is to
set the endpoints as <target-server> elements in sun-acc.xml. Please avoid using
the com.sun.appserv.iiop.endpoints property for appclients. >>
Hello result = Hello root!
run-client:
BUILD SUCCESSFUL (total time: 1 minute 8 seconds)

6) run the project many times, with no problem.

7) clean Project/ Run Project with no problem appclient is still ok, clean and
build Project is Ok.

8) View Admin Console, and can see in Server log:

ISSUE 2 (may be related to ISSUE1):
<<
com.sun.enterprise.admin.mbeans.J2EEModule:getStringForDDxml
FileNotFoundException
/opt/SDK/domains/domain1/generated/xml/j2ee-modules/endpoint_Hello/null
>>

But within the console I can see a Hello entry in WebServices and was able to
test it (using Test button),
but I could not find a WebServices/Hello entry in IDE.
I think I've seen a  WebServices entry (empty) after a fresh install of the SDK
in domain1 but don't know why is not generated anymore.

9) undeploy the web application endpoint_Hello and this will break the Run of
the project.

will get the error at get-artifacts-unix/windows 
parsing WSDL

[ERROR] Failed to read the WSDL document:
http://localhost:8080/Hello/HelloService?WSDL, because 1) could not find the
document; /2) the document could not be read; 3) the root element of the
document is not <wsdl:definitions>.

unknown location


... etc.
Comment 1 nouar38 2007-04-24 15:51:56 UTC
WA: remove the files found in domain1/autodeploy directory for the Hello web
service. stop and restart the domain
Comment 2 Vince Kraemer 2007-04-24 19:58:13 UTC
this is a problem in the sample itself.

Opened issue against GF. https://glassfish.dev.java.net/issues/show_bug.cgi?id=2907