NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
chrishuang Posted via mailing list.
|
Posted: Tue Jun 22, 2010 9:35 pm Post subject: [SPAM] Re: cannot generate WSDL for EE6 WS that is session bean |
|
|
Ok, so I downloaded NetBeans IDE 6.9. When I deployed the project, I was able
to see the hello world page. This is what I got from GlassFish server 3
Jun 22, 2010 10:01:34 AM com.sun.enterprise.glassfish.bootstrap.ASMain main
INFO: Launching GlassFish on Felix platform
Welcome to Felix
================
INFO: Perform lazy SSL initialization for the listener 'http-listener-2'
INFO: Starting Grizzly Framework 1.9.18-o - Tue Jun 22 10:02:39 PDT 2010
INFO: Starting Grizzly Framework 1.9.18-o - Tue Jun 22 10:02:39 PDT 2010
INFO: Grizzly Framework 1.9.18-o started in: 156ms listening on port 8080
INFO: GlassFish Server Open Source Edition 3.0.1 (22) startup time :
Felix(62681ms) startup services(2246ms) total(64927ms)
INFO: Grizzly Framework 1.9.18-o started in: 109ms listening on port 4848
INFO: Grizzly Framework 1.9.18-o started in: 78ms listening on port 3700
INFO: Grizzly Framework 1.9.18-o started in: 125ms listening on port 8181
INFO: Grizzly Framework 1.9.18-o started in: 46ms listening on port 7676
INFO: Binding RMI port to *:8686
INFO: Hibernate Validator bean-validator-3.0-JBoss-4.0.2
INFO: Instantiated an instance of
org.hibernate.validator.engine.resolver.JPATraversableResolver.
INFO: Grizzly Framework 1.9.18-o started in: 16ms listening on port 8080
INFO: JMXStartupService: Started JMXConnector, JMXService URL =
service:jmx:rmi://192.168.1.100:8686/jndi/rmi://192.168.1.100:8686/jmxrmi
INFO: Perform lazy SSL initialization for the listener 'http-listener-2'
INFO: Grizzly Framework 1.9.18-o started in: 15ms listening on port 8181
INFO: Using
com.sun.enterprise.transaction.jts.JavaEETransactionManagerJTSDelegate as
the delegate
INFO: SEC1002: Security Manager is OFF.
INFO: Security startup service called
INFO: SEC1143: Loading policy provider
com.sun.enterprise.security.provider.PolicyWrapper.
INFO: Realm admin-realm of classtype
com.sun.enterprise.security.auth.realm.file.FileRealm successfully created.
INFO: [Thread[GlassFish Kernel Main Thread,5,main]] started
INFO: Realm file of classtype
com.sun.enterprise.security.auth.realm.file.FileRealm successfully created.
INFO: Realm certificate of classtype
com.sun.enterprise.security.auth.realm.certificate.CertificateRealm
successfully created.
INFO: Security service(s) started successfully....
INFO: {felix.fileinstall.poll (ms) = 5000, felix.fileinstall.dir =
C:\Program Files\glassfish-3.0.1\glassfish\modules\autostart,
felix.fileinstall.debug = 1, felix.fileinstall.bundles.new.start = true,
felix.fileinstall.tmpdir =
C:\Users\CHRISH~1\AppData\Local\Temp\fileinstall--4421135684497814721,
felix.fileinstall.filter = null}
INFO: Created HTTP listener http-listener-1 on port 8080
INFO: Created HTTP listener http-listener-2 on port 8181
INFO: Created HTTP listener admin-listener on port 4848
INFO: Created virtual server server
INFO: Created virtual server __asadmin
INFO: Virtual server server loaded system default web module
INFO: Installed C:\Program
Files\glassfish-3.0.1\glassfish\modules\autostart\org.apache.felix.fileinstall-autodeploy-bundles.cfg
INFO: {felix.fileinstall.poll (ms) = 5000, felix.fileinstall.dir =
C:\Users\Chris Huang\.netbeans\6.9\config\GF3\domain1\autodeploy\bundles,
felix.fileinstall.debug = 1, felix.fileinstall.bundles.new.start = true,
felix.fileinstall.tmpdir =
C:\Users\CHRISH~1\AppData\Local\Temp\fileinstall-4674135060582422533,
felix.fileinstall.filter = null}
INFO: Installed C:\Program
Files\glassfish-3.0.1\glassfish\modules\autostart\org.apache.felix.scr.jar
INFO: Installed C:\Program
Files\glassfish-3.0.1\glassfish\modules\autostart\osgi-web-container.jar
INFO: WSTX-COMMON-2007: Map CMT EJB web method
'org.flower.service.FlowerService'.'getFlower' with effective transaction
attribute of 'REQUIRED' to wsdl bounded operation
'{http://service.flower.org/}FlowerServicePort':'getFlower' with WS-AT
policy assertion(s) 'FlowerServicePortBinding_getFlower_WSAT_Policy'
INFO: WSTX-COMMON-2007: Map CMT EJB web method
'org.flower.service.FlowerService'.'getThumbnails' with effective
transaction attribute of 'REQUIRED' to wsdl bounded operation
'{http://service.flower.org/}FlowerServicePort':'getThumbnails' with WS-AT
policy assertion(s) 'FlowerServicePortBinding_getThumbnails_WSAT_Policy'
INFO: Started bundle:
file:/C:/Program%20Files/glassfish-3.0.1/glassfish/modules/autostart/org.apache.felix.scr.jar
INFO: Started bundle:
file:/C:/Program%20Files/glassfish-3.0.1/glassfish/modules/autostart/osgi-web-container.jar
INFO: Metro monitoring rootname successfully set to:
amx:pp=/mon/server-mon[server],type=WSEndpoint,name=FlowerServiceService-FlowerServicePort
WARNING: Container org.glassfish.webservices.JAXWSContainer@1302260 doesn't
support class com.sun.xml.ws.api.server.Module
INFO: WS00019: EJB Endpoint deployed
FlowerAlbumService1 listening at address at
http://localhost:8080/FlowerServiceService/FlowerService
INFO: Loading application FlowerAlbumService1 at /FlowerAlbumService1
INFO: FlowerAlbumService1 was successfully deployed in 16,177 milliseconds.
SEVERE: WS00034: Two web services are being deployed with the same endpoint
URL FlowerServiceService/FlowerService; The service that gets loaded last
will always be the one that is active for this URL
INFO: WSTX-COMMON-2007: Map CMT EJB web method
'org.flower.service.FlowerService'.'getFlower' with effective transaction
attribute of 'REQUIRED' to wsdl bounded operation
'{http://service.flower.org/}FlowerServicePort':'getFlower' with WS-AT
policy assertion(s) 'FlowerServicePortBinding_getFlower_WSAT_Policy'
INFO: WSTX-COMMON-2007: Map CMT EJB web method
'org.flower.service.FlowerService'.'getThumbnails' with effective
transaction attribute of 'REQUIRED' to wsdl bounded operation
'{http://service.flower.org/}FlowerServicePort':'getThumbnails' with WS-AT
policy assertion(s) 'FlowerServicePortBinding_getThumbnails_WSAT_Policy'
INFO: Metro monitoring rootname successfully set to:
amx:pp=/mon/server-mon[server],type=WSEndpoint,name=FlowerServiceService-FlowerServicePort
WARNING: Container org.glassfish.webservices.JAXWSContainer@43906f doesn't
support class com.sun.xml.ws.api.server.Module
INFO: WS00019: EJB Endpoint deployed
FlowerAlbumService1 listening at address at
http://localhost:8080/FlowerServiceService/FlowerService
INFO: Loading application FlowerAlbumService1 at /FlowerAlbumService1
INFO: FlowerAlbumService1 was successfully deployed in 3,510 milliseconds.
SEVERE: WS00034: Two web services are being deployed with the same endpoint
URL FlowerServiceService/FlowerService; The service that gets loaded last
will always be the one that is active for this URL
INFO: WSTX-COMMON-2007: Map CMT EJB web method
'org.flower.service.FlowerService'.'getFlower' with effective transaction
attribute of 'REQUIRED' to wsdl bounded operation
'{http://service.flower.org/}FlowerServicePort':'getFlower' with WS-AT
policy assertion(s) 'FlowerServicePortBinding_getFlower_WSAT_Policy'
INFO: WSTX-COMMON-2007: Map CMT EJB web method
'org.flower.service.FlowerService'.'getThumbnails' with effective
transaction attribute of 'REQUIRED' to wsdl bounded operation
'{http://service.flower.org/}FlowerServicePort':'getThumbnails' with WS-AT
policy assertion(s) 'FlowerServicePortBinding_getThumbnails_WSAT_Policy'
INFO: Metro monitoring rootname successfully set to:
amx:pp=/mon/server-mon[server],type=WSEndpoint,name=FlowerServiceService-FlowerServicePort
WARNING: Container org.glassfish.webservices.JAXWSContainer@7a80dc doesn't
support class com.sun.xml.ws.api.server.Module
INFO: WS00019: EJB Endpoint deployed
FlowerAlbumService1 listening at address at
http://localhost:8080/FlowerServiceService/FlowerService
INFO: Loading application FlowerAlbumService1 at /FlowerAlbumService1
INFO: FlowerAlbumService1 was successfully deployed in 3,385 milliseconds.
SEVERE: WS00034: Two web services are being deployed with the same endpoint
URL FlowerServiceService/FlowerService; The service that gets loaded last
will always be the one that is active for this URL
INFO: WSTX-COMMON-2007: Map CMT EJB web method
'org.flower.service.FlowerService'.'getFlower' with effective transaction
attribute of 'REQUIRED' to wsdl bounded operation
'{http://service.flower.org/}FlowerServicePort':'getFlower' with WS-AT
policy assertion(s) 'FlowerServicePortBinding_getFlower_WSAT_Policy'
INFO: WSTX-COMMON-2007: Map CMT EJB web method
'org.flower.service.FlowerService'.'getThumbnails' with effective
transaction attribute of 'REQUIRED' to wsdl bounded operation
'{http://service.flower.org/}FlowerServicePort':'getThumbnails' with WS-AT
policy assertion(s) 'FlowerServicePortBinding_getThumbnails_WSAT_Policy'
INFO: Metro monitoring rootname successfully set to:
amx:pp=/mon/server-mon[server],type=WSEndpoint,name=FlowerServiceService-FlowerServicePort
WARNING: Container org.glassfish.webservices.JAXWSContainer@15f8bae doesn't
support class com.sun.xml.ws.api.server.Module
INFO: WS00019: EJB Endpoint deployed
FlowerAlbumService1 listening at address at
http://localhost:8080/FlowerServiceService/FlowerService
INFO: Loading application FlowerAlbumService1 at /FlowerAlbumService1
INFO: FlowerAlbumService1 was successfully deployed in 3,354 milliseconds.
SEVERE: WS00034: Two web services are being deployed with the same endpoint
URL FlowerServiceService/FlowerService; The service that gets loaded last
will always be the one that is active for this URL
INFO: WSTX-COMMON-2007: Map CMT EJB web method
'org.flower.service.FlowerService'.'getFlower' with effective transaction
attribute of 'REQUIRED' to wsdl bounded operation
'{http://service.flower.org/}FlowerServicePort':'getFlower' with WS-AT
policy assertion(s) 'FlowerServicePortBinding_getFlower_WSAT_Policy'
INFO: WSTX-COMMON-2007: Map CMT EJB web method
'org.flower.service.FlowerService'.'getThumbnails' with effective
transaction attribute of 'REQUIRED' to wsdl bounded operation
'{http://service.flower.org/}FlowerServicePort':'getThumbnails' with WS-AT
policy assertion(s) 'FlowerServicePortBinding_getThumbnails_WSAT_Policy'
INFO: Metro monitoring rootname successfully set to:
amx:pp=/mon/server-mon[server],type=WSEndpoint,name=FlowerServiceService-FlowerServicePort
WARNING: Container org.glassfish.webservices.JAXWSContainer@1975e4d doesn't
support class com.sun.xml.ws.api.server.Module
INFO: WS00019: EJB Endpoint deployed
FlowerAlbumService1 listening at address at
http://localhost:8080/FlowerServiceService/FlowerService
INFO: Loading application FlowerAlbumService1 at /FlowerAlbumService1
INFO: FlowerAlbumService1 was successfully deployed in 3,354 milliseconds.
When I run I was able to see the hello world page
but, when I tested web service, I got the warning
"Unable to open web service tester page:
http://localhost:8080/FlowerAlbumService1/FlowerServiceService?Tester"
I was unable to see the FlowerServiceService Web Service Tester page
Can you help me on this?
Thanks
Chris
Jeff Rubinoff wrote:
| Quote: |
Chris,
I rewrote the tutorial for EE6 and just released it for NB 6.9 and GF
3.0.1. I first tried rewriting it for NB 6.8/GF 3 Domain, but I ran
into this problem and several others. Basically, the procedure doesn't
work with GF 3 without a lot of hacking.
Please try again with NB 6.9 and GF 3.0.1, which has the relevant bugs
fixed. Better still, you can follow the rewritten tutorial at
http://netbeans.org/kb/docs/websvc/flower_overview.html.
Jeff
chrishuang wrote:
| Quote: | I'm using netbeans 6.8 and learning the EE6 rewrite of the Flower (SOAP
|
| With
| Quote: | | Quote: | Attachments) tutorial. Instead of creating a separate session bean and
service, I created a web service as a session bean and entered the
|
| business
| Quote: | | Quote: | methods directly into the bean. When I click on the Web Service node and
|
| try
| Quote: | | Quote: | the Generate and Copy WSDL function, I get the following error:
error: Could not create declaration for annotation type
|
| javax.ejb.Stateless
| Quote: | | Quote: | Note: ap round: 1
The service builds, deploys, and tests correctly. I just can't generate
|
| the
| Quote: | | Quote: | WSDL.
Can any one help me?
|
|
--
View this message in context: http://old.nabble.com/cannot-generate-WSDL-for-EE6-WS-that-is-session-bean-tp28952459p28962765.html
Sent from the Netbeans - J2EE mailing list archive at Nabble.com. |
|
| Back to top |
|
 |
