- This topic has 1 reply, 2 voices, and was last updated 16 years, 6 months ago by Riyad Kalla.
-
AuthorPosts
-
johnMemberI’m using Eclipse Build id: 6.0.1-GA-200710 (“all in one”) with Glassfish 2.x and Derby started properly on a Vista platform (installation details at bottom).
I’m following the EJB 3.x Tutorial which is available via Help.When I deploy, MyEclipse generates an IASDeploymentException and then “recovers” itself by doing an Autodeployment (successful).
Although the exception is “just” a warning, I think I should fix the cause.
When I then execute my application, MyEclipse generates 4 exceptions due to not finding the EJB, and then does an Autodeployment successfully.
The application then runs, but it also gets a JNDI exception due to not finding the EJB which is actually deployed.I think MyEclipse should not have to do Autodeploy if the application was already successfully deployed.
I get the same effect whether I deploy Exploded Archive or Packaged (although the Packaged option generates more than one Exception before it gives up an does the Autodeploy).Here is some of the exception:
WARNING: ADM1024:Undeployment failed - Detailed Message: com.sun.enterprise.deployment.backend.IASDeploymentException: Server Instance server does not have a reference to application MEE.jar_com_CalcTest. at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.getAndValidateDeploymentTarget(ApplicationsConfigMBean.java:270) at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.undeploy(ApplicationsConfigMBean.java:609) . . . INFO: [AutoDeploy] Selecting file C:\Java\glassfish\domains\kickstyle.net\autodeploy\MEE.jar\com\myeclipseide\ejb3\ICalc.class for autodeployment. May 13, 2008 9:10:09 AM com.sun.enterprise.deployment.phasing.PEDeploymentService$AuditInfo <init> INFO: Deployment by user Unknown of module MEE.jar_com_myeclipseide_ejb3_ICalc (type=Web Module) starting May 13, 2008 9:10:09 AM com.sun.enterprise.deployment.phasing.J2EECPhase runPhase INFO: deployed with moduleid = MEE.jar_com_myeclipseide_ejb3_ICalc May 13, 2008 9:10:10 AM com.sun.enterprise.web.WebContainer loadWebModule INFO: WEB0100: Loading web module [MEE.jar_com_myeclipseide_ejb3_ICalc] in virtual server [server] at [/ICalc] May 13, 2008 9:10:10 AM com.sun.enterprise.deployment.phasing.PEDeploymentService$AuditInfo reportEnd INFO: Deployment by user Unknown of module MEE.jar_com_myeclipseide_ejb3_ICalc (type=Web Module) completed successfully, elapsed time 885 ms May 13, 2008 9:10:10 AM com.sun.enterprise.deployment.autodeploy.AutoDeployer invokeDeploymentService INFO: [AutoDeploy] Successfully autodeployed : C:\Java\glassfish\domains\kickstyle.net\autodeploy\MEE.jar\com\myeclipseide\ejb3\ICalc.class.
Thanks in advance!
installation details…
*** Date: Sunday, May 11, 2008 11:53:38 PM ET*** Platform Details:
*** System properties:
awt.toolkit=sun.awt.windows.WToolkit
birt.viewer.working.path=C:\eclipse6\workspace\.metadata\.plugins\org.eclipse.birt.report.viewer
eclipse.buildId=M20070921-1145
eclipse.commands=-os
win32
-ws
win32
-arch
x86
-showsplash
-launcher
C:\eclipse6\MyEclipse6.0\eclipse\eclipse.exe
-name
Eclipse
–launcher.library
C:\eclipse6\MyEclipse6.0\eclipse\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.1.R33x_v20070828\eclipse_1020.dll
-startup
C:\eclipse6\MyEclipse6.0\eclipse\plugins\org.eclipse.equinox.launcher_1.0.1.R33x_v20070828.jar
-exitdata
1fa8_54
-vm
C:\eclipse6\MyEclipse6.0\jre\bin\javaw.exe
eclipse.ee.install.verify=false
eclipse.product=com.genuitec.myeclipse.product.ide
eclipse.startTime=1210550844479
eclipse.vm=C:\eclipse6\MyEclipse6.0\jre\bin\javaw.exe
eclipse.vmargs=-Xms128m
-Xmx512m
-Duser.language=en
-XX:PermSize=128M
-XX:MaxPermSize=256M
-jar
C:\eclipse6\MyEclipse6.0\eclipse\plugins\org.eclipse.equinox.launcher_1.0.1.R33x_v20070828.jar
eof=eof
file.encoding=Cp1252
file.encoding.pkg=sun.io
file.separator=\
java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
java.awt.printerjob=sun.awt.windows.WPrinterJob
java.class.path=C:\eclipse6\MyEclipse6.0\eclipse\plugins\org.eclipse.equinox.launcher_1.0.1.R33x_v20070828.jar
java.class.version=49.0
java.endorsed.dirs=C:\eclipse6\MyEclipse6.0\jre\lib\endorsed
java.ext.dirs=C:\eclipse6\MyEclipse6.0\jre\lib\ext
java.home=C:\eclipse6\MyEclipse6.0\jre
java.io.tmpdir=C:\Users\John\AppData\Local\Temp\
sdp-shared\bin
java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
java.runtime.version=1.5.0_11-b03<SNIP, please use MyEclipse > Installation Details > IInstallation Summary in the future>
Riyad KallaMemberThe EJB issue should be resolved by our other post here: https://www.genuitec.com/forums/topic/jndi-lookup-ejb-name-not-found/#post-284950
As for the deployment, it looks like Glassfish is generating an exception trying to undeploy the project. MyEclipse does not secretly do any deployments during start/stop cycles of a server. What I would suggest is to remove all deployments from MyEclipse. THen run Glassfish. Then open the admin console, and manually uninstall any applications listed.
Now restart Glassfish… are you still seeing deployment exceptions? If so, then it looks like a project got left in limbo and wasn’t cleaned up correctly. As long as it’s harmless you can probably ignore it.
-
AuthorPosts