users@glassfish.java.net

glassfish v3 javaee6 javaee-tutorial bundle issues

From: emiddio-verizon <emiddio_at_verizon.net>
Date: Mon, 22 Feb 2010 11:16:38 -0800

i have gotten all but 1 project -- to successfully work with Netbeans.

there are 21 top-level projects -- some are EAR which are really 3 projects.

1 or 2 had html structure errors which i fixed -- perhaps would have run
in a browser if not fixed ?

examples/jaxws/webclient -- had a netbeans issue which i worked around,
and a requirement (netbeans said)
to add jaxws-2.2 api's via Endorsed mechanism -- which i did. using
jdk1.6.0_17 64bit, win 7.

the only project not able to get working so far is
javaee-tutorial/examples/jaxrs/HelloWorld3.

with netbeans 6.9dev builds it always gets the following error on a
rebuild after deployment:
init:
undeploy-clean:
deps-clean:
do-clean:
Deleting directory
G:\Sun\sges-v3\glassfish\docs\javaee-tutorial\examples\jaxrs\HelloWorld3\build
G:\Sun\sges-v3\glassfish\docs\javaee-tutorial\examples\jaxrs\HelloWorld3\nbproject\build-impl.xml:844:
Unable to delete file
G:\Sun\sges-v3\glassfish\docs\javaee-tutorial\examples\jaxrs\HelloWorld3\build\web\WEB-INF\lib\jersey-server-1.1.4.jar
BUILD FAILED (total time: 2 seconds)

i have to restart gvf3 to do a clean,build

also when it runs i get the following error from gfv3 log,
-------------------------------------------------------
INFO: Loading application webclient at /webclient
INFO: webclient was successfully deployed in 197 milliseconds.
INFO: Loading application webclient at /webclient
INFO: webclient was successfully deployed in 212 milliseconds.
INFO: Scanning for root resource and provider classes in the Web app
resource paths:
   /WEB-INF/lib
   /WEB-INF/classes
INFO: Root resource classes found:
   class com.sun.rest.HelloGreetingService
INFO: No provider classes found.
INFO: Initiating Jersey application, version 'Jersey: 1.1.5 01/20/2010
04:04 PM'
INFO: Adding the following classes declared in
META-INF/services/jersey-server-components to the resource configuration:
   class com.sun.jersey.multipart.impl.FormDataMultiPartDispatchProvider
   class com.sun.jersey.multipart.impl.MultiPartConfigProvider
   class com.sun.jersey.multipart.impl.MultiPartReader
   class com.sun.jersey.multipart.impl.MultiPartWriter
INFO: Loading application HelloWorld3 at /HelloWorld3
INFO: HelloWorld3 was successfully deployed in 2,992 milliseconds.
SEVERE: A message body writer for Java type, class
com.sun.rest.RESTGreeting, and MIME media type, text/html, was not found
SEVERE: Mapped exception to response: 500 (Internal Server Error)
javax.ws.rs.WebApplicationException
         at
com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:268)
         at
com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1029)
------------------------------------------

the following appears on the web page.
------------------------------------------

javax.ws.rs.WebApplicationException
        at com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:268)
        at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1029)
        at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:941)
        at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:932)
        at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:384)
        at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:451)
        at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:632)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
        at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
        at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
        at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
        at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:332)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:233)
        at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:239)
        at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
        at com.sun.grizzly.comet.CometEngine.executeServlet(CometEngine.java:473)
        at com.sun.grizzly.comet.CometEngine.handle(CometEngine.java:341)
        at com.sun.grizzly.comet.CometAsyncFilter.doFilter(CometAsyncFilter.java:84)
        at com.sun.grizzly.arp.DefaultAsyncExecutor.invokeFilters(DefaultAsyncExecutor.java:161)
        at com.sun.grizzly.arp.DefaultAsyncExecutor.interrupt(DefaultAsyncExecutor.java:137)
        at com.sun.grizzly.arp.AsyncProcessorTask.doTask(AsyncProcessorTask.java:88)
        at com.sun.grizzly.http.TaskBase.run(TaskBase.java:189)
        at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
        at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
        at java.lang.Thread.run(Thread.java:619)

-----------------------------------
how to fix ?
thanks
gary