Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Problem running application under Tomcat in Eclipse
Problem running application under Tomcat in Eclipse [message #221175] Wed, 10 September 2008 08:35 Go to next message
Wayne is currently offline WayneFriend
Messages: 1
Registered: July 2009
Junior Member
Hi all,

I'm looking for some assistance / guidelines on running an application
under Tomcat in Eclipse.

I've got the Tomcat plugin installed and a context pointing to my
application (BigApp).

My application uses some classes that are developed as part of a separate
application (LittleApp). Both of these are open in my current workset.

In BigApp, under Properties -> Java Build Path -> Projects, I have added
LittleApp. I have also ensured that under Order and Export, the LittleApp
is checked.

Both BigApp and LittleApp compile, but when I start Tomcat, I get the
following error in the Tomcat log:

2008-09-09 13:01:03,795 ERROR main
org.springframework.web.context.ContextLoader - Context initialization
failed
org.springframework.beans.factory.CannotLoadBeanCl assException: Error
loading class [com.myco.hpcg.deployment.server.archive.ExternalRe
sourcePresenceCheckerLocal] for bean with name
'external-resource-pressence-checker-local-uat' defined in ServletContext
resource [/WEB-INF/classes/spring/manifest.xml]: problem with class file
or dependent class; nested exception is java.lang.NoClassDefFoundError:
com/myco/hpcg/deployment/archive/ExternalResourcePresenceChe cker
Caused by:
java.lang.NoClassDefFoundError:
com/myco/hpcg/deployment/archive/ExternalResourcePresenceChe cker

com/myco/hpcg/deployment/archive/ExternalResourcesPresenceCh ecker exists
in LittleApp, and is included as described above.

After this didn't work, I then went into the Tomcat preferences ->
Advanced -> and put a tick in the box next to LittleApp under the 'Add
Java projects to Tomcat classpath'

I've restarted Tomcat, restarted Eclipse and restarted the box, but I
still keep getting the same NoClassDefFoundError no matter what I do.

I'm using Eclipse Platform version 3.3.2 for this work.

Any advice getting this working would be greatly appreciated!

Thanks in advance,

Can anyone advise how I go about getting this working?

Thanks,
Re: Problem running application under Tomcat in Eclipse [message #221183 is a reply to message #221175] Wed, 10 September 2008 12:28 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
This is the Web Tools Project (WTP) newsgroup. WTP includes support for
Tomcat servers, but doesn't offer a separate Tomcat plug-in. Also, "Add
Java projects to Tomcat classpath" isn't an option found in the WTP
Tomcat support. My guess is that you are using the Sysdeo plug-in which
works differently than the Tomcat support in WTP. If so, you may have
better luck getting an answer on a Sysdeo support newsgroup or mailing
list. I haven't worked with the Sysdeo plug-in in many years and don't
recall much more than vague details at this point.

Cheers,
Larry

Wayne wrote:
> Hi all,
>
> I'm looking for some assistance / guidelines on running an application
> under Tomcat in Eclipse.
>
> I've got the Tomcat plugin installed and a context pointing to my
> application (BigApp).
>
> My application uses some classes that are developed as part of a
> separate application (LittleApp). Both of these are open in my current
> workset.
> In BigApp, under Properties -> Java Build Path -> Projects, I have added
> LittleApp. I have also ensured that under Order and Export, the
> LittleApp is checked.
>
> Both BigApp and LittleApp compile, but when I start Tomcat, I get the
> following error in the Tomcat log:
>
> 2008-09-09 13:01:03,795 ERROR main
> org.springframework.web.context.ContextLoader - Context initialization
> failed
> org.springframework.beans.factory.CannotLoadBeanCl assException: Error
> loading class [com.myco.hpcg.deployment.server.archive.ExternalRe
> sourcePresenceCheckerLocal] for bean with name
> 'external-resource-pressence-checker-local-uat' defined in
> ServletContext resource [/WEB-INF/classes/spring/manifest.xml]: problem
> with class file or dependent class; nested exception is
> java.lang.NoClassDefFoundError:
> com/myco/hpcg/deployment/archive/ExternalResourcePresenceChe cker
> Caused by: java.lang.NoClassDefFoundError:
> com/myco/hpcg/deployment/archive/ExternalResourcePresenceChe cker
>
> com/myco/hpcg/deployment/archive/ExternalResourcesPresenceCh ecker exists
> in LittleApp, and is included as described above.
>
> After this didn't work, I then went into the Tomcat preferences ->
> Advanced -> and put a tick in the box next to LittleApp under the 'Add
> Java projects to Tomcat classpath'
> I've restarted Tomcat, restarted Eclipse and restarted the box, but I
> still keep getting the same NoClassDefFoundError no matter what I do.
> I'm using Eclipse Platform version 3.3.2 for this work.
>
> Any advice getting this working would be greatly appreciated!
> Thanks in advance,
>
> Can anyone advise how I go about getting this working?
> Thanks,
>
Re: Problem running application under Tomcat in Eclipse [message #221190 is a reply to message #221183] Wed, 10 September 2008 12:49 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

Wayne,

I remember the first time I began to use WTP that I rattled around
confused as to how I should do it. Sysdeo was one of the dead-end paths
I pursued because when you Google, you don't get "weighted" information
that will steer you the best direction. You do that on your own.

It may be that you don't really want to use Sysdeo and that you just
ended up taking counsel from the wrong sources. That was certainly my
case. I say this in case it's helpful to you to know that Sysdeo may not
be the direction you want to go for using Tomcat and Eclipse and that
there is another, the orthogonal support by modern WTP.

Hope this helps.

Russ Bateman



Larry Isaacs wrote:
> This is the Web Tools Project (WTP) newsgroup. WTP includes support for
> Tomcat servers, but doesn't offer a separate Tomcat plug-in. Also, "Add
> Java projects to Tomcat classpath" isn't an option found in the WTP
> Tomcat support. My guess is that you are using the Sysdeo plug-in which
> works differently than the Tomcat support in WTP. If so, you may have
> better luck getting an answer on a Sysdeo support newsgroup or mailing
> list. I haven't worked with the Sysdeo plug-in in many years and don't
> recall much more than vague details at this point.
>
> Cheers,
> Larry
>
> Wayne wrote:
>> Hi all,
>>
>> I'm looking for some assistance / guidelines on running an application
>> under Tomcat in Eclipse.
>>
>> I've got the Tomcat plugin installed and a context pointing to my
>> application (BigApp).
>>
>> [snip]
>>
>> Any advice getting this working would be greatly appreciated!
>> Thanks in advance,
>>
>> Can anyone advise how I go about getting this working?
>> Thanks,
>>
Previous Topic:Re: Scripting headless export of WAR file
Next Topic:XML Validation via local XSD file
Goto Forum:
  


Current Time: Tue Mar 19 06:09:44 GMT 2024

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

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

Back to the top