Websphere integration

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
9 comments
Comment actions Permalink

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

Hi,

i'm trying to use the websphere run configuration integration in a
desperat e attempt to get rid of IBM RAD which is ... <censored>

I tried to configure IDEA by setting my RAD was6 runtime as the
Websphere H
ome ($RAD HOME$/runtimes/base v6). IDEA then adds the bundled j2ee.jar
to t
he 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 th e spawned java process IDEA comes back to life with the
attached error mess age

The WAS server seems to try to startup as the following is written in
the s
tartServer.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
en
abled: 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/profil
es/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\I
BM\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\r
untime
Classpath = c:\program files\HSBC\IBM\RAD\runtimes\base
v6/profiles/defau
lt\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 fi
les\HSBC\IBM\RAD\runtimes\base v6\lib\j2ee.jar;C:\program
files\HSBC\IBM\RA
D\runtimes\base v6\lib\lmproxy.jar;C:\program
files\HSBC\IBM\RAD\runtimes\b
ase v6\lib\urlprotocols.jar
Java Library path = C:\program files\HSBC\IBM\RAD\runtimes\base
v6\java\b
in;.;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\
NSDK3
2\;Z:\NSDK\NSDK16;Z:\BUSATLAS\16;Z:\BUSATLAS\32;Z:\RELEVE\BIN;Z:\RELEV
E\DLL
;Z:\JANUS\BIN;Z:\MRC;Z:\FRAISPRO\32BITS;Z:\ARCO;Z:\OPENPRINT;Z:\RTEDIA
TLAS;
Z:\RTEDIATLAS\OPB\BIN;Z:\MQCLIENT\32\BIN;Z:\MQCLIENT\32\CSD02\BIN;Z:\T
UXEDO
\BIN;Z:\VISUAL;Z:\OPX2\PROD\BIN;Z:\GCTBAD\SERVICES\BIN;C:\Documents
and Set
tings\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ém
arrage de l'outil avec le profil default
I can't see anything meaningfull in the idea.log.

Any help appreciated :)

---
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


0
Comment actions Permalink

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

0
Comment actions Permalink

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

0
Comment actions Permalink

If I try to run the generated "my_start_server.bat" using a shell i get an error message
"Command line too long"

0
Comment actions Permalink

Hello Thibaut,

It seems that you miss the last parameter in a command line: .. (2 dots)
after -fromWinService.

here it goes :
("ParamŠtre requis pour l'option " means "Parameter required for
option")
ADMU9992E: ParamŠtre requis pour l'option : -fromWinService
Syntaxe : startServer <serveur>
options : -nowait
-quiet
-logfile <nom fichier>
-replacelog
-trace
-script [<nom fichier script>]
-timeout <secondes>
-statusport <num‚ro port>
-profileName <profil>
-help
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
ava:85)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
ava:58)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
orImpl.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(W
sServerController.java:198)
at
com.ibm.ws.management.tools.WsServerController.writeExitCode(WsServerC
ontroller.java:334)
at
com.ibm.ws.management.tools.WsServerLauncher.main(WsServerLauncher.jav
a:114)
... 6 more

---
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


0
Comment actions Permalink

yes i forgot it the first time, please check my previous messages

0
Comment actions Permalink

Hello Thibaut,

Please post the content of this file here.

If I try to run the generated "my_start_server.bat" using a shell i
get an error message "Command line too long"

---
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


0
Comment actions Permalink

"Thibaut" <no_reply@jetbrains.com> wrote in message
news:23132549.1145968501700.JavaMail.itn@is.intellij.net...

If I try to run the generated "my_start_server.bat" using

a shell i get an error message

"Command line too long"


Win95 ?

0
Comment actions Permalink

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.

0

Please sign in to leave a comment.