Websphere integration Follow
Hi,
i'm trying to use the websphere run configuration integration in a desperate attempt to get rid of IBM RAD which is ... ]]>
I tried to configure IDEA by setting my RAD was6 runtime as the Websphere Home ($RAD_HOME$/runtimes/base_v6). IDEA then adds the bundled j2ee.jar to the application server classpath.
I configured my Project JDK to the WAS bundled JDK (in $RAD_HOME$/runtimes/base_v6/java).
I finally added my EAR as a deployed module.
And then tried to start the server using the IDEA run button.
A compile window pops up, but never goes away, hanging IDEA. When i kill the spawned java process IDEA comes back to life with the attached error message
The WAS server seems to try to startup as the following is written in the startServer.log
Start Display Current Environment ************
Host Operating System is Windows 2000, version 5.0
Java version = J2RE 1.4.2 IBM Windows 32 build cn142sr1w-20041028 (JIT enabled: jitc), Java Compiler = jitc, Java VM name = Classic VM
was.install.root = C:\program files\HSBC\IBM\RAD\runtimes\base_v6
user.install.root = c:\program files\HSBC\IBM\RAD\runtimes\base_v6/profiles/default
Java Home = C:\program files\HSBC\IBM\RAD\runtimes\base_v6\java\jre
ws.ext.dirs = C:\program files\HSBC\IBM\RAD\runtimes\base_v6\java\lib;C:\program files\HSBC\IBM\RAD\runtimes\base_v6\classes;C:\program files\HSBC\IBM\RAD\runtimes\base_v6\lib;C:\program files\HSBC\IBM\RAD\runtimes\base_v6\installedChannels;C:\program files\HSBC\IBM\RAD\runtimes\base_v6\lib\ext;C:\program files\HSBC\IBM\RAD\runtimes\base_v6\web\help;C:\Program Files\HSBC\IBM\RAD\runtimes\base_v6\deploytool\itp\plugins\com.ibm.etools.ejbdeploy\runtime
Classpath = c:\program files\HSBC\IBM\RAD\runtimes\base_v6/profiles/default\properties;C:\program files\HSBC\IBM\RAD\runtimes\base_v6\properties;C:\program files\HSBC\IBM\RAD\runtimes\base_v6\lib\bootstrap.jar;C:\program files\HSBC\IBM\RAD\runtimes\base_v6\lib\j2ee.jar;C:\program files\HSBC\IBM\RAD\runtimes\base_v6\lib\lmproxy.jar;C:\program files\HSBC\IBM\RAD\runtimes\base_v6\lib\urlprotocols.jar
Java Library path = C:\program files\HSBC\IBM\RAD\runtimes\base_v6\java\bin;.;C:\WINNT\system32;C:\WINNT;C:\program files\HSBC\IBM\RAD\runtimes\base_v6\bin;C:\program files\HSBC\IBM\RAD\runtimes\base_v6\java\bin;C:\program files\HSBC\IBM\RAD\runtimes\base_v6\java\jre\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;Z:\MQCLIENT\16\BIN;Z:\MQCLIENT\16\DLL;Z:\NSDK\NSDK32\;Z:\NSDK\NSDK16;Z:\BUSATLAS\16;Z:\BUSATLAS\32;Z:\RELEVE\BIN;Z:\RELEVE\DLL;Z:\JANUS\BIN;Z:\MRC;Z:\FRAISPRO\32BITS;Z:\ARCO;Z:\OPENPRINT;Z:\RTEDIATLAS;Z:\RTEDIATLAS\OPB\BIN;Z:\MQCLIENT\32\BIN;Z:\MQCLIENT\32\CSD02\BIN;Z:\TUXEDO\BIN;Z:\VISUAL;Z:\OPX2\PROD\BIN;Z:\GCTBAD\SERVICES\BIN;C:\Documents and Settings\E9310750\Progs\IntegrityClient\bin;C:\Documents and Settings\E9310750\progs\Subversion\bin;C:\Documents and Settings\E9310750\Progs\maven-2.0.4\bin
Current trace specification = *=info
End Display Current Environment *************
0000000a ManagerAdmin I TRAS0017I: L'état de démarrage de la trace est *=info.
0000000a AdminTool A ADMU0128I: Démarrage de l'outil avec le profil default
I can't see anything meaningfull in the idea.log.
Any help appreciated :)
Attachment(s):
Clipboard02.jpg
Please sign in to leave a comment.
Hello Thibaut,
Please do the following:
1) execute from $RAD HOME$\runtimes\base v6\profiles\default\bin folder the
following command:
startServer.bat server1 -script my_start_server.bat -fromWinService ..
2) post here an output from console
---
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
here it goes :
("ParamŠtre requis pour l'option " means "Parameter required for option")
ADMU9992E: ParamŠtre requis pour l'option : -fromWinService
Syntaxe : startServer ]]>
options : -nowait
-quiet
-logfile -replacelog -trace -script []]>]
-timeout -statusport -profileName ]]>
-help
java.lang.reflect.InvocationTargetException
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.ws.bootstrap.WSLauncher.main(WSLauncher.java:190)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 7
at com.ibm.ws.management.tools.WsServerController.getExitStatusFileName(WsServerController.java:198)
at com.ibm.ws.management.tools.WsServerController.writeExitCode(WsServerController.java:334)
at com.ibm.ws.management.tools.WsServerLauncher.main(WsServerLauncher.java:114)
... 6 more
ooops sorry, i missed the ".." after the -fromWinService
Here is the correct output
C:\Program Files\HSBC\IBM\RAD\runtimes\base_v6\profiles\default\bin> startServer.bat server1 -script my_start_server.bat -fromWinService ..
ADMU0116I: Les informations sur les outils sont journalisées dans le fichier c:\program files\HSBC\IBM\RAD\runtimes\base_v6\profiles\default\logs\server1\startServer.log
ADMU0128I: Démarrage de l'outil avec le profil default
ADMU3100I: Lecture de la configuration du serveur : server1
ADMU3300I: Script de lancement du serveur créé : my_start_server.bat
here is a rough translation of the french messages
ADMU0116I: Informations on the tools are logged in the file c:\program files\HSBC\IBM\RAD\runtimes\base_v6\profiles\default\logs\server1\startServer.log
ADMU0128I: Tool starting with default profile
ADMU3100I: Reading configuration of server : server1
ADMU3300I: server Start script created : my_start_server.bat
And here is the generated script
@REM my_start_server.bat
@REM Generated: Tue Apr 25 14:26:56 CEST 2006
@setlocal
@echo off
@REM Bootstrap values ...
call "%~dp0setupCmdLine.bat"
@REM For debugging the server process:
@REM set DEBUG=-Djava.compiler=NONE -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=7777
@REM Environment Settings
SET PATH=%WAS_PATH%
@REM Launch Command
"c:\program files\HSBC\IBM\RAD\runtimes\base_v6/java/bin/java" %DEBUG% "-Xbootclasspath/p:c:\program files\HSBC\IBM\RAD\runtimes\base_v6/java/jre/lib/ext/ibmorb.jar;c:\program files\HSBC\IBM\RAD\runtimes\base_v6/java/jre/lib/ext/ibmext.jar" "-classpath" "c:\program files\HSBC\IBM\RAD\runtimes\base_v6/profiles/default/properties;c:\program files\HSBC\IBM\RAD\runtimes\base_v6/properties;c:\program files\HSBC\IBM\RAD\runtimes\base_v6/lib/bootstrap.jar;c:\program files\HSBC\IBM\RAD\runtimes\base_v6/lib/j2ee.jar;c:\program files\HSBC\IBM\RAD\runtimes\base_v6/lib/lmproxy.jar;c:\program files\HSBC\IBM\RAD\runtimes\base_v6/lib/urlprotocols.jar" "-Xms50m" "-Xmx256m" "-Dws.ext.dirs=c:\program files\HSBC\IBM\RAD\runtimes\base_v6/java/lib;c:\program files\HSBC\IBM\RAD\runtimes\base_v6/profiles/default/classes;c:\program files\HSBC\IBM\RAD\runtimes\base_v6/classes;c:\program files\HSBC\IBM\RAD\runtimes\base_v6/lib;c:\program files\HSBC\IBM\RAD\runtimes\base_v6/installedChannels;c:\program files\HSBC\IBM\RAD\runtimes\base_v6/lib/ext;c:\program files\HSBC\IBM\RAD\runtimes\base_v6/web/help;c:\program files\HSBC\IBM\RAD\runtimes\base_v6/deploytool/itp/plugins/com.ibm.etools.ejbdeploy/runtime" "-Dcom.ibm.itp.location=c:\program files\HSBC\IBM\RAD\runtimes\base_v6/bin" "-Djava.util.logging.configureByServer=true" "-Dibm.websphere.preload.classes=true" "-Duser.install.root=c:\program files\HSBC\IBM\RAD\runtimes\base_v6/profiles/default" "-Dwas.install.root=c:\program files\HSBC\IBM\RAD\runtimes\base_v6" "-Djava.util.logging.manager=com.ibm.ws.bootstrap.WsLogManager" "-Ddb2j.system.home=c:\program files\HSBC\IBM\RAD\runtimes\base_v6/cloudscape" "-Dserver.root=c:\program files\HSBC\IBM\RAD\runtimes\base_v6/profiles/default" "-Xquickstart" "-Djava.security.auth.login.config=c:\program files\HSBC\IBM\RAD\runtimes\base_v6/profiles/default/properties/wsjaas.conf" "-Djava.security.policy=c:\program files\HSBC\IBM\RAD\runtimes\base_v6/profiles/default/properties/server.policy" "com.ibm.ws.bootstrap.WSLauncher" "com.ibm.ws.runtime.WsServer" "c:\program files\HSBC\IBM\RAD\runtimes\base_v6/profiles/default\config" "FR0010000006142Node01Cell" "FR0010000006142Node01" "server1"
@endlocal
If I try to run the generated "my_start_server.bat" using a shell i get an error message
"Command line too long"
Hello Thibaut,
It seems that you miss the last parameter in a command line: .. (2 dots)
after -fromWinService.
---
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
yes i forgot it the first time, please check my previous messages
Hello Thibaut,
Please post the content of this file here.
---
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Thibaut" <no_reply@jetbrains.com> wrote in message
news:23132549.1145968501700.JavaMail.itn@is.intellij.net...
a shell i get an error message
Win95 ?
no, I'm using Windows 2000.
i've tried defining a subst on $RAD_HOME$/runtimes/base_v6.
If i do that, and manually modify the generated script by Find/replace using the defined virtual drive, the server then starts fine.
I then tried defining a new Application Server in IDEA using the defined virual drive, it didn't work any better, because RAD hardcopies the installation directory in a lot of configuration files.