|
|
|
|
|
|
|
Re: problems with web project on wtp [message #211426 is a reply to message #211374] |
Tue, 01 April 2008 13:49 |
Larry Isaacs Messages: 1354 Registered: July 2009 |
Senior Member |
|
|
There isn't enough detail to make much more than a guess as to what is
going wrong. Given that you have abbreviated the full listener class
name, perhaps its long enough to have a hard to see typo in the intended
package or in the web.xml so they don't actually match. If you happen
to be on Windows, it may be that your workspace path, the ".metadata/.."
path, and the path of your class in the webapp combine to form a path
that is too long. I think the limit is about 256 characters. If this
is a possibility, make a copy of your listener class in a package named
"test" and see if it still fails to load. Note that with the shortened
package, it could still just be a typo.
Cheers,
Larry
Tobias wrote:
> The ApplicationListener implements javax.servlet.ServletContextListener
> which is found in servlet-api.jar and this is located in $CATALINA_HOME$/lib
> This tomcat is configured as runtime environment and is included under
> project/java build path/libraries
>
>
> Tobias
>
> "Cameron Bateman" <cameron.bateman@oracle.com> schrieb im Newsbeitrag
> news:c9ce9f5a214994e380ed44d82e609c56$1@www.eclipse.org...
>>> The ApplicationListener is in my source code.
>>> Clean on the Tomcat as well as clean on the code does not work. I can
>>> find the .class file in the eclipse tomcat working directory
>>> ..metadata.pluginsorg.eclipse.wst.server.coretmp0wtpwebapps ... within my
>>> package.
>> Hmm, is it possible that your ApplicationListener implements, extends or
>> uses any classes that may not be in the classpath?
>>
>>
>> --Cam
>>
>>
>
>
|
|
|
Re: problems with web project on wtp [message #211586 is a reply to message #211426] |
Wed, 02 April 2008 19:44 |
Tobias F Messages: 35 Registered: July 2009 |
Member |
|
|
Hi Larry,
the same project works with Eclipse 3.3.2. So a typo is imposible. Its in a
different workspace because I checked it out from svn but its the same
web.xml, faces-config and so on.
The workspace for 3.4 was the standard path on Windows. Its 208 characters
long with the listener class. I copied the workspace direct on my hdd and
the path was 177 characters long. Still doesn't work.
I moved the listener with following error:
java.lang.ClassNotFoundException: de.ApplicationListener
So its not the path and not a typo.
Tobias
"Larry Isaacs" <Larry.Isaacs@sas.com> schrieb im Newsbeitrag
news:fsteh4$ua$1@build.eclipse.org...
> There isn't enough detail to make much more than a guess as to what is
> going wrong. Given that you have abbreviated the full listener class
> name, perhaps its long enough to have a hard to see typo in the intended
> package or in the web.xml so they don't actually match. If you happen to
> be on Windows, it may be that your workspace path, the ".metadata/.."
> path, and the path of your class in the webapp combine to form a path that
> is too long. I think the limit is about 256 characters. If this is a
> possibility, make a copy of your listener class in a package named "test"
> and see if it still fails to load. Note that with the shortened package,
> it could still just be a typo.
>
> Cheers,
> Larry
>
> Tobias wrote:
>> The ApplicationListener implements javax.servlet.ServletContextListener
>> which is found in servlet-api.jar and this is located in
>> $CATALINA_HOME$/lib
>> This tomcat is configured as runtime environment and is included under
>> project/java build path/libraries
>>
>>
>> Tobias
>>
>> "Cameron Bateman" <cameron.bateman@oracle.com> schrieb im Newsbeitrag
>> news:c9ce9f5a214994e380ed44d82e609c56$1@www.eclipse.org...
>>>> The ApplicationListener is in my source code.
>>>> Clean on the Tomcat as well as clean on the code does not work. I can
>>>> find the .class file in the eclipse tomcat working directory
>>>> ..metadata.pluginsorg.eclipse.wst.server.coretmp0wtpwebapps ... within
>>>> my package.
>>> Hmm, is it possible that your ApplicationListener implements, extends or
>>> uses any classes that may not be in the classpath?
>>>
>>>
>>> --Cam
>>>
>>>
>>
|
|
|
Re: problems with web project on wtp [message #211593 is a reply to message #211586] |
Wed, 02 April 2008 20:25 |
Larry Isaacs Messages: 1354 Registered: July 2009 |
Senior Member |
|
|
Hi Tobias,
Unfortunately, this may mean that something really odd is going on.
When you stated earlier that "I can find the .class file in the eclipse
tomcat working directory
..metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpweba pps ...
within my package", I assume this was under
"wtpwebapps\<context-root>\WEB-INF\classes"? If so, there isn't any
simple reason why you would get a ClassNotFoundException. I'm not aware
of any bugs in Tomcat 6 that would explain this. As long as the class
file is published where it belongs, WTP wouldn't be the cause either.
You might compare this published webapp with the one in Eclipse 3.3.2
workspace that's working to see if anything is missing or different.
Cheers,
Larry
Tobias wrote:
> Hi Larry,
> the same project works with Eclipse 3.3.2. So a typo is imposible. Its in a
> different workspace because I checked it out from svn but its the same
> web.xml, faces-config and so on.
> The workspace for 3.4 was the standard path on Windows. Its 208 characters
> long with the listener class. I copied the workspace direct on my hdd and
> the path was 177 characters long. Still doesn't work.
>
> I moved the listener with following error:
> java.lang.ClassNotFoundException: de.ApplicationListener
> So its not the path and not a typo.
>
> Tobias
>
> "Larry Isaacs" <Larry.Isaacs@sas.com> schrieb im Newsbeitrag
> news:fsteh4$ua$1@build.eclipse.org...
>> There isn't enough detail to make much more than a guess as to what is
>> going wrong. Given that you have abbreviated the full listener class
>> name, perhaps its long enough to have a hard to see typo in the intended
>> package or in the web.xml so they don't actually match. If you happen to
>> be on Windows, it may be that your workspace path, the ".metadata/.."
>> path, and the path of your class in the webapp combine to form a path that
>> is too long. I think the limit is about 256 characters. If this is a
>> possibility, make a copy of your listener class in a package named "test"
>> and see if it still fails to load. Note that with the shortened package,
>> it could still just be a typo.
>>
>> Cheers,
>> Larry
>>
>> Tobias wrote:
>>> The ApplicationListener implements javax.servlet.ServletContextListener
>>> which is found in servlet-api.jar and this is located in
>>> $CATALINA_HOME$/lib
>>> This tomcat is configured as runtime environment and is included under
>>> project/java build path/libraries
>>>
>>>
>>> Tobias
>>>
>>> "Cameron Bateman" <cameron.bateman@oracle.com> schrieb im Newsbeitrag
>>> news:c9ce9f5a214994e380ed44d82e609c56$1@www.eclipse.org...
>>>>> The ApplicationListener is in my source code.
>>>>> Clean on the Tomcat as well as clean on the code does not work. I can
>>>>> find the .class file in the eclipse tomcat working directory
>>>>> ..metadata.pluginsorg.eclipse.wst.server.coretmp0wtpwebapps ... within
>>>>> my package.
>>>> Hmm, is it possible that your ApplicationListener implements, extends or
>>>> uses any classes that may not be in the classpath?
>>>>
>>>>
>>>> --Cam
>>>>
>>>>
>
|
|
|
Powered by
FUDForum. Page generated in 0.08222 seconds