Tomcat intergration problems - unable to launch target vm?


Can anybody offer advice on the Tomcat intergration in #662, I'm trying to
debug via the tomcat plugin, but whenever I attempt to debug (as opposed to
run - which seems to work) I get the message:
"unable to launch target vm" .. The target VM is 1.3.1_05 as tomcat
complained about 1.4.1 saying to was "too modern" .. whatever.. oh and I'm
using tomcat 4.0.5.

When I select "Launch server before debugger attaches" I tend to get the
message:
"Catalina.start: LifecycleException: null.open: java.net.BindException:
Address in use: JVM_Bind:8080"
- it seems IDEA? has left an orphan javaw.exe (tomcat?) process running;
which I can kill via the task manager, but the message just re-appears the
next time.

I've also tried running tomcat outside of IDEA and then attaching the
debugger to it; but I get the "unable to launch target vm" message again..
Havn't tried this before, so I don't know wether its a bug or bad config on
my side (much more likely).. again this orphaned process got in the way, but
after killing it tomcat will run, but the attaching/debugging bit still
escapes me.

any ideas?

thanks

Richard

--
Richard Osbaldeston
(http://www.osbald.co.uk)


5 comments
Comment actions Permalink

Hi Richard,

"JVM_Bind:8080" error is definitely because another process is already using
this port. Please try to reconfigure server.xml to another address or reboot
the computer to ensure all running processes are terminated

--

Best regards,
Eugene Zhuravlev
JetBrains, Inc, http://www.intellij.com
"Develop with pleasure!"


"Richard Osbaldeston" <rosbaldeston@no-spam.h-o-tmail.com> wrote in message
news:ap39g7$cr1$1@is.intellij.net...
>

Can anybody offer advice on the Tomcat intergration in #662, I'm trying to
debug via the tomcat plugin, but whenever I attempt to debug (as opposed

to

run - which seems to work) I get the message:
"unable to launch target vm" .. The target VM is 1.3.1_05 as tomcat
complained about 1.4.1 saying to was "too modern" .. whatever.. oh and I'm
using tomcat 4.0.5.

>

When I select "Launch server before debugger attaches" I tend to get the
message:
"Catalina.start: LifecycleException: null.open: java.net.BindException:
Address in use: JVM_Bind:8080"
- it seems IDEA? has left an orphan javaw.exe (tomcat?) process running;
which I can kill via the task manager, but the message just re-appears the
next time.

>

I've also tried running tomcat outside of IDEA and then attaching the
debugger to it; but I get the "unable to launch target vm" message again..
Havn't tried this before, so I don't know wether its a bug or bad config

on

my side (much more likely).. again this orphaned process got in the way,

but

after killing it tomcat will run, but the attaching/debugging bit still
escapes me.

>

any ideas?

>

thanks

>

Richard

>

--
Richard Osbaldeston
(http://www.osbald.co.uk)

>
>


0
Comment actions Permalink

Eugene Zhuravlev wrote:

Hi Richard,

>

"JVM_Bind:8080" error is definitely because another process is
already using this port. Please try to reconfigure server.xml to
another address or reboot the computer to ensure all running
processes are terminated

>

As I begin write this I'm trying it out in the background and as murphys law
would predict.. it now seems to work.. hmmmm

OK, what seems to have been happening is I've just fixed a number of
problems configuring my tomcat to use the inbuilt JNDI Database connection
pool (tyrex?); so the "unable to launch target vm" message is almost
certainly related to tomcats inability to load correctly, or some config
file conflict.. (although it does launch manually with the exact same
configuration as my IDEA webapp without any complaints; until you hit my jsp
when it throws several vague NPE's) ..had lots of problems here, the oracle
drivers are supplied in a zip (unpack & repack into a jar myself, tomcat
tried to do this itself, but in IDEA's classpath it's still a zip - being
easily confused I preferred to fix this manually in both). Also the JNDI
documentation on tomcat is WRONG people (go figure) look at the example in
the server.xml file for correct syntax.. (sigh)

The sum total is that in this mess IDEA seemed to create this rouge
javaw.exe background process, which hangs around even after closing the
Run/Debug tabs with the red X ..hence the "Catalina.start:
LifecycleException: null.open: java.net.BindException: Address in use:
JVM_Bind:8080" message debug was throwing.. unfortunatly I can't reproduce
this now, but must be related to the "unable to launch target vm" messages
on either run/or debug webapp dialogs ~ might be one to watch out for,
anybody else who can reproduce this please report it to the bug tracker at
http://www.intellij.net/tracker/idea/browse ..

Sorry, my bad - although it's was mostly bad (or lack of any) error messages
to blame on tomcats behalf; but hopefully my rant might provide a few useful
pointers to anybody else facing down the same errors..

You wouldn't do this for fun,

Richard

--
Richard Osbaldeston
(http://www.osbald.co.uk)


0
Comment actions Permalink

IDEA 666 (Aaaa !! number of the beast. Now I know what's the problem :))) )
Tomcat 4.04
Target jdk 1.4.1_01

When I try to debug It gives me message "Unable to launch target VM"
But when I run it from within IDEA - works fine. I have JNDI Tomcat db
connection. And it works fine too.
It also runs fine standalone or in debug from Eclipse.

Could you please explain me how you fixed it.


"Richard Osbaldeston" <rosbaldeston@no-spam.h-o-tmail.com> wrote in message
news:ap3ouv$5rh$1@is.intellij.net...

Eugene Zhuravlev wrote:

>

Hi Richard,

>

"JVM_Bind:8080" error is definitely because another process is
already using this port. Please try to reconfigure server.xml to
another address or reboot the computer to ensure all running
processes are terminated

>

>

As I begin write this I'm trying it out in the background and as murphys

law

would predict.. it now seems to work.. hmmmm

>

OK, what seems to have been happening is I've just fixed a number of
problems configuring my tomcat to use the inbuilt JNDI Database connection
pool (tyrex?); so the "unable to launch target vm" message is almost
certainly related to tomcats inability to load correctly, or some config
file conflict.. (although it does launch manually with the exact same
configuration as my IDEA webapp without any complaints; until you hit my

jsp

when it throws several vague NPE's) ..had lots of problems here, the

oracle

drivers are supplied in a zip (unpack & repack into a jar myself, tomcat
tried to do this itself, but in IDEA's classpath it's still a zip - being
easily confused I preferred to fix this manually in both). Also the JNDI
documentation on tomcat is WRONG people (go figure) look at the example in
the server.xml file for correct syntax.. (sigh)

>

The sum total is that in this mess IDEA seemed to create this rouge
javaw.exe background process, which hangs around even after closing the
Run/Debug tabs with the red X ..hence the "Catalina.start:
LifecycleException: null.open: java.net.BindException: Address in use:
JVM_Bind:8080" message debug was throwing.. unfortunatly I can't reproduce
this now, but must be related to the "unable to launch target vm" messages
on either run/or debug webapp dialogs ~ might be one to watch out for,
anybody else who can reproduce this please report it to the bug tracker at
http://www.intellij.net/tracker/idea/browse ..

>

Sorry, my bad - although it's was mostly bad (or lack of any) error

messages

to blame on tomcats behalf; but hopefully my rant might provide a few

useful

pointers to anybody else facing down the same errors..

>

You wouldn't do this for fun,

>

Richard

>

--
Richard Osbaldeston
(http://www.osbald.co.uk)

>
>


0
Comment actions Permalink

Do you have "Launch server before debugger attaches" checkbox on?

--

Best regards,
Eugene Zhuravlev
JetBrains, Inc, http://www.intellij.com
"Develop with pleasure!"


"Vagif Hagverdiyev" <vhagverdiyev@syncata.com> wrote in message
news:appb5r$42a$1@is.intellij.net...

IDEA 666 (Aaaa !! number of the beast. Now I know what's the problem

:))) )

Tomcat 4.04
Target jdk 1.4.1_01

>

When I try to debug It gives me message "Unable to launch target VM"
But when I run it from within IDEA - works fine. I have JNDI Tomcat db
connection. And it works fine too.
It also runs fine standalone or in debug from Eclipse.

>

Could you please explain me how you fixed it.

>
>

"Richard Osbaldeston" <rosbaldeston@no-spam.h-o-tmail.com> wrote in

message

news:ap3ouv$5rh$1@is.intellij.net...

Eugene Zhuravlev wrote:

>

Hi Richard,

>

"JVM_Bind:8080" error is definitely because another process is
already using this port. Please try to reconfigure server.xml to
another address or reboot the computer to ensure all running
processes are terminated

>

>

As I begin write this I'm trying it out in the background and as murphys

law

would predict.. it now seems to work.. hmmmm

>

OK, what seems to have been happening is I've just fixed a number of
problems configuring my tomcat to use the inbuilt JNDI Database

connection

pool (tyrex?); so the "unable to launch target vm" message is almost
certainly related to tomcats inability to load correctly, or some config
file conflict.. (although it does launch manually with the exact same
configuration as my IDEA webapp without any complaints; until you hit my

jsp

when it throws several vague NPE's) ..had lots of problems here, the

oracle

drivers are supplied in a zip (unpack & repack into a jar myself, tomcat
tried to do this itself, but in IDEA's classpath it's still a zip -

being

easily confused I preferred to fix this manually in both). Also the JNDI
documentation on tomcat is WRONG people (go figure) look at the example

in

the server.xml file for correct syntax.. (sigh)

>

The sum total is that in this mess IDEA seemed to create this rouge
javaw.exe background process, which hangs around even after closing the
Run/Debug tabs with the red X ..hence the "Catalina.start:
LifecycleException: null.open: java.net.BindException: Address in use:
JVM_Bind:8080" message debug was throwing.. unfortunatly I can't

reproduce

this now, but must be related to the "unable to launch target vm"

messages

on either run/or debug webapp dialogs ~ might be one to watch out for,
anybody else who can reproduce this please report it to the bug tracker

at

http://www.intellij.net/tracker/idea/browse ..

>

Sorry, my bad - although it's was mostly bad (or lack of any) error

messages

to blame on tomcats behalf; but hopefully my rant might provide a few

useful

pointers to anybody else facing down the same errors..

>

You wouldn't do this for fun,

>

Richard

>

--
Richard Osbaldeston
(http://www.osbald.co.uk)

>
>

>
>


0
Comment actions Permalink

Thank you !!! That solved my problem.
Obviously my problem is my stupidity :(


"Eugene Zhuravlev" <jeka@intellij.com> wrote in message
news:appc73$536$1@is.intellij.net...

Do you have "Launch server before debugger attaches" checkbox on?

>

--

>

Best regards,
Eugene Zhuravlev
JetBrains, Inc, http://www.intellij.com
"Develop with pleasure!"

>
>

"Vagif Hagverdiyev" <vhagverdiyev@syncata.com> wrote in message
news:appb5r$42a$1@is.intellij.net...

IDEA 666 (Aaaa !! number of the beast. Now I know what's the problem

:))) )

Tomcat 4.04
Target jdk 1.4.1_01

>

When I try to debug It gives me message "Unable to launch target VM"
But when I run it from within IDEA - works fine. I have JNDI Tomcat db
connection. And it works fine too.
It also runs fine standalone or in debug from Eclipse.

>

Could you please explain me how you fixed it.

>
>

"Richard Osbaldeston" <rosbaldeston@no-spam.h-o-tmail.com> wrote in

message

news:ap3ouv$5rh$1@is.intellij.net...

Eugene Zhuravlev wrote:

>

Hi Richard,

>

"JVM_Bind:8080" error is definitely because another process is
already using this port. Please try to reconfigure server.xml to
another address or reboot the computer to ensure all running
processes are terminated

>

>

As I begin write this I'm trying it out in the background and as

murphys

law

would predict.. it now seems to work.. hmmmm

>

OK, what seems to have been happening is I've just fixed a number of
problems configuring my tomcat to use the inbuilt JNDI Database

connection

pool (tyrex?); so the "unable to launch target vm" message is almost
certainly related to tomcats inability to load correctly, or some

config

file conflict.. (although it does launch manually with the exact same
configuration as my IDEA webapp without any complaints; until you hit

my

jsp

when it throws several vague NPE's) ..had lots of problems here, the

oracle

drivers are supplied in a zip (unpack & repack into a jar myself,

tomcat

tried to do this itself, but in IDEA's classpath it's still a zip -

being

easily confused I preferred to fix this manually in both). Also the

JNDI

documentation on tomcat is WRONG people (go figure) look at the

example

in

the server.xml file for correct syntax.. (sigh)

>

The sum total is that in this mess IDEA seemed to create this rouge
javaw.exe background process, which hangs around even after closing

the

Run/Debug tabs with the red X ..hence the "Catalina.start:
LifecycleException: null.open: java.net.BindException: Address in

use:

JVM_Bind:8080" message debug was throwing.. unfortunatly I can't

reproduce

this now, but must be related to the "unable to launch target vm"

messages

on either run/or debug webapp dialogs ~ might be one to watch out

for,

anybody else who can reproduce this please report it to the bug

tracker

at

http://www.intellij.net/tracker/idea/browse ..

>

Sorry, my bad - although it's was mostly bad (or lack of any) error

messages

to blame on tomcats behalf; but hopefully my rant might provide a few

useful

pointers to anybody else facing down the same errors..

>

You wouldn't do this for fun,

>

Richard

>

--
Richard Osbaldeston
(http://www.osbald.co.uk)

>
>

>
>

>
>


0

Please sign in to leave a comment.