Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Project reference
Project reference [message #163953] Wed, 15 March 2006 11:01 Go to next message
Eclipse UserFriend
Originally posted by: qiangz_dlrmbj.yahoo.com

Hi
I have lots of problems with the project reference. I selecte framework
project in my web project. It's no error or warn on compile java code. But
when i invoke its on JSP page, then throw classNotFoundException .

I'm using Eclipls3.2M4+ WTP1.5M1

Anyone with tips on how to fix this?

Greetings.

qiang.zhou
Re: Project reference [message #163962 is a reply to message #163953] Wed, 15 March 2006 16:37 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ns_dkerber.ns_WarrenRogersAssociates.com

In article <dv8sad$h19$1@utils.eclipse.org>, qiangz_dlrmbj@yahoo.com
says...
> Hi
> I have lots of problems with the project reference. I selecte framework
> project in my web project. It's no error or warn on compile java code. But
> when i invoke its on JSP page, then throw classNotFoundException .

Try "import"ing the .jar with the class of interest, so it will be in
the WEB-INF folder of the project (under the webcontent folder). I run
into this all the time, and everytime I hit it, I have to remember to do
this.

>
> I'm using Eclipls3.2M4+ WTP1.5M1

Me, too.

--
Remove the ns_ from if replying by e-mail (but keep posts in the
newsgroups if possible).
Re: Project reference [message #164080 is a reply to message #163953] Thu, 16 March 2006 02:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: zosoo7.yahoo.com

I was banging my head against the wall on this myself, I knew my project
just needed to be added to Tomcat's classpath, but I couldn't figure out
how. But I figured it out!!! On your "Servers" tab on the bottom, double
click your server. Then click "Open Launch Configuration", click on your
Classpath tab, and add your project reference through there. Bam.
Re: Project reference [message #164187 is a reply to message #164080] Fri, 17 March 2006 09:24 Go to previous message
Denis Mukhin is currently offline Denis MukhinFriend
Messages: 1
Registered: July 2009
Junior Member
Allen Riddle wrote:
> I was banging my head against the wall on this myself, I knew my project
> just needed to be added to Tomcat's classpath, but I couldn't figure out
> how. But I figured it out!!! On your "Servers" tab on the bottom, double
> click your server. Then click "Open Launch Configuration", click on your
> Classpath tab, and add your project reference through there. Bam.
>

It would work for some servers but it is not best way because it just
includes project to _server_ main class path. It is possible to point
WTP to assemble jar of dependent project code during main project
publishing and put it to your main project WAR /WEB-INF/lib (I assume
you have Web application): Project Properties > J2EE Module Dependencies
> Check box for your dependent project > OK. It also changes build path
automatically. It works for dependent projects in WTP 1.0.1. Sorry, I
didn't check in 1.5Ms - it might be broken or reorganized somehow...
Previous Topic:Web Service wizard
Next Topic:WTP with JRun
Goto Forum:
  


Current Time: Tue Sep 24 12:23:02 GMT 2024

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

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

Back to the top