Tomcat 5 in 1154

If Someone figures out how to startup Tomcat 5 in 1154, please let us know.

Another build... another waste. Can't run it with web apps, hence can't
test it. it's really frustrating because this stuff used to work just fine.

R

16 comments

Oh yeah here is the exception in case someone runs into it... seems
refactoring was not complete because this file is no longer found.

java.lang.NoClassDefFoundError:
com/intellij/openapi/projectRoots/ex/PathUtil

at
com.intellij.j2ee.web.tomcat.TomcatStartupParameters.buildClassPath(TomcatStartupParameters.java:39)

at
com.intellij.j2ee.web.tomcat.TomcatStartupParameters.createStartupParameters(TomcatStartupParameters.java:23)

at
com.intellij.j2ee.web.tomcat.TomcatIntegrationBase$1.run(TomcatIntegrationBase.java:130)

at com.intellij.openapi.application.a.b.runReadAction(b.java:12)

at
com.intellij.j2ee.web.tomcat.TomcatIntegrationBase.getStartupParameters(TomcatIntegrationBase.java:113)

at
com.intellij.j2ee.web.tomcat.TomcatIntegrationBase.startServer(TomcatIntegrationBase.java:102)

at com.intellij.execution.g.a$0.run(a$0.java:3)

at
com.intellij.openapi.application.LaterInvocator$FlushQueue.run(LaterInvocator.java:13)

at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)

at com.intellij.ide.q.b(q.java:26)

at com.intellij.ide.q.a(q.java:41)

at com.intellij.ide.q.dispatchEvent(q.java:61)

at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)

at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

0

Same results here.

"Robert S. Sfeir" <robert@codepuccino.com> wrote in message
news:c0bj5p$606$2@is.intellij.net...

Oh yeah here is the exception in case someone runs into it... seems
refactoring was not complete because this file is no longer found.

>

java.lang.NoClassDefFoundError:
com/intellij/openapi/projectRoots/ex/PathUtil

>

at

>
com.intellij.j2ee.web.tomcat.TomcatStartupParameters.buildClassPath(TomcatSt
artupParameters.java:39)
>

at

>
com.intellij.j2ee.web.tomcat.TomcatStartupParameters.createStartupParameters
(TomcatStartupParameters.java:23)
>

at

>
com.intellij.j2ee.web.tomcat.TomcatIntegrationBase$1.run(TomcatIntegrationBa
se.java:130)
>

at com.intellij.openapi.application.a.b.runReadAction(b.java:12)

>

at

>
com.intellij.j2ee.web.tomcat.TomcatIntegrationBase.getStartupParameters(Tomc
atIntegrationBase.java:113)
>

at

>
com.intellij.j2ee.web.tomcat.TomcatIntegrationBase.startServer(TomcatIntegra
tionBase.java:102)
>

at com.intellij.execution.g.a$0.run(a$0.java:3)

>

at

>
com.intellij.openapi.application.LaterInvocator$FlushQueue.run(LaterInvocato
r.java:13)
>

at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)

>

at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)

>

at com.intellij.ide.q.b(q.java:26)

>

at com.intellij.ide.q.a(q.java:41)

>

at com.intellij.ide.q.dispatchEvent(q.java:61)

>

at

>
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
va:201)
>

at

>
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
:151)
>

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)

>

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)

>

at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)



0

This is a fixed rev. Let me know if it works for you. Works for me here.

I replaced the PathUtil.getToolsPath() so the plugin will startup.

Hope this helps others.

R



Attachment(s):
tomcatIntegration.jar
0

By the way you might get some exceptions that Tomcat can't find manager,
admin and another app, that's because there might be a Catalina/local
folder inside the conf dir. I removed mine, since I don't need them for
local testing and everything comes up just fine.

Everything else seems to check out, at least for the plugin, there are
still bugs while debugging but I've filed those.

Hope this helps.

R

0

I've attached a fixed version of the Tomcat Integration Plugin.
"Robert S. Sfeir" <robert@codepuccino.com> wrote in message
news:c0biv6$606$1@is.intellij.net...

If Someone figures out how to startup Tomcat 5 in 1154, please let us

know.
>

Another build... another waste. Can't run it with web apps, hence can't
test it. it's really frustrating because this stuff used to work just

fine.
>

R






Attachment(s):
tomcatIntegration.jar
0

This worked well with 1151 and 1154...

This also works with tomcat 4.x and tomcat 5.x

"Frederick Daria" <fdaria@cyberjresources.com> wrote in message
news:c0c5sk$t93$1@is.intellij.net...

I've attached a fixed version of the Tomcat Integration Plugin.
"Robert S. Sfeir" <robert@codepuccino.com> wrote in message
news:c0biv6$606$1@is.intellij.net...

If Someone figures out how to startup Tomcat 5 in 1154, please let us

know.
>

Another build... another waste. Can't run it with web apps, hence can't
test it. it's really frustrating because this stuff used to work just

fine.
>

R

>
>
>


0

Robert S. Sfeir wrote:

hehe... bean you to it :)

R

haha beat, not bean... hahahaha

R

0

Oops, sorry bout that, I forgot to uncomment the Tomcat5Integration support
in plugins.xml...\
Here's the uncommented one...

