Problem running application under Tomcat in Eclipse [message #221175] |
Wed, 10 September 2008 08:35 |
Wayne 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 |
Larry Isaacs 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 |
|
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,
>>
|
|
|
Powered by
FUDForum. Page generated in 0.03177 seconds