Hi all,
I am trying to use the Command Pattern for an Application
that needs to be deployed in WebSphere 4.0.
I saw one ace.jar under %APPSERVER%\lib directory which had
some interface defined that could be used to implement the Command Pattern.
After adding ace.jar in the classpath(in the setupCmdline.bat), I had to include
many jar files in the classpath.I had to add the following :
SET
WAS_CLASSPATH=%WAS_HOME%\properties;%WAS_HOME%\lib\bootstrap.jar;%WAS_HOME%\lib\ace.jar;
SET WAS_CLASSPATH=%WAS_CLASSPATH%;D:\WebSphere\AppServer\lib\ras.jar;
SET WAS_CLASSPATH=%WAS_CLASSPATH%;D:\WebSphere\AppServer\lib\j2ee.jar;
SET WAS_CLASSPATH=%WAS_CLASSPATH%;D:\WebSphere\AppServer\lib\utils.jar;
SET WAS_CLASSPATH=%WAS_CLASSPATH%;D:\WebSphere\AppServer\lib\mofj2ee.jar;
SET WAS_CLASSPATH=%WAS_CLASSPATH%;D:\WebSphere\AppServer\lib\mof.jar;
SET WAS_CLASSPATH=%WAS_CLASSPATH%;D:\WebSphere\AppServer\lib\mofjava.jar;
SET WAS_CLASSPATH=%WAS_CLASSPATH%;D:\WebSphere\AppServer\lib\xerces.jar;
SET WAS_CLASSPATH=%WAS_CLASSPATH%;D:\WebSphere\AppServer\lib\commands.jar;
SET WAS_CLASSPATH=%WAS_CLASSPATH%;D:\WebSphere\AppServer\lib\websphere-validation.jar;
SET WAS_CLASSPATH=%WAS_CLASSPATH%;D:\WebSphere\AppServer\lib\j2eexml-xerces.jar;
SET WAS_CLASSPATH=%WAS_CLASSPATH%;D:\WebSphere\AppServer\lib\ws-base-extensions.jar;
SET WAS_CLASSPATH=%WAS_CLASSPATH%;D:\WebSphere\AppServer\lib\ws-base-bindings.jar;
SET WAS_CLASSPATH=%WAS_CLASSPATH%;D:\WebSphere\AppServer\lib\j2ee-validation.jar;
SET
SET WAS_CLASSPATH=%WAS_CLASSPATH%;D:\WebSphere\AppServer\lib\ras.jar;
SET WAS_CLASSPATH=%WAS_CLASSPATH%;D:\WebSphere\AppServer\lib\j2ee.jar;
SET WAS_CLASSPATH=%WAS_CLASSPATH%;D:\WebSphere\AppServer\lib\utils.jar;
SET WAS_CLASSPATH=%WAS_CLASSPATH%;D:\WebSphere\AppServer\lib\mofj2ee.jar;
SET WAS_CLASSPATH=%WAS_CLASSPATH%;D:\WebSphere\AppServer\lib\mof.jar;
SET WAS_CLASSPATH=%WAS_CLASSPATH%;D:\WebSphere\AppServer\lib\mofjava.jar;
SET WAS_CLASSPATH=%WAS_CLASSPATH%;D:\WebSphere\AppServer\lib\xerces.jar;
SET WAS_CLASSPATH=%WAS_CLASSPATH%;D:\WebSphere\AppServer\lib\commands.jar;
SET WAS_CLASSPATH=%WAS_CLASSPATH%;D:\WebSphere\AppServer\lib\websphere-validation.jar;
SET WAS_CLASSPATH=%WAS_CLASSPATH%;D:\WebSphere\AppServer\lib\j2eexml-xerces.jar;
SET WAS_CLASSPATH=%WAS_CLASSPATH%;D:\WebSphere\AppServer\lib\ws-base-extensions.jar;
SET WAS_CLASSPATH=%WAS_CLASSPATH%;D:\WebSphere\AppServer\lib\ws-base-bindings.jar;
SET WAS_CLASSPATH=%WAS_CLASSPATH%;D:\WebSphere\AppServer\lib\j2ee-validation.jar;
SET
WAS_CLASSPATH=% WAS_CLASSPATH%;D:\WebSphere\AppServer\deploytool\itp\plugins\com.ibm.etools.ejbdeploy\runtime\ejbdeploy.jar;
SET WAS_CLASSPATH=% WAS_CLASSPATH%;D:\WebSphere\AppServer\deploytool\itp\plugins\com.ibm.etools.ejbdeploy\runtime\batch.jar;
SET WAS_CLASSPATH=% WAS_CLASSPATH%;D:\WebSphere\AppServer\deploytool\itp\plugins\com.ibm.etools.ejbdeploy\runtime\batch.jar;
Now, When I tried to generate Deployment code using the AAT,
it is giving me the following error, which I am not able to figure
out:
Building:
/CommandServer.jar.
Invoking Java Builder on /CommandServer.jar.
Scrubbing output folder
Analyzing packages
Analyzing sources
Compiling content of ejbModule/com/cserver
(1 problem found) Copying all resources on the classpath
(1 problem found) Build done
Java build completed
Invoking Validation on /CommandServer.jar.
ejbModule/com/cserver/EJSRemoteStatelessCommandServer.java(-1): This compilation unit indirectly references the missing type com.ibm.websphere.command.CommandException (typically some required class file is referencing a type outside the classpath)
Shutting down workbench.
Execution Halted: Compilation Errors Reported
1 Errors, 0 Warnings, 0 Informational Messages
Delete undeployed module file C:\TEMP\CommandServer_ear\CommandServer_source.jar
Save the deployed modules as EAR file D:\WebSphere\AppServer\installableApps\Deployed_CommandServer.ear
Invoking Java Builder on /CommandServer.jar.
Scrubbing output folder
Analyzing packages
Analyzing sources
Compiling content of ejbModule/com/cserver
(1 problem found) Copying all resources on the classpath
(1 problem found) Build done
Java build completed
Invoking Validation on /CommandServer.jar.
ejbModule/com/cserver/EJSRemoteStatelessCommandServer.java(-1): This compilation unit indirectly references the missing type com.ibm.websphere.command.CommandException (typically some required class file is referencing a type outside the classpath)
Shutting down workbench.
Execution Halted: Compilation Errors Reported
1 Errors, 0 Warnings, 0 Informational Messages
Delete undeployed module file C:\TEMP\CommandServer_ear\CommandServer_source.jar
Save the deployed modules as EAR file D:\WebSphere\AppServer\installableApps\Deployed_CommandServer.ear
Any
pointers would be very helpful.
TIA,
Rahul Desai
Aztec Software,
Koramangala,
Bangalore.