- Frederick
"Frederick Daria" <fdaria@cyberjresources.com> wrote in message
news:c0c60h$tia$1@is.intellij.net...

This worked well with 1151 and 1154...

>

This also works with tomcat 4.x and tomcat 5.x

>

"Frederick Daria" <fdaria@cyberjresources.com> wrote in message
news:c0c5sk$t93$1@is.intellij.net...

I've attached a fixed version of the Tomcat Integration Plugin.
"Robert S. Sfeir" <robert@codepuccino.com> wrote in message
news:c0biv6$606$1@is.intellij.net...

If Someone figures out how to startup Tomcat 5 in 1154, please let us

know.
>

Another build... another waste. Can't run it with web apps, hence

can't

test it. it's really frustrating because this stuff used to work just

fine.
>

R

>
>
>

>
>





Attachment(s):
tomcatIntegration.jar
0

Hehehe, That's fine...

By the way, I modified the buildClasspath method and the getEndorsedDir to
properly return the correct values. The buildClasspath method did not
include the classes under common/lib and server/lib that's why there were
NoClassDefFoundErrors when starting Tomcat from within Idea...

- Frederick
"Robert S. Sfeir" <robert@codepuccino.com> wrote in message
news:c0c6ik$f2$1@is.intellij.net...

hehe... bean you to it :)

>

R



0

Frederick Daria wrote:

Hehehe, That's fine...

By the way, I modified the buildClasspath method and the getEndorsedDir to
properly return the correct values. The buildClasspath method did not
include the classes under common/lib and server/lib that's why there were
NoClassDefFoundErrors when starting Tomcat from within Idea...


Weird I wasn't getting that, the reason why mine was breaking was
because PathUtil did not exist anywhere, however in the previous
versions it was simply a method in the TomcatConfiguration class, so I
re-added it.

I've never had a problem with libs being picked up... humm... maybe it
was there and never noticed it? I remember filing a bug about it a long
time ago.

Either way, now everyone has 2 versions they can use to keep going until
JB stops breaking their code :)

R

0

I had that problem a long time ago, I did my own fix for it, but now with
Idea 4 builds, that problem came back, so I had to do it all over again :)

- Frederick
"Robert S. Sfeir" <robert@codepuccino.com> wrote in message
news:c0c71s$1s7$1@is.intellij.net...

Frederick Daria wrote:

>

Hehehe, That's fine...

>

By the way, I modified the buildClasspath method and the getEndorsedDir

to

properly return the correct values. The buildClasspath method did not
include the classes under common/lib and server/lib that's why there

were

NoClassDefFoundErrors when starting Tomcat from within Idea...

>

Weird I wasn't getting that, the reason why mine was breaking was
because PathUtil did not exist anywhere, however in the previous
versions it was simply a method in the TomcatConfiguration class, so I
re-added it.

>

I've never had a problem with libs being picked up... humm... maybe it
was there and never noticed it? I remember filing a bug about it a long
time ago.

>

Either way, now everyone has 2 versions they can use to keep going until
JB stops breaking their code :)

>

R



0

Frederick,

I just tried your plugin to see what the diff is, and noticed that
suddenly the libs I have in my exploded dir are not loading anymore.
Does't happen with my fix, so I'm not sure what the real diff is between
the two, but you might want to check your setup while using an exploded
dir, and remove the added files you might have added to tomcat's
common/lib and server/lib to make sure things load as expected.

R

0

Robert,

I tried your suggestion, it seems to work fine...

- Frederick
"Robert S. Sfeir" <robert@codepuccino.com> wrote in message
news:c0ca0c$f2e$1@is.intellij.net...

Frederick,

>

I just tried your plugin to see what the diff is, and noticed that
suddenly the libs I have in my exploded dir are not loading anymore.
Does't happen with my fix, so I'm not sure what the real diff is between
the two, but you might want to check your setup while using an exploded
dir, and remove the added files you might have added to tomcat's
common/lib and server/lib to make sure things load as expected.

>

R



0

Btw, I did not change anything with the plugin, all I did is create a new
project, with a web module and ran it... It worked just fine...
"Frederick Daria" <fdaria@cyberjresources.com> wrote in message
news:c0cbgg$mkr$1@is.intellij.net...

Robert,

>

I tried your suggestion, it seems to work fine...

>

- Frederick
"Robert S. Sfeir" <robert@codepuccino.com> wrote in message
news:c0ca0c$f2e$1@is.intellij.net...

Frederick,

>

I just tried your plugin to see what the diff is, and noticed that
suddenly the libs I have in my exploded dir are not loading anymore.
Does't happen with my fix, so I'm not sure what the real diff is between
the two, but you might want to check your setup while using an exploded
dir, and remove the added files you might have added to tomcat's
common/lib and server/lib to make sure things load as expected.

>

R

>
>


0

Frederick Daria wrote:

Btw, I did not change anything with the plugin, all I did is create a new
project, with a web module and ran it... It worked just fine...


Weird here it tells me it can't find the oracle lib, but I can see it in
my exploded WEB-INF/lib dir. Simply switching plugins resolves it.
Dunno what I'm doing different.

Oh well, thanks for checking anyway :)

R

0

Please sign in to leave a comment.