chrishuang Posted via mailing list.
|
|
| Back to top |
|
 |
chrishuang Posted via mailing list.
|
|
| Back to top |
|
 |
chrishuang Posted via mailing list.
|
|
| Back to top |
|
 |
chrishuang
Joined: 23 Jun 2010 Posts: 2
|
Posted: Wed Jun 23, 2010 7:27 pm Post subject: [SPAM] Re: cannot generate WSDL for EE6 WS that is session bean |
|
|
I did not create my own userdir when I installed 6.9 and I did not import
setting from 6.8 or 6.5. I am using JDK that comes with 6.9 which is
jdk.6.0_11.
I just tried again. Here is the info I got when I deployed:
Jun 23, 2010 9:08:17 AM com.sun.enterprise.glassfish.bootstrap.ASMain main
INFO: Launching GlassFish on Felix platform
Welcome to Felix
================
INFO: Perform lazy SSL initialization for the listener 'http-listener-2'
INFO: Starting Grizzly Framework 1.9.18-o - Wed Jun 23 09:09:04 PDT 2010
INFO: Starting Grizzly Framework 1.9.18-o - Wed Jun 23 09:09:04 PDT 2010
INFO: Grizzly Framework 1.9.18-o started in: 109ms listening on port 8181
INFO: Grizzly Framework 1.9.18-o started in: 109ms listening on port 4848
INFO: GlassFish Server Open Source Edition 3.0.1 (22) startup time :
Felix(46301ms) startup services(1123ms) total(47424ms)
INFO: Grizzly Framework 1.9.18-o started in: 156ms listening on port 8080
INFO: Grizzly Framework 1.9.18-o started in: 47ms listening on port 7676
INFO: Grizzly Framework 1.9.18-o started in: 78ms listening on port 3700
INFO: Binding RMI port to *:8686
INFO: Hibernate Validator bean-validator-3.0-JBoss-4.0.2
INFO: Instantiated an instance of
org.hibernate.validator.engine.resolver.JPATraversableResolver.
INFO: JMXStartupService: Started JMXConnector, JMXService URL =
service:jmx:rmi://192.168.1.100:8686/jndi/rmi://192.168.1.100:8686/jmxrmi
INFO: Grizzly Framework 1.9.18-o started in: 16ms listening on port 8080
INFO: Using
com.sun.enterprise.transaction.jts.JavaEETransactionManagerJTSDelegate as
the delegate
INFO: Perform lazy SSL initialization for the listener 'http-listener-2'
INFO: Grizzly Framework 1.9.18-o started in: 32ms listening on port 8181
INFO: [Thread[GlassFish Kernel Main Thread,5,main]] started
INFO: {felix.fileinstall.poll (ms) = 5000, felix.fileinstall.dir =
C:\Program Files\glassfish-3.0.1\glassfish\modules\autostart,
felix.fileinstall.debug = 1, felix.fileinstall.bundles.new.start = true,
felix.fileinstall.tmpdir =
C:\Users\CHRISH~1\AppData\Local\Temp\fileinstall--3204500212694243107,
felix.fileinstall.filter = null}
INFO: SEC1002: Security Manager is OFF.
INFO: Security startup service called
INFO: SEC1143: Loading policy provider
com.sun.enterprise.security.provider.PolicyWrapper.
INFO: Realm admin-realm of classtype
com.sun.enterprise.security.auth.realm.file.FileRealm successfully created.
INFO: Realm file of classtype
com.sun.enterprise.security.auth.realm.file.FileRealm successfully created.
INFO: Realm certificate of classtype
com.sun.enterprise.security.auth.realm.certificate.CertificateRealm
successfully created.
INFO: Security service(s) started successfully....
INFO: Created HTTP listener http-listener-1 on port 8080
INFO: Created HTTP listener http-listener-2 on port 8181
INFO: Created HTTP listener admin-listener on port 4848
INFO: Created virtual server server
INFO: Created virtual server __asadmin
INFO: Installed C:\Program
Files\glassfish-3.0.1\glassfish\modules\autostart\org.apache.felix.fileinstall-autodeploy-bundles.cfg
INFO: {felix.fileinstall.poll (ms) = 5000, felix.fileinstall.dir =
C:\Users\Chris Huang\.netbeans\6.9\config\GF3\domain1\autodeploy\bundles,
felix.fileinstall.debug = 1, felix.fileinstall.bundles.new.start = true,
felix.fileinstall.tmpdir =
C:\Users\CHRISH~1\AppData\Local\Temp\fileinstall--6754574491463314248,
felix.fileinstall.filter = null}
INFO: Virtual server server loaded system default web module
INFO: Installed C:\Program
Files\glassfish-3.0.1\glassfish\modules\autostart\org.apache.felix.scr.jar
INFO: Installed C:\Program
Files\glassfish-3.0.1\glassfish\modules\autostart\osgi-web-container.jar
INFO: Started bundle:
file:/C:/Program%20Files/glassfish-3.0.1/glassfish/modules/autostart/org.apache.felix.scr.jar
INFO: Started bundle:
file:/C:/Program%20Files/glassfish-3.0.1/glassfish/modules/autostart/osgi-web-container.jar
INFO: WSTX-COMMON-2007: Map CMT EJB web method
'org.flower.service.FlowerService'.'getFlower' with effective transaction
attribute of 'REQUIRED' to wsdl bounded operation
'{http://service.flower.org/}FlowerServicePort':'getFlower' with WS-AT
policy assertion(s) 'FlowerServicePortBinding_getFlower_WSAT_Policy'
INFO: WSTX-COMMON-2007: Map CMT EJB web method
'org.flower.service.FlowerService'.'getThumbnails' with effective
transaction attribute of 'REQUIRED' to wsdl bounded operation
'{http://service.flower.org/}FlowerServicePort':'getThumbnails' with WS-AT
policy assertion(s) 'FlowerServicePortBinding_getThumbnails_WSAT_Policy'
INFO: Metro monitoring rootname successfully set to:
amx:pp=/mon/server-mon[server],type=WSEndpoint,name=FlowerServiceService-FlowerServicePort
WARNING: Container org.glassfish.webservices.JAXWSContainer@37fdd2 doesn't
support class com.sun.xml.ws.api.server.Module
INFO: WELD-000900 1.0.1 (SP3)
INFO: Instantiated an instance of
org.hibernate.validator.engine.resolver.JPATraversableResolver.
INFO: WS00019: EJB Endpoint deployed
FlowerAlbumService listening at address at
http://localhost:8080/FlowerServiceService/FlowerService
INFO: Loading application FlowerAlbumService at /FlowerAlbumService
INFO: FlowerAlbumService was successfully deployed in 14,289 milliseconds.
INFO: Server shutdown initiated
INFO: JMXStartupService: Stopped JMXConnectorServer:
service:jmx:rmi://192.168.1.100:8686/jndi/rmi://192.168.1.100:8686/jmxrmi
Jun 23, 2010 9:11:26 AM com.sun.enterprise.glassfish.bootstrap.ASMain main
INFO: Launching GlassFish on Felix platform
Welcome to Felix
================
Chris
Jeff Rubinoff wrote:
| Quote: |
I can't reproduce the error in generating the WSDL. Generates fine for me.
Did you create a fresh userdir when you installed 6.9, or did you import
settings from 6.8? That's often a culprit. Just rename the 6.9 userdir
and NB will create a new one when you launch it again.
Also, what JDK are you using?
You can work around the problem by commenting out @Stateless and @EJB,
generating the WSDL, and then uncommenting the annotations again.
However this should not be necessary.
Jeff
chrishuang wrote:
| Quote: | Sorry Jeff,
I mean I got the same error.
Chris
|
|
--
View this message in context: http://old.nabble.com/cannot-generate-WSDL-for-EE6-WS-that-is-session-bean-tp28952459p28973960.html
Sent from the Netbeans - J2EE mailing list archive at Nabble.com. |
|
| Back to top |
|
 |
chrishuang
Joined: 23 Jun 2010 Posts: 2
|
Posted: Wed Jun 23, 2010 7:28 pm Post subject: [SPAM] Re: cannot generate WSDL for EE6 WS that is session bean |
|
|
Sorry I have never done this before, I need more instruction on add server.
first, which file I need to download?
glassfish-3.0.1-b20-windows.exe, or glassfish-3.0.1-b20.zip, or
glassfish-3.0.1-web-b20-windows.exe or glassfish-3.0.1-web-b20.zip
second, which directory should I downloaded to? And what's the rest of
instruction?
Chris
Jeff Rubinoff wrote:
| Quote: |
Chris,
Download and use the old b20 version of GlassFish available at
http://dlc.sun.com.edgesuite.net/glassfish/3.0.1/promoted/. (You know
how to register a server with NetBeans, right? In the Services tab.
Pretty self-explanatory.) Change the Run properties of your project to
use that server instead of the 3.0.1 shipped with NB 6.9. Everything
should then work fine. Just tested it.
Jeff
chrishuang wrote:
| Quote: | Sorry Jeff,
I mean I got the same error.
Chris
|
|
--
View this message in context: http://old.nabble.com/cannot-generate-WSDL-for-EE6-WS-that-is-session-bean-tp28952459p28974063.html
Sent from the Netbeans - J2EE mailing list archive at Nabble.com. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|