Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Why not found in WEB-INF, needed in build path
Why not found in WEB-INF, needed in build path [message #99372] Fri, 26 September 2003 19:51 Go to next message
Eclipse UserFriend
Originally posted by: russ_hammond.sdsusa.com

I'm running Eclipse 2.1.0 with the sysdeo Tomcat plug in, using Tomcat 4.0.
I ran into something that doesn't make sense to me, and I'm hoping that
someone has an explanation....

I'm using the java mail interface which requires the java activation
framework, so I included jars from both packages in my source and put them
in my build path for the project. Later I discovered that while I need the
activation.jar for running, I don't really need it for compiling anything so
I removed it from my build path, and I started getting ClassNotFound
exceptions when I was running Tomcat and invoking the email logic. So I
figured, hey, I need the jar in my /WEB-INF/lib and I copied it there. But
the exceptions didn't go away after stopping and starting Tomcat, etc.
Tomcat is configured to use my /build folder as the root, and WEB-INF hangs
directly under it, so I expected that Tomcat should be looking in the /lib
subdirectory there for his (or her or its) .jar files. But it didn't
work.... Yet, it's looking there for its web.xml, because if I wipe that
out, the log shows that no web.xml was found.

So, I put the activation.jar back in my build path, and the ClassNotFound
exceptions have gone away, which puzzles me. Build path should only be for
compilation, correct? Why would it impact my Tomcat runtime, and why would
the entry in the WEB-INF/lib not work?

Any suggestions appreciated...

Russ Hammond
Re: Why not found in WEB-INF, needed in build path [message #99867 is a reply to message #99372] Tue, 30 September 2003 05:43 Go to previous messageGo to next message
Eclipse UserFriend
Where do you think default classpath comes from? I don't know about Tomcat
(how it loads needed libs) but build path is what you get as default
classpath for starting debug session.

--
Best regards,
Stoil
"Russ" <russ_hammond@sdsusa.com> wrote in message
news:bl2ja2$mso$1@eclipse.org...
> I'm running Eclipse 2.1.0 with the sysdeo Tomcat plug in, using Tomcat
4.0.
> I ran into something that doesn't make sense to me, and I'm hoping that
> someone has an explanation....
>
> I'm using the java mail interface which requires the java activation
> framework, so I included jars from both packages in my source and put them
> in my build path for the project. Later I discovered that while I need
the
> activation.jar for running, I don't really need it for compiling anything
so
> I removed it from my build path, and I started getting ClassNotFound
> exceptions when I was running Tomcat and invoking the email logic. So I
> figured, hey, I need the jar in my /WEB-INF/lib and I copied it there.
But
> the exceptions didn't go away after stopping and starting Tomcat, etc.
> Tomcat is configured to use my /build folder as the root, and WEB-INF
hangs
> directly under it, so I expected that Tomcat should be looking in the /lib
> subdirectory there for his (or her or its) .jar files. But it didn't
> work.... Yet, it's looking there for its web.xml, because if I wipe that
> out, the log shows that no web.xml was found.
>
> So, I put the activation.jar back in my build path, and the ClassNotFound
> exceptions have gone away, which puzzles me. Build path should only be
for
> compilation, correct? Why would it impact my Tomcat runtime, and why
would
> the entry in the WEB-INF/lib not work?
>
> Any suggestions appreciated...
>
> Russ Hammond
>
>
Re: Why not found in WEB-INF, needed in build path [message #101756 is a reply to message #99867] Mon, 06 October 2003 14:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: russ_hammond.sdsusa.com

That must be it, it must be using build path because I'm running under the
debugger. I'll have to do some more digging to see how I can get it to come
from my build lib...

Thanks, Stoil.


"Stoil Valchkov" <ssv_1234@hotmail.com> wrote in message
news:blbfig$qlg$1@eclipse.org...
> Where do you think default classpath comes from? I don't know about Tomcat
> (how it loads needed libs) but build path is what you get as default
> classpath for starting debug session.
>
> --
> Best regards,
> Stoil
> "Russ" <russ_hammond@sdsusa.com> wrote in message
> news:bl2ja2$mso$1@eclipse.org...
> > I'm running Eclipse 2.1.0 with the sysdeo Tomcat plug in, using Tomcat
> 4.0.
> > I ran into something that doesn't make sense to me, and I'm hoping that
> > someone has an explanation....
> >
> > I'm using the java mail interface which requires the java activation
> > framework, so I included jars from both packages in my source and put
them
> > in my build path for the project. Later I discovered that while I need
> the
> > activation.jar for running, I don't really need it for compiling
anything
> so
> > I removed it from my build path, and I started getting ClassNotFound
> > exceptions when I was running Tomcat and invoking the email logic. So I
> > figured, hey, I need the jar in my /WEB-INF/lib and I copied it there.
> But
> > the exceptions didn't go away after stopping and starting Tomcat, etc.
> > Tomcat is configured to use my /build folder as the root, and WEB-INF
> hangs
> > directly under it, so I expected that Tomcat should be looking in the
/lib
> > subdirectory there for his (or her or its) .jar files. But it didn't
> > work.... Yet, it's looking there for its web.xml, because if I wipe
that
> > out, the log shows that no web.xml was found.
> >
> > So, I put the activation.jar back in my build path, and the
ClassNotFound
> > exceptions have gone away, which puzzles me. Build path should only be
> for
> > compilation, correct? Why would it impact my Tomcat runtime, and why
> would
> > the entry in the WEB-INF/lib not work?
> >
> > Any suggestions appreciated...
> >
> > Russ Hammond
> >
> >
>
>
Re: Why not found in WEB-INF, needed in build path [message #102012 is a reply to message #99372] Tue, 07 October 2003 11:31 Go to previous message
Eclipse UserFriend
Originally posted by: russ_hammond.sdsusa.com

Just in case someone else needs this info.... I contacted Bruno Leroux from
Sysdeo, and he cleared up the mystery for me. Under Window > Preferences >
Tomcat, you can add projects to classpath. When I had my project checked,
it would take the build path and not use WEB-INF/lib. Once I unchecked my
project on the "Add Java Projects to Tomcat Classpath", things worked great.
"Russ" <russ_hammond@sdsusa.com> wrote in message
news:bl2ja2$mso$1@eclipse.org...
> I'm running Eclipse 2.1.0 with the sysdeo Tomcat plug in, using Tomcat
4.0.
> I ran into something that doesn't make sense to me, and I'm hoping that
> someone has an explanation....
>
> I'm using the java mail interface which requires the java activation
> framework, so I included jars from both packages in my source and put them
> in my build path for the project. Later I discovered that while I need
the
> activation.jar for running, I don't really need it for compiling anything
so
> I removed it from my build path, and I started getting ClassNotFound
> exceptions when I was running Tomcat and invoking the email logic. So I
> figured, hey, I need the jar in my /WEB-INF/lib and I copied it there.
But
> the exceptions didn't go away after stopping and starting Tomcat, etc.
> Tomcat is configured to use my /build folder as the root, and WEB-INF
hangs
> directly under it, so I expected that Tomcat should be looking in the /lib
> subdirectory there for his (or her or its) .jar files. But it didn't
> work.... Yet, it's looking there for its web.xml, because if I wipe that
> out, the log shows that no web.xml was found.
>
> So, I put the activation.jar back in my build path, and the ClassNotFound
> exceptions have gone away, which puzzles me. Build path should only be
for
> compilation, correct? Why would it impact my Tomcat runtime, and why
would
> the entry in the WEB-INF/lib not work?
>
> Any suggestions appreciated...
>
> Russ Hammond
>
>
Previous Topic:Search in Eclipse JDT
Next Topic:Write an eclipse plugin ...
Goto Forum:
  


Current Time: Fri May 09 01:22:47 EDT 2025

Powered by FUDForum. Page generated in 0.13962 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top