facebook

Ear Redeploy Problem

  1. MyEclipse IDE
  2.  > 
  3. WebSphere Development
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #323422 Reply

    Hayward
    Member

    MyEclipse 10.0.2
    Websphere 7.0.0.21
    Windows XP

    I created a test ear project with ejb and web to test MyEclipse deployment to Websphere. The deployment was ok for awhile during my incremental changes in ejb and web modules. Then, I added a csiiDS (datasource) to Websphere and the connection was tested successfully. Then, I added a resource-ref was added to web.xml.

    <resource-ref>
    <res-ref-name>jdbc/csiiDS</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    <res-sharing-scope>Shareable</res-sharing-scope>
    </resource-ref>

    This change caused the deployment fail. The ear in “Servers” view kept showing as “Redeploy”. There was a dialog box showing about maybe a problem with undeployment phase. Something could not be removed. I tried many things and eventually found this in the wsadmin.traceout:

    [17/02/12 9:26:07:640 EST] 00000000 AdminConfigCl A   WASX7208I: Validation settings in effect now: Level=HIGHEST, Cross-validation=true, Output file=C:/Program Files/IBM/WebSphere/AppServer/profiles/AppSrv02/logs/wsadmin.valout
    
    [17/02/12 9:26:07:671 EST] 00000000 AdminAppClien W   WASX7072E: The control service is not available.
    
    [17/02/12 9:26:09:953 EST] 00000000 AbstractShell A   WASX7303I: The following options are passed to the scripting environment and are available as arguments that are stored in the argv variable: "[C:\Program Files\IBM\WebSphere\AppServer\profiles\AppSrv02\installableApps\testEar.ear, B088382Node02Cell, B088382Node02, server1, testEar, {{"testEarWeb.war" "testEarWeb.war,WEB-INF/web.xml" default_host}}, {{.* .* AppDeploymentOption.Yes 1}}, false, true, true, C:/Program Files/MyEclipse Blue Edition/MyEclipse Blue Edition 10/configuration/org.eclipse.osgi/bundles/20/1/.cp/scriptutil/scriptutil.jar, C:/Program Files/IBM/WebSphere/AppServer/profiles/AppSrv02/installedApps/B088382Node02Cell/testEar.ear/testEarEJB.jar, 6.0, true]"
    
    [17/02/12 9:26:09:953 EST] 00000000 AbstractShell A   WASX7091I: Executing script: "C:\Program Files\MyEclipse Blue Edition\Common\plugins\com.genuitec.eclipse.blue.websphere7_9.0.0.me201110171954\installEAR_EJB3.jacl"
    
    [17/02/12 9:26:24:250 EST] 00000000 AbstractShell E   WASX7120E: Diagnostic information from exception with text "com.ibm.ws.scripting.ScriptingException: [b]WASX7109E: Insufficient data for install task "MapResRefToEJB[/b]
    
    
    
    ADMA0007E: A Validation error occurred in task Mapping resource references to resources.  The Java Naming and Directory Interface (JNDI) name is not specified for reference binding jdbc/csiiDS in module testEarWeb.war with EJB name ."
    
    " follows:
    
     com.ibm.ws.scripting.ScriptingException: WASX7109E: Insufficient data for install task "MapResRefToEJB
    
    
    
    ADMA0007E: A Validation error occurred in task Mapping resource references to resources.  The Java Naming and Directory Interface (JNDI) name is not specified for reference binding jdbc/csiiDS in module testEarWeb.war with EJB name ."
    
        at com.ibm.ws.scripting.AbstractShell.setAndThrowScriptingException(AbstractShell.java:1842)
    
        at com.ibm.ws.scripting.AdminAppClient.prepare(AdminAppClient.java:3131)
    
        at com.ibm.ws.scripting.AdminAppClient.commonPrepare(AdminAppClient.java:3044)
    
        at com.ibm.ws.scripting.AdminAppClient.doInstall(AdminAppClient.java:2150)
    
        at com.ibm.ws.scripting.AdminAppClient.doInstall(AdminAppClient.java:2036)
    
        at com.ibm.ws.scripting.AdminAppClient.install(AdminAppClient.java:1360)
    
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45)
    
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
    
        at java.lang.reflect.Method.invoke(Method.java:599)
    
        at tcl.lang.reflect.PkgInvoker.invokeMethod(PkgInvoker.java:125)
    
        at tcl.lang.JavaInvoke.call(JavaInvoke.java:263)
    
        at tcl.lang.JavaInvoke.callMethod(JavaInvoke.java:121)
    
        at tcl.lang.ReflectObject.cmdProc(ReflectObject.java:914)
    
        at tcl.lang.Parser.evalObjv(Parser.java:818)
    
        at tcl.lang.Parser.eval2(Parser.java:1221)
    
        at tcl.lang.Interp.eval(Interp.java:2222)
    
        at tcl.lang.Interp.eval(Interp.java:2276)
    
        at com.ibm.bsf.engines.jacl.JaclEngine.eval(Unknown Source)
    
        at com.ibm.bsf.util.BSFEngineImpl.exec(Unknown Source)
    
        at com.ibm.bsf.BSFManager$6.run(Unknown Source)
    
        at java.security.AccessController.doPrivileged(AccessController.java:251)
    
        at com.ibm.bsf.BSFManager.exec(Unknown Source)
    
        at com.ibm.ws.scripting.AbstractShell.executeScript(AbstractShell.java:1191)
    
        at com.ibm.ws.scripting.AbstractShell.run(AbstractShell.java:2204)
    
        at com.ibm.ws.scripting.WasxShell.main(WasxShell.java:1010)
    
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45)
    
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
    
        at java.lang.reflect.Method.invoke(Method.java:599)
    
        at com.ibm.wsspi.bootstrap.WSLauncher.launchMain(WSLauncher.java:213)
    
        at com.ibm.wsspi.bootstrap.WSLauncher.main(WSLauncher.java:93)
    
        at com.ibm.wsspi.bootstrap.WSLauncher.run(WSLauncher.java:74)
    
        at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
    
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
    
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
    
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
    
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
    
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45)
    
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
    
        at java.lang.reflect.Method.invoke(Method.java:599)
    
        at org.eclipse.core.launcher.Main.invokeFramework(Main.java:340)
    
        at org.eclipse.core.launcher.Main.basicRun(Main.java:282)
    
        at org.eclipse.core.launcher.Main.run(Main.java:981)
    
        at com.ibm.wsspi.bootstrap.WSPreLauncher.launchEclipse(WSPreLauncher.java:341)
    
        at com.ibm.wsspi.bootstrap.WSPreLauncher.main(WSPreLauncher.java:111)
    
    
    
    [17/02/12 9:26:24:250 EST] 00000000 AbstractShell A   WASX7093I: Issuing message: "WASX7017E: Exception received while running file "C:\Program Files\MyEclipse Blue Edition\Common\plugins\com.genuitec.eclipse.blue.websphere7_9.0.0.me201110171954\installEAR_EJB3.jacl"; exception information: com.ibm.ws.scripting.ScriptingException: WASX7109E: Insufficient data for install task "MapResRefToEJB
    
    
    
    ADMA0007E: A Validation error occurred in task Mapping resource references to resources.  The Java Naming and Directory Interface (JNDI) name is not specified for reference binding jdbc/csiiDS in module testEarWeb.war with EJB name .

    Why didn’t MyEclipse report “Insufficient data for install task “MapResRefToEJB”” to the user?

    #323456 Reply

    support-swapna
    Moderator

    Hayward ,

    Sorry that you are seeing this issue.

    1) Can you please attach the .log file which is located at <workspace dir>/.metadata/.log for us to investigate further ?

    2) Can you please attach a screenshot of the error that you see on the IDE for us to help get a visual ?

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Ear Redeploy Problem

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