Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Naming of servlets
Naming of servlets [message #184858] Thu, 14 December 2006 21:44
Eclipse UserFriend
Originally posted by: ns_dkerber.ns_WarrenRogersAssociates.com

The problem I posted a couple hours ago is fixed; it was a problem with
the servlet definitions in the web.xml when I did some refactoring.
However, while working on that, it brought up another question: can I
define my servlet .java files with a path that corresponds to a path
that is used in another utility project? Specifically, my webapp is
called webapp, and when I have the servlet .java files in an eddsrv
package under that, like:

eddsrv/EddRcvr.java
eddsrv/EddSrvConfig.java

it all works fine. But I'd like to define the names of these files to
correspond to the path in another project that generates another
separate .jar file. It has package names like:

com.wra.osp
com.wra.osp.ospconfig

Is it possible to name my package in the webapp:

com.wra.osp.eddsrv

and put the servlet source files in there, while still keeping it under
the webapps project and not the java project? I can't get it to work,
even after verifying that the names correspond to the servlet
definitions in the web.xml, and to the imports in the rest of the webapp
source code files. I keep getting a "java.lang.NoClassDefFoundError:
javax/servlet/Servlet" error.

--
Remove the ns_ from if replying by e-mail (but keep posts in the
newsgroups if possible).
Previous Topic:WTP 1.5.2 -- Missing XDoclet jar
Next Topic:Problem finding method while debugging
Goto Forum:
  


Current Time: Fri Apr 26 03:04:07 GMT 2024

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

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

Back to the top