facebook

fail to deploy web app to glassfish v2 via MyEclipse

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #286460 Reply

    hoaivan
    Member

    i developed a very simple web app and successfully deployed it manually by copy war file to the autodeploy folder.
    But when i tried to deploy via the “Add Deployment” feature of MyEclipse6.5 running on JDK6, i got this error:

    
    Jun 29, 2008 4:20:28 PM com.sun.enterprise.deployment.autodeploy.AutoDeployer invokeDeploymentService
    INFO: [AutoDeploy] Selecting file E:\Java\JEEServer\glassfish\domains\domain1\autodeploy\webclient.war\WEB-INF\classes\servlet\PlaceBidServlet.class for autodeployment.
    Jun 29, 2008 4:20:28 PM com.sun.enterprise.deployment.phasing.PEDeploymentService$AuditInfo <init>
    INFO: Deployment by user Unknown of module webclient.war_WEB-INF_classes_servlet_PlaceBidServlet (type=Web Module) starting
    Jun 29, 2008 4:20:28 PM com.sun.enterprise.deployment.annotation.impl.ModuleScanner getElements
    WARNING: Cannot load webclient.war.WEB-INF.classes.servlet.PlaceBidServlet reason : webclient.war.WEB-INF.classes.servlet.PlaceBidServlet
    Jun 29, 2008 4:20:28 PM com.sun.enterprise.deployment.annotation.impl.ModuleScanner getElements
    WARNING: Cannot load webclient.war.WEB-INF.classes.servlet.PlaceBidServlet reason : webclient.war.WEB-INF.classes.servlet.PlaceBidServlet
    Jun 29, 2008 4:20:28 PM com.sun.enterprise.deployment.util.ApplicationValidator accept
    INFO: Context Root is not provided by the user, Using [webclient] as Context Root
    Jun 29, 2008 4:20:28 PM com.sun.enterprise.deployment.phasing.J2EECPhase runPhase
    INFO: deployed with moduleid = webclient.war_WEB-INF_classes_servlet_PlaceBidServlet
    Jun 29, 2008 4:20:28 PM com.sun.enterprise.web.WebContainer loadWebModule
    INFO: WEB0100: Loading web module [webclient.war_WEB-INF_classes_servlet_PlaceBidServlet] in virtual server [server] at [/webclient]
    Jun 29, 2008 4:20:28 PM com.sun.enterprise.deployment.phasing.PEDeploymentService$AuditInfo reportEnd
    INFO: Deployment by user Unknown of module webclient.war_WEB-INF_classes_servlet_PlaceBidServlet (type=Web Module) completed successfully, elapsed time 375 ms
    Jun 29, 2008 4:20:28 PM com.sun.enterprise.deployment.autodeploy.AutoDeployer invokeDeploymentService
    INFO: [AutoDeploy] Successfully autodeployed : E:\Java\JEEServer\glassfish\domains\domain1\autodeploy\webclient.war\WEB-INF\classes\servlet\PlaceBidServlet.class.
    Jun 29, 2008 4:20:28 PM com.sun.enterprise.deployment.autodeploy.AutoDeployer invokeDeploymentService
    INFO: [AutoDeploy] Selecting file E:\Java\JEEServer\glassfish\domains\domain1\autodeploy\webclient.war\WEB-INF\classes\servlet\DbServlet.class for autodeployment.
    Jun 29, 2008 4:20:28 PM com.sun.enterprise.deployment.phasing.PEDeploymentService$AuditInfo <init>
    INFO: Deployment by user Unknown of module webclient.war_WEB-INF_classes_servlet_DbServlet (type=Web Module) starting
    Jun 29, 2008 4:20:29 PM com.sun.enterprise.deployment.annotation.impl.ModuleScanner getElements
    WARNING: Cannot load webclient.war.WEB-INF.classes.servlet.DbServlet reason : webclient.war.WEB-INF.classes.servlet.DbServlet
    Jun 29, 2008 4:20:29 PM com.sun.enterprise.deployment.annotation.impl.ModuleScanner getElements
    WARNING: Cannot load webclient.war.WEB-INF.classes.servlet.DbServlet reason : webclient.war.WEB-INF.classes.servlet.DbServlet
    Jun 29, 2008 4:20:29 PM com.sun.enterprise.deployment.util.ApplicationValidator accept
    INFO: Context Root is not provided by the user, Using [webclient] as Context Root
    Jun 29, 2008 4:20:29 PM com.sun.enterprise.config.serverbeans.validation.DomainMgr preChangeNotification
    WARNING: Validation error: [ADMVAL1053: Attribute value (context-root = webclient) is not unique in list of Web module context roots.]
    Jun 29, 2008 4:20:29 PM com.sun.enterprise.deployment.phasing.J2EECPhase runPhase
    SEVERE: Exception occured in J2EEC Phase
    com.sun.enterprise.deployment.backend.IASDeploymentException: Operation 'createWebModule' failed in 'applications' Config Mbean.
    Target exception message: ADMVAL1053: Attribute value (context-root = webclient) is not unique in list of Web module context roots.
    ADMVAL1070: Create of web module is rejected.
        at com.sun.enterprise.admin.MBeanHelper.extractAndWrapTargetException(MBeanHelper.java:419)
        at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:470)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
        at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:77)
        at $Proxy1.invoke(Unknown Source)
        at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:297)
        at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.addToConfig(DeploymentServiceUtils.java:756)
        at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:179)
        at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:95)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:871)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:263)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:281)
        at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.deploy(ApplicationsConfigMBean.java:534)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:353)
        at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:336)
        at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:448)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
        at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:77)
        at $Proxy1.invoke(Unknown Source)
        at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:297)
        at com.sun.enterprise.deployment.autodeploy.AutoDeployer.invokeDeploymentService(AutoDeployer.java:413)
        at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deploy(AutoDeployer.java:394)
        at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployAll(AutoDeployer.java:253)
        at com.sun.enterprise.deployment.autodeploy.AutoDeployControllerImpl$AutoDeployTask.run(AutoDeployControllerImpl.java:358)
        at java.util.TimerThread.mainLoop(Timer.java:512)
        at java.util.TimerThread.run(Timer.java:462)
    Jun 29, 2008 4:20:29 PM com.sun.enterprise.deployment.phasing.PEDeploymentService$AuditInfo reportEnd
    INFO: Deployment by user Unknown of module webclient.war_WEB-INF_classes_servlet_DbServlet (type=Web Module) failed, elapsed time 125 ms
    Jun 29, 2008 4:20:29 PM com.sun.enterprise.deployment.autodeploy.AutoDeployer parseResult
    SEVERE: "DPL8011: autodeployment failure while deploying the application : Operation 'createWebModule' failed in 'applications' Config Mbean.
    Target exception message: ADMVAL1053: Attribute value (context-root = webclient) is not unique in list of Web module context roots.
    ADMVAL1070: Create of web module is rejected.
    "
    Jun 29, 2008 4:20:29 PM com.sun.enterprise.deployment.autodeploy.AutoDeployer invokeDeploymentService
    INFO: [AutoDeploy] Autodeploy failed : E:\Java\JEEServer\glassfish\domains\domain1\autodeploy\webclient.war\WEB-INF\classes\servlet\DbServlet.class.
    
    #286483 Reply

    Loyal Water
    Member

    Were you able to start GF from with MyEclipse without issues? Did the console show any errors while starting the server?

    Can you go to MyEclipse > Installation Summary > Installation Details and paste the information here for me.

    #286492 Reply

    hoaivan
    Member

    Here is GF startup console log:

    Jun 30, 2008 8:50:45 PM com.sun.enterprise.server.PEMain main
    INFO: Starting Sun Java System Application Server Platform Edition 9.0_01 (build b02-p01) ...
    Jun 30, 2008 8:50:48 PM com.sun.enterprise.server.ss.ASLazyKernel startASSocketServices
    INFO: CORE5098: AS Socket Service Initialization has been completed.
    Jun 30, 2008 8:50:48 PM com.sun.enterprise.server.ApplicationServer printStartupInfo
    INFO: CORE5076: Using [Java HotSpot(TM) Client VM, Version 1.5.0_13] from [Sun Microsystems Inc.]
    Jun 30, 2008 8:50:49 PM com.sun.enterprise.security.SecurityLifecycle <init>
    INFO: SEC1002: Security Manager is OFF.
    Jun 30, 2008 8:50:51 PM com.sun.enterprise.admin.server.core.AdminService init
    INFO: ADM0001:MBeanServer initialized successfully
    Jun 30, 2008 8:50:52 PM com.sun.enterprise.security.PolicyLoader loadPolicy
    INFO: SEC1143: Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.
    Jun 30, 2008 8:50:52 PM com.sun.enterprise.management.selfmanagement.SelfManagementService onInitialization
    INFO: sgmt.service_initialized
    Jun 30, 2008 8:50:59 PM com.sun.enterprise.admin.server.core.AdminService initializeAMXMBeans
    INFO: ADM1079: Initialization of AMX MBeans successful
    Jun 30, 2008 8:51:00 PM com.sun.enterprise.admin.jmx.remote.server.rmi.JmxConnectorServerDriver logJconsoleStartup
    INFO: ADM1504: Here is the JMXServiceURL for the Standard JMXConnectorServer: [service:jmx:rmi:///jndi/rmi://home:8686/jmxrmi].  This is where the remote administrative clients should connect using the standard JMX connectors
    Jun 30, 2008 8:51:00 PM com.sun.enterprise.admin.jmx.remote.server.rmi.JmxConnectorServerDriver logJconsoleStartup
    INFO: ADM1506: Status of Standard JMX Connector: Active = [true]
    Jun 30, 2008 8:51:01 PM com.sun.enterprise.web.PEWebContainer startInstance
    INFO: WEB0302: Starting Sun-Java-System/Application-Server.
    Jun 30, 2008 8:51:02 PM com.sun.enterprise.web.WebContainer loadWebModule
    INFO: WEB0100: Loading web module [__default-admingui] in virtual server [__asadmin] at [/]
    Jun 30, 2008 8:51:03 PM com.sun.enterprise.web.WebContainer loadWebModule
    INFO: WEB0100: Loading web module [adminapp] in virtual server [__asadmin] at [/web1]
    Jun 30, 2008 8:51:03 PM com.sun.enterprise.web.WebContainer loadWebModule
    INFO: WEB0100: Loading web module [admingui] in virtual server [__asadmin] at [/asadmin]
    Jun 30, 2008 8:51:03 PM com.sun.enterprise.web.WebContainer loadWebModule
    INFO: WEB0100: Loading web module [webclient.war_WEB-INF_classes_servlet_DbServlet] in virtual server [server] at [/webclient]
    Jun 30, 2008 8:51:04 PM com.sun.faces.config.ConfigureListener contextInitialized
    INFO: Initializing Sun's JavaServer Faces implementation (1.2_02-b03-FCS) for context '/asadmin'
    Jun 30, 2008 8:51:06 PM com.sun.faces.config.ConfigureListener contextInitialized
    INFO: Completed initializing Sun's JavaServer Faces implementation (1.2_02-b03-FCS) for context '/asadmin'
    Jun 30, 2008 8:51:07 PM com.sun.faces.config.ConfigureListener contextInitialized
    INFO: Initializing Sun's JavaServer Faces implementation (1.2_02-b03-FCS) for context ''
    Jun 30, 2008 8:51:07 PM com.sun.faces.config.ConfigureListener contextInitialized
    INFO: Completed initializing Sun's JavaServer Faces implementation (1.2_02-b03-FCS) for context ''
    Jun 30, 2008 8:51:08 PM com.sun.enterprise.web.connector.grizzly.GrizzlyHttpProtocol start
    INFO: WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 8080
    Jun 30, 2008 8:51:08 PM com.sun.enterprise.web.connector.grizzly.GrizzlyHttpProtocol start
    INFO: WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 8181
    Jun 30, 2008 8:51:08 PM com.sun.enterprise.web.connector.grizzly.GrizzlyHttpProtocol start
    INFO: WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 4848
    Jun 30, 2008 8:51:08 PM com.sun.enterprise.server.ondemand.SystemAppLoader loadSystemApps
    INFO: About to load the system app: __JWSappclients
    Jun 30, 2008 8:51:09 PM com.sun.enterprise.web.WebContainer loadWebModule
    INFO: WEB0100: Loading web module [__JWSappclients:sys.war] in virtual server [server] at [/__JWSappclients]
    Jun 30, 2008 8:51:09 PM com.sun.enterprise.management.selfmanagement.SelfManagementService onReady
    INFO: SMGT0007: Self Management Rules service is enabled
    Jun 30, 2008 8:51:09 PM com.sun.enterprise.server.PEMain main
    INFO: Application server startup complete.

    Installation details:

    *** Date: 
    Monday, June 30, 2008 8:52:41 PM ICT
    
    ** System properties:
    OS=WindowsXP
    OS version=5.1
    Java version=1.5.0_11
    
    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    Version: 6.5.0 GA
    Build id: 6.5.0-GA-20080609
    
    *** Eclipse details:
    MyEclipse Enterprise Workbench
    
    Version: 6.5.0 GA
    Build id: 6.5.0-GA-20080609
    Eclipse Platform
    
    Version: 3.3.3.r33x_r20080129-_19UEl7Ezk_gXF1kouft
    Build id: M20080221-1800
    
    Eclipse RCP
    Version: 3.3.3.r33x_r20080129-8y8eE9UEUWI6qujeED0xT7bc
    Build id: M20080221-1800
    
    Eclipse Java Development Tools
    Version: 3.3.2.r33x_r20080129-7o7jE7_EDhYDiyVEnjb1pFd7ZGD7
    Build id: M20080221-1800
    
    Eclipse Plug-in Development Environment
    
    Version: 3.3.3.r33x_r20080129-7N7M5DQVIA_6oJsEFkEL
    Build id: M20080221-1800
    
    Eclipse Project SDK
    
    Version: 3.3.3.r33x_r20080129-7M7J7LB-u3aphGW6o3_VmiVfGXWO
    Build id: M20080221-1800
    
    Eclipse Graphical Editing Framework
    
    Version: 3.3.2.v20080129
    Build id: 20080221-1602
    
    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -showsplash
    -launcher
    C:\Program Files\MyEclipse 6.5\eclipse\eclipse.exe
    -name
    Eclipse
    --launcher.library
    C:\Program Files\MyEclipse 6.5\eclipse\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.3.R33x_v20080118\eclipse_1023.dll
    -startup
    C:\Program Files\MyEclipse 6.5\eclipse\plugins\org.eclipse.equinox.launcher_1.0.1.R33x_v20080118.jar
    -exitdata
    970_78
    -clean
    -vm
    C:\Program Files\MyEclipse 6.5\jre\bin\javaw.exe

    i’m able to deploy this simple webapp on geronimo and run without any error.

    #286647 Reply

    Loyal Water
    Member

    What build of GF are you using?

    #286771 Reply

    hoaivan
    Member

    GF v2ur2

    #286859 Reply

    Loyal Water
    Member

    I was just doing some research and it seems like there are some anti viruses (like Kaspersky) or firewalls might cause this issue?

    Could disable any of these incase you have then enabled and test the deployment again. I just want to make sure that you are not facing the same issue.

    #287016 Reply

    hoaivan
    Member

    i did uninstall my kav and turn off window firewall. Still got it!

    #287039 Reply

    hoaivan
    Member

    it should be notes that i’m able to deploy as package mode and got error in exploded mode

    #287113 Reply

    Loyal Water
    Member

    There is something I would like you to try:-
    1. Fire up Glassfish from inside ME (remove all deployments pending if they are any BEFORE starting up)
    2. Open up the admin console (http://localhost:4848, admin/admin by default)
    3. Check installed app, does you see webclient in there? If so, uninstall it, then try from ME again.

    #287463 Reply

    hoaivan
    Member

    i tried it and still got the same error

    #287502 Reply

    Riyad Kalla
    Member

    Quick check, if you remove the deplioyment from MyEclipse, and start up Glassfish, and login to the admin console, do you not see the app listed at all? It’s possible Glassfish keeps picking up the WAR and redeploying on startup over and over and over.

    The quick-fix would also just be doing a clean Glassfish 2 install and erasing what is there.

Viewing 11 posts - 1 through 11 (of 11 total)
Reply To: fail to deploy web app to glassfish v2 via MyEclipse

You must be logged in to post in the forum log in