Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » more path questions
more path questions [message #175796] Mon, 31 July 2006 14:58 Go to next message
Eclipse UserFriend
Originally posted by: jwoofy.hotmail.com

Thanks to Larry's response last week, I have my other project's code
deployed appropriately now. However, I'm struggling with the classes that
the other project depends on. Here's an example:

WebProject (my servlet, jsp, etc)
+ src
+ WebContent


AnalysisProject (Java that WebProject's src calls. This project builds and
deploys fine)
+ src
+ ClassFolder_1
+ gnu.trove
+ ClassFolder_2


So now WebProject's J2EE Module Dependencies include AnalysisProject. This
works fine. There is an AnalysisProject.jar in the /lib directory. However,
my classes in AnalysisProject.jar call classes in my classfolder, such as
the gnu.trove classes. When I start Tomcast inside Eclipse, then point a
browser to the web site, Tomcat throws an error saying "gnu.trove.map not
found". The ClassFolder_1 classes are not in the AnalysisProject.jar.

I created a .jar with the ClassFolder_1 and ClassFolder_2 classes and added
it to my J2EE Module Dependencies. This solution did put a ClassFolder_1.jar
in the /lib directory. I verified that the .jar contained the necessary
classes. However, the class not found problem still occurred. I think the
problem is that AnalysisProject.jar does not have a path to
ClassFolder_1.jar.

I could use a release build of AnalysisProject.jar including the class
folders, but I lose the ability for that .jar to get built on the fly when I
make modifications to AnalysisProject.

How do I add AnalysisProject's dependencies to the the project?

Thanks

Jeff
Re: more path questions [message #175909 is a reply to message #175796] Tue, 01 August 2006 15:34 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
Jeff,

Are ClassFolder_1 and ClassFolder_2 additional Java source folders or
something else?

Larry

Jeff wrote:
> Thanks to Larry's response last week, I have my other project's code
> deployed appropriately now. However, I'm struggling with the classes that
> the other project depends on. Here's an example:
>
> WebProject (my servlet, jsp, etc)
> + src
> + WebContent
>
>
> AnalysisProject (Java that WebProject's src calls. This project builds and
> deploys fine)
> + src
> + ClassFolder_1
> + gnu.trove
> + ClassFolder_2
>
>
> So now WebProject's J2EE Module Dependencies include AnalysisProject. This
> works fine. There is an AnalysisProject.jar in the /lib directory. However,
> my classes in AnalysisProject.jar call classes in my classfolder, such as
> the gnu.trove classes. When I start Tomcast inside Eclipse, then point a
> browser to the web site, Tomcat throws an error saying "gnu.trove.map not
> found". The ClassFolder_1 classes are not in the AnalysisProject.jar.
>
> I created a .jar with the ClassFolder_1 and ClassFolder_2 classes and added
> it to my J2EE Module Dependencies. This solution did put a ClassFolder_1.jar
> in the /lib directory. I verified that the .jar contained the necessary
> classes. However, the class not found problem still occurred. I think the
> problem is that AnalysisProject.jar does not have a path to
> ClassFolder_1.jar.
>
> I could use a release build of AnalysisProject.jar including the class
> folders, but I lose the ability for that .jar to get built on the fly when I
> make modifications to AnalysisProject.
>
> How do I add AnalysisProject's dependencies to the the project?
>
> Thanks
>
> Jeff
>
>
Re: more path questions [message #175933 is a reply to message #175909] Tue, 01 August 2006 16:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jwoofy.hotmail.com

ClassFolder_1 and ClassFolder_2 contain directory structures containing
..class files. When I build a AnalysisProject.jar for non-web deployment, I
include these folders in the .jar description.

In other words, I usually build AnalysisProject.jar as a stand alone
application. In Jar Packager's Specification Screen, I select them in the
"Select the resources to export:" panel. So those classes exist in
AnalysisProject.jar with their appropriate paths.

Best Regards


"Larry Isaacs" <Larry.Isaacs@sas.com> wrote in message
news:eansa4$5f8$1@utils.eclipse.org...
> Jeff,
>
> Are ClassFolder_1 and ClassFolder_2 additional Java source folders or
> something else?
>
> Larry
>
> Jeff wrote:
>> Thanks to Larry's response last week, I have my other project's code
>> deployed appropriately now. However, I'm struggling with the classes
>> that the other project depends on. Here's an example:
>>
>> WebProject (my servlet, jsp, etc)
>> + src
>> + WebContent
>>
>>
>> AnalysisProject (Java that WebProject's src calls. This project builds
>> and deploys fine)
>> + src
>> + ClassFolder_1
>> + gnu.trove
>> + ClassFolder_2
>>
>>
>> So now WebProject's J2EE Module Dependencies include AnalysisProject.
>> This works fine. There is an AnalysisProject.jar in the /lib directory.
>> However, my classes in AnalysisProject.jar call classes in my
>> classfolder, such as the gnu.trove classes. When I start Tomcast inside
>> Eclipse, then point a browser to the web site, Tomcat throws an error
>> saying "gnu.trove.map not found". The ClassFolder_1 classes are not in
>> the AnalysisProject.jar.
>>
>> I created a .jar with the ClassFolder_1 and ClassFolder_2 classes and
>> added it to my J2EE Module Dependencies. This solution did put a
>> ClassFolder_1.jar in the /lib directory. I verified that the .jar
>> contained the necessary classes. However, the class not found problem
>> still occurred. I think the problem is that AnalysisProject.jar does not
>> have a path to ClassFolder_1.jar.
>>
>> I could use a release build of AnalysisProject.jar including the class
>> folders, but I lose the ability for that .jar to get built on the fly
>> when I make modifications to AnalysisProject.
>>
>> How do I add AnalysisProject's dependencies to the the project?
>>
>> Thanks
>>
>> Jeff
Re: more path questions [message #175950 is a reply to message #175933] Tue, 01 August 2006 16:40 Go to previous message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
If you add just this "full" AnalysisProject.jar as a J2EE Module
Dependency and not the project, does it work?

Larry

Jeff wrote:
> ClassFolder_1 and ClassFolder_2 contain directory structures containing
> .class files. When I build a AnalysisProject.jar for non-web deployment, I
> include these folders in the .jar description.
>
> In other words, I usually build AnalysisProject.jar as a stand alone
> application. In Jar Packager's Specification Screen, I select them in the
> "Select the resources to export:" panel. So those classes exist in
> AnalysisProject.jar with their appropriate paths.
>
> Best Regards
>
>
> "Larry Isaacs" <Larry.Isaacs@sas.com> wrote in message
> news:eansa4$5f8$1@utils.eclipse.org...
>> Jeff,
>>
>> Are ClassFolder_1 and ClassFolder_2 additional Java source folders or
>> something else?
>>
>> Larry
>>
>> Jeff wrote:
>>> Thanks to Larry's response last week, I have my other project's code
>>> deployed appropriately now. However, I'm struggling with the classes
>>> that the other project depends on. Here's an example:
>>>
>>> WebProject (my servlet, jsp, etc)
>>> + src
>>> + WebContent
>>>
>>>
>>> AnalysisProject (Java that WebProject's src calls. This project builds
>>> and deploys fine)
>>> + src
>>> + ClassFolder_1
>>> + gnu.trove
>>> + ClassFolder_2
>>>
>>>
>>> So now WebProject's J2EE Module Dependencies include AnalysisProject.
>>> This works fine. There is an AnalysisProject.jar in the /lib directory.
>>> However, my classes in AnalysisProject.jar call classes in my
>>> classfolder, such as the gnu.trove classes. When I start Tomcast inside
>>> Eclipse, then point a browser to the web site, Tomcat throws an error
>>> saying "gnu.trove.map not found". The ClassFolder_1 classes are not in
>>> the AnalysisProject.jar.
>>>
>>> I created a .jar with the ClassFolder_1 and ClassFolder_2 classes and
>>> added it to my J2EE Module Dependencies. This solution did put a
>>> ClassFolder_1.jar in the /lib directory. I verified that the .jar
>>> contained the necessary classes. However, the class not found problem
>>> still occurred. I think the problem is that AnalysisProject.jar does not
>>> have a path to ClassFolder_1.jar.
>>>
>>> I could use a release build of AnalysisProject.jar including the class
>>> folders, but I lose the ability for that .jar to get built on the fly
>>> when I make modifications to AnalysisProject.
>>>
>>> How do I add AnalysisProject's dependencies to the the project?
>>>
>>> Thanks
>>>
>>> Jeff
>
>
Previous Topic:Deploying to OC4J doesn't work
Next Topic:Server Timeout on Startup
Goto Forum:
  


Current Time: Wed Apr 24 14:17:45 GMT 2024

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

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

Back to the top