users@glassfish.java.net

GlassFish 3.1.1 -- Error During Incremental Deploy

From: <forums_at_java.net>
Date: Fri, 30 Mar 2012 18:04:12 -0500 (CDT)

Using NetBeans I created the Hello World RESTful service project at this
location: http://docs.oracle.com/javaee/6/tutorial/doc/gipzz.html I then
tried testing it, but got some kind of deployment error. The war file appears
to be fine. The primary errors seem to be: Error during incremental deploy:
java.io.IOException: C:\Program Files\NetBeans
7.0.1\${com.sun.aas.instanceRootURI}\applications\HelloWorldApplication And
WARNING: WEB9052: Unable to load class helloWorld.HelloWorld, reason:
java.lang.ClassNotFoundException: helloWorld.HelloWorld But please see below
for details. Can anyone help me solve this problem? I am new to both REST and
GlassFish. Thank you very much. *From the GlassFish Server:* Launching
GlassFish on Felix platform Mar 30, 2012 4:33:12 PM
com.sun.enterprise.server.logging.LogManagerService postConstruct WARNING:
Record begin marker is not a proper value so using default. Mar 30, 2012
4:33:12 PM com.sun.enterprise.server.logging.LogManagerService postConstruct
WARNING: Record end marker is not a proper value so using default. Mar 30,
2012 4:33:12 PM com.sun.enterprise.server.logging.LogManagerService
postConstruct WARNING: Log Format field separator is not a character so using
default. INFO: Registered
org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for
persistence-type = replicated in BackingStoreFactoryRegistry INFO: Grizzly
Framework 1.9.36 started in: 469ms - bound to [0.0.0.0:8080] INFO: Grizzly
Framework 1.9.36 started in: 125ms - bound to [0.0.0.0:8181] INFO: Grizzly
Framework 1.9.36 started in: 32ms - bound to [0.0.0.0:7676] INFO: Grizzly
Framework 1.9.36 started in: 94ms - bound to [0.0.0.0:3700] INFO: Grizzly
Framework 1.9.36 started in: 171ms - bound to [0.0.0.0:4848] INFO: The Admin
Console is already installed, but not yet loaded. INFO: WS10010: Web service
endpoint deployment events listener registered successfully. INFO: SEC1002:
Security Manager is OFF. INFO: SEC1010: Entering Security Startup Service
INFO: SEC1143: Loading policy provider
com.sun.enterprise.security.provider.PolicyWrapper. INFO: SEC1115: Realm
[admin-realm] of classtype
[com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.
INFO: SEC1115: Realm [file] of classtype
[com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.
INFO: SEC1115: Realm [certificate] of classtype
[com.sun.enterprise.security.auth.realm.certificate.CertificateRealm]
successfully created. INFO: SEC1011: Security Service(s) Started Successfully
INFO: WEB0169: Created HTTP listener [http-listener-1] on host/port
[0.0.0.0:8080] INFO: WEB0169: Created HTTP listener [http-listener-2] on
host/port [0.0.0.0:8181] INFO: WEB0169: Created HTTP listener
[admin-listener] on host/port [0.0.0.0:4848] INFO: WEB0171: Created virtual
server [server] INFO: WEB0171: Created virtual server [__asadmin] INFO:
WEB0172: Virtual server [server] loaded default web module [] INFO: WS00018:
Webservice Endpoint deployed CalculatorWS listening at address at
http://Steves-PC:8080/CalculatorApp/CalculatorWSService INFO: WS10001:
Loading WS-TX Services. Please wait. INFO: WS00018: Webservice Endpoint
deployed ParticipantPortTypeImpl listening at address at
http://Steves-PC:8080/__wstx-services/ParticipantPortType INFO: WS00018:
Webservice Endpoint deployed RegistrationRequesterPortTypePortImpl listening
at address at
http://Steves-PC:8080/__wstx-services/RegistrationRequesterPortType11 INFO:
WS00018: Webservice Endpoint deployed ParticipantPortTypePortImpl listening
at address at http://Steves-PC:8080/__wstx-services/ParticipantPortType11
INFO: WS00018: Webservice Endpoint deployed RegistrationPortTypeRPCPortImpl
listening at address at
http://Steves-PC:8080/__wstx-services/RegistrationPortTypeRPC11 INFO:
WS00018: Webservice Endpoint deployed CoordinatorPortTypePortImpl listening
at address at http://Steves-PC:8080/__wstx-services/CoordinatorPortType11
INFO: WS00018: Webservice Endpoint deployed RegistrationPortTypeImpl
listening at address at
http://Steves-PC:8080/__wstx-services/RegistrationPortTypeRPC INFO: WS00018:
Webservice Endpoint deployed RegistrationRequesterPortTypeImpl listening at
address at
http://Steves-PC:8080/__wstx-services/RegistrationRequesterPortType INFO:
WS00018: Webservice Endpoint deployed CoordinatorPortTypeImpl listening at
address at http://Steves-PC:8080/__wstx-services/CoordinatorPortType INFO:
Metro monitoring rootname successfully set to:
amx:pp=/mon/server-mon[server],type=WSEndpoint,name=/__wstx-services-WSATCoordinator-Participant
INFO: Metro monitoring rootname successfully set to:
amx:pp=/mon/server-mon[server],type=WSEndpoint,name=/__wstx-services-RegistrationService_V11-RegistrationRequesterPort
INFO: Metro monitoring rootname successfully set to:
amx:pp=/mon/server-mon[server],type=WSEndpoint,name=/__wstx-services-WSAT11Service-ParticipantPort
INFO: Metro monitoring rootname successfully set to:
amx:pp=/mon/server-mon[server],type=WSEndpoint,name=/__wstx-services-RegistrationService_V11-RegistrationPort
INFO: Metro monitoring rootname successfully set to:
amx:pp=/mon/server-mon[server],type=WSEndpoint,name=/__wstx-services-WSAT11Service-CoordinatorPort
INFO: Metro monitoring rootname successfully set to:
amx:pp=/mon/server-mon[server],type=WSEndpoint,name=/__wstx-services-Coordinator-Registration
INFO: Metro monitoring rootname successfully set to:
amx:pp=/mon/server-mon[server],type=WSEndpoint,name=/__wstx-services-Coordinator-RegistrationRequester
INFO: Metro monitoring rootname successfully set to:
amx:pp=/mon/server-mon[server],type=WSEndpoint,name=/__wstx-services-WSATCoordinator-Coordinator
INFO: WEB0671: Loading application [wstx-services] at [/__wstx-services]
INFO: WS10002: WS-TX Services successfully started. INFO: Metro monitoring
rootname successfully set to:
amx:pp=/mon/server-mon[server],type=WSEndpoint,name=/CalculatorApp-CalculatorWSService-CalculatorWSPort
INFO: WEB0671: Loading application [CalculatorApp] at [/CalculatorApp] INFO:
CORE10010: Loading application CalculatorApp done in 25,235 ms WARNING:
WEB9052: Unable to load class helloWorld.HelloWorld, reason:
java.lang.ClassNotFoundException: helloWorld.HelloWorld INFO: Registering the
Jersey servlet application, named
org.netbeans.rest.application.config.ApplicationConfig, at the servlet
mapping, /resources/*, with the Application class of the same name INFO:
WEB0671: Loading application [HelloWorldApplication] at
[/HelloWorldApplication] INFO: CORE10010: Loading application
HelloWorldApplication done in 3,219 ms INFO: GlassFish Server Open Source
Edition 3.1.1 (12) startup time : Felix (10,656ms), startup
services(32,594ms), total(43,250ms) INFO: Hibernate Validator 4.1.0.Final
INFO: Instantiated an instance of
org.hibernate.validator.engine.resolver.JPATraversableResolver. INFO:
WEB0169: Created HTTP listener [http-listener-1] on host/port [0.0.0.0:8080]
INFO: Grizzly Framework 1.9.36 started in: 109ms - bound to [0.0.0.0:8080]
INFO: JMXStartupService: Started JMXConnector, JMXService URL =
service:jmx:rmi://192.168.0.10:8686/jndi/rmi://192.168.0.10:8686/jmxrmi INFO:
WEB0169: Created HTTP listener [http-listener-2] on host/port [0.0.0.0:8181]
INFO: Grizzly Framework 1.9.36 started in: 46ms - bound to [0.0.0.0:8181]
INFO: The Admin Console is already installed, but not yet loaded. INFO: The
Admin Console is starting. Please wait. INFO: Initiating Jersey application,
version 'Jersey: 1.8 06/24/2011 12:17 PM' INFO: Initializing Mojarra 2.1.3
(FCS b02) for context '' INFO: REST00001: Listening to REST requests at
context: /management/domain INFO: Instantiated an instance of
org.hibernate.validator.engine.resolver.JPATraversableResolver. INFO:
WEB0671: Loading application [__admingui] at [/] INFO: CORE10010: Loading
application __admingui done in 27,157 ms INFO: The Admin Console application
is loaded. WARNING: PWC4011: Unable to set request character encoding to
UTF-8 from context , because request parameters have already been read, or
ServletRequest.getReader() has already been called INFO: Redirecting to /
INFO: Admin Console: Initializing Session Attributes... *Build and Deploy
Output* init: deps-module-jar: deps-ear-jar: deps-jar:
check-rest-config-props: generate-rest-config: library-inclusion-in-archive:
library-inclusion-in-manifest: compile: compile-jsps: Building jar:
C:\Documents and Settings\Steve\My
Documents\NetBeansProjects\HelloWorldApplication\dist\HelloWorldApplication.war
Starting GlassFish Server 3.1 GlassFish Server 3.1 is running. Incrementally
deploying HelloWorldApplication Error during incremental deploy:
java.io.IOException: C:\Program Files\NetBeans
7.0.1\${com.sun.aas.instanceRootURI}\applications\HelloWorldApplication
C:\Documents and Settings\Steve\My
Documents\NetBeansProjects\HelloWorldApplication\nbproject\build-impl.xml:725:
Deployment error: Error during incremental deploy: java.io.IOException:
C:\Program Files\NetBeans
7.0.1\${com.sun.aas.instanceRootURI}\applications\HelloWorldApplication See
the server log for details. at
org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:232)
at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:106) at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at
sun.reflect.GeneratedMethodAccessor52.invoke(Unknown Source) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601) at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348) at
org.apache.tools.ant.Target.execute(Target.java:390) at
org.apache.tools.ant.Target.performTasks(Target.java:411) at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399) at
org.apache.tools.ant.Project.executeTarget(Project.java:1368) at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251) at
org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:284)
at
org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:539)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)
Caused by: java.lang.RuntimeException: Error during incremental deploy:
java.io.IOException: C:\Program Files\NetBeans
7.0.1\${com.sun.aas.instanceRootURI}\applications\HelloWorldApplication at
org.netbeans.modules.j2ee.deployment.impl.ServerFileDistributor._distribute(ServerFileDistributor.java:358)
at
org.netbeans.modules.j2ee.deployment.impl.ServerFileDistributor.distribute(ServerFileDistributor.java:168)
at
org.netbeans.modules.j2ee.deployment.impl.TargetServer.distributeChanges(TargetServer.java:242)
at
org.netbeans.modules.j2ee.deployment.impl.TargetServer.deploy(TargetServer.java:672)
at
org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:197)
... 16 more Caused by: java.io.IOException: C:\Program Files\NetBeans
7.0.1\${com.sun.aas.instanceRootURI}\applications\HelloWorldApplication at
org.openide.filesystems.FileUtil.createFolder(FileUtil.java:613) at
org.netbeans.modules.j2ee.deployment.impl.ServerFileDistributor._distribute(ServerFileDistributor.java:311)
... 20 more BUILD FAILED (total time: 1 minute 1 second)

--
[Message sent by forum member 'Evets23']
View Post: http://forums.java.net/node/884686