Bugs item #815214, was opened at 2003-09-30 16:11
Message generated for change (Comment added) made by mtalamona
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=815214&group_id=22866

Category: JBoss-IDE
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Martin Talamona (mtalamona)
Assigned to: Laurent Etiemble (letiemble)
Summary: -classpath option doesn't work

Initial Comment:
Launching jboss within eclipse the -classpath (or -cp) 

VM option has no effect.



OS: WinXP pro

JDK: 1.4.1_02

ECLIPSE: 2.1.1

JBOSS-IDE: 1.2.0

----------------------------------------------------------------------

>Comment By: Martin Talamona (mtalamona)
Date: 2003-10-02 07:45

Message:
Logged In: YES 
user_id=751159

sorry that i didn't note the version of jboss we are using.

we use jboss 2.4.7, and there is no classpath tab...





----------------------------------------------------------------------

Comment By: Laurent Etiemble (letiemble)
Date: 2003-10-01 17:01

Message:
Logged In: YES 
user_id=437455

I was completly off-topic with the run.bat.



I look in depth the launcher plugin and saw that the VM args

are picked properly (as long as it is not -cp). Classpath is

handled separatly: it is a limitation of Eclipse.



If you want to set-up a custom classpath, you have to

specifiy each jar in the "Classpath" tab of your JBoss

configuration. Be sure to uncheck the "Use the default

classpath" to allow addition of jars.



As I didn't have too much time, can you try and give some

feedback ?



----------------------------------------------------------------------

Comment By: Martin Talamona (mtalamona)
Date: 2003-10-01 08:34

Message:
Logged In: YES 
user_id=751159

we use the -cp option long ago to start jboss. here is our 

start command (executed by a phyton script, we don't use 

the run.bat file):



c:/j2sdk1.4.1_02/bin/java   -Djava.compiler=NONE  -

Dpython.path=e:/new_workspace/CH.obj.Core/src/CH/obj/Scri

pts;e:/new_workspace/CH.obj.UnitTesting/src/CH/obj/UnitTes

ting;N:/bin/jython/Lib;N:/java/lib/CH/obj/Scripts;N:/java/lib/C

H/obj/UnitTesting -Dpython.home=N:/bin/jython -DLOGFILE= -

DIT_IORS_USE_DNS=true -

Xbootclasspath/p:N:/java/lib/ext/xalan.jar;N:/java/lib/ext/xerc

es.jar;N:/java/lib/ext/xml-apis.jar -DBISON_ROOT=N: -

DBISONNEIGHBORHOOD=mandolin -Dbison.console=on -

Xmx800m  -

Dorg.omg.CORBA.ORBClass=IE.Iona.OrbixWeb.CORBA.ORB -

Dorg.omg.CORBA.ORBSingletonClass=IE.Iona.OrbixWeb.CORBA.

SingletonORB -DJBOSS_USE_LOCAL_SERVICES=true -

classpath 

run.jar;e:/new_workspace/external/bin;e:/new_workspace/CH.

obj.Core/bin;e:/new_workspace/CH.obj.Tools/bin;e:/new_work

space/CH.obj.di/bin;e:/new_workspace/CH.obj.printing/bin;c:/j

2sdk1.4.1_02/lib/tools.jar;N:/java/lib;N:/java/lib/bisonInfra.jar;

N:/java/lib/bisonAppl.jar;N:/java/lib/jt400.jar org.jboss.Main

bison



so i tried to start jboss with the same VM arguments with 

jboss-ide within eclipse. the effect is, that the classes 

(mbeans, ejbeans ...) cannot be found. executing the same 

command at the command-prompt without eclipse, all is well. 



i also tried to modify the jboss.conf file for extending the 

classpath. it seems to work (the beans are successful 

deployed). but in this way we cannot access system-

resources over the classloader for example 

(Classloader.getSystemResourceAsStream...), because the -

cp option is ineffective.



Run.bat uses the JBOSS_CLASSPATH variable to extend the -

classpath option. i tried this using the above definition and 

this also works fine.

for me it seems that the eclipse launcher that is starting 

jboss with javaw.exe is ignoring the -classpath option... 



----------------------------------------------------------------------

Comment By: Laurent Etiemble (letiemble)
Date: 2003-10-01 06:31

Message:
Logged In: YES 
user_id=437455

Can you give an example of what you put as -classpath value ?



I have take a look at the run.bat script, and it seems that

the -classpath switch is already used to setup the JBoss

classpath.



Have you try to mimic the launch by setting by hand the -cp

switch in the run.bat script ?



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=815214&group_id=22866


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to