• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Unable to run ejbdeploy.bat

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
On WAS 6.0

I am trying to run "ejbdeploy" on a jar containing complied ejb classes.

I get the following error:
C:\newSecure\buildtemp>ejbdeploy SMEJBTemp.jar C:\newSecure\buildtemp\rmicTemp SMEJB.jar -rmic verbose
Starting workbench.
Creating the project.
[*Error] An unexpected exception was thrown. Halting execution.
Shutting down workbench.

Error executing deployment: java.lang.NullPointerException. Error is null.
java.lang.NullPointerException
at com.ibm.etools.archive.j2ee.operations.J2EEImportOperation.doExecute(J2EEImportOperation.java:52)
at com.ibm.etools.archive.j2ee.operations.J2EEImportOperation.execute(J2EEImportOperation.java:45)
at com.ibm.wtp.common.operation.WTPOperation.doRun(WTPOperation.java:234)
at com.ibm.wtp.common.operation.WTPOperation$1.run(WTPOperation.java:168)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1673)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1693)
at com.ibm.wtp.common.operation.WTPOperation.run(WTPOperation.java:186)
at com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension.createJarProject(BatchExtension.java:1122)
at com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension.runJarDeploy(BatchExtension.java:850)
at com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension.access$1(BatchExtension.java:847)
at com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension$RunDeploy.run(BatchExtension.java:290)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1673)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1693)
at com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension$RunDeploy.execute(BatchExtension.java:272)
at com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension.run(BatchExtension.java:235)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java:391)
at com.ibm.etools.ejbdeploy.batch.impl.BootLoaderLoader.run(BootLoaderLoader.java:390)
at com.ibm.etools.ejbdeploy.batch.impl.BatchDeploy.execute(BatchDeploy.java:144)
at com.ibm.etools.ejbdeploy.EJBDeploy.execute(EJBDeploy.java:83)
at com.ibm.etools.ejbdeploy.EJBDeploy.main(EJBDeploy.java:312)
EJBDeploy level: dms0444.09


On opening the file "ejbdeploy.bat" the following can be seen.....
......................................................................
@rem Copyright IBM Corp. 2001
@echo off
setlocal
if "%ITP_LOC%"=="" call setupCmdLine.bat
if "%ITP_LOC%"=="" goto darn

set bootpath=%ITP_LOC%\batchboot.jar;%JAVA_HOME%\jre\lib\ext\iwsorbutil.jar
set ejbd_cp=%ITP_LOC%\batch2.jar;%ITP_LOC%\batch2_nl1.jar

"%JAVA_HOME%\bin\java" -Dwebsphere.lib.dir="%WAS_HOME%\lib" -Dws.ext.dirs="%WAS_EXT_DIRS%" -Dcom.ibm.sse.model.structuredbuilder="off" -cp "%ejbd_cp%" -Xbootclasspath/a:"%bootpath%" -Xmx256M com.ibm.etools.ejbdeploy.EJBDeploy %*
goto end

arn
echo need to set ITP_LOC

:end

endlocal
......................................................................

I checked my folders and found that batch2_nl1.jar in location %ITP_LOC% is absent.

Has anybody else faced this problem?

Any solutions? What avenues do I explore to solve this problem....


BTW: A temp folder "rmicTemp" is created which has a file rmicTemp\SMEJB._\.metadata\.log

This .log file contains the entry:


!SESSION Mar 17, 2006 16:25:38.162 ---------------------------------------------
eclipse.buildId=unknown
java.fullversion=J2RE 1.4.2 IBM Windows 32 build cn142sr1w-20041028 (JIT enabled: jitc)
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_GB
Command-line arguments: -application com.ibm.etools.ejbdeploy.batch_extension

!ENTRY org.eclipse.core.runtime Mar 17, 2006 16:25:38.162
!MESSAGE Product org.eclipse.platform.ide could not be found.



The last line "...ide could not be found" seems to be a common problem when we check the forums. No clean solution to this problem can be found on those forums.


Thanks,
vivek
 
Put the moon back where you found it! We need it for tides and poetry and stuff. Like this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic