aspose file tools*
The moose likes Servlets and the fly likes import error in JSP, with J2EE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "import error in JSP, with J2EE" Watch "import error in JSP, with J2EE" New topic
Author

import error in JSP, with J2EE

Henna Manick
Greenhorn

Joined: Aug 31, 2001
Posts: 2
Hi
I saw a message with a similar question, but that did not clear my doubt.
I have been running the reference implementation of J2EE and Apache server on win 2k. I have jsp code which gives the error
Error: 500
Internal Servlet Error:
org.apache.jasper.JasperException: Unable to compile class for JSPc:\j2sdkee1.2.1\repository\alopa\web\_0005csearch_0002ejspsearch_jsp_0.java:14: Class com.verity.search.Collections not found in import.
import com.verity.search.Collections;
^
c:\j2sdkee1.2.1\repository\alopa\web\_0005csearch_0002ejspsearch_jsp_0.java:15: Class com.verity.search.Collection not found in import.
import com.verity.search.Collection;
^
c:\j2sdkee1.2.1\repository\alopa\web\_0005csearch_0002ejspsearch_jsp_0.java:16: Class com.verity.search.VSearch not found in import.
import com.verity.search.VSearch;
^
3 errors
How does one solve this problem?
Thanks
Henna
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

I would copy the foll. class files into the appropriate
folders under the WEB-INF/classes folder.
com.verity.search.Collections;
com.verity.search.Collection;
com.verity.search.VSearch;
or jar them up and copy the jar file to the WEB-INF/lib
folder of the application.
Let us know if you have already done this...
- satya

Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
Henna Manick
Greenhorn

Joined: Aug 31, 2001
Posts: 2
Hi
I am working with sun's reference implementation of J2ee. I cannot find a WEB_INF folder. So I am not sure what else I can do in this case. I also don't know how I can get the class files from verity.com,
thanks
HEnna
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

I wonder what you were trying to do with J2EE
when you got these errors?
I mean were you trying to do some tutorials or
deploy your own applications or what?
Could you spell out more details so we could understand
what you were trying to do....
- satya
Jayanthimeena
Greenhorn

Joined: Jul 24, 2001
Posts: 17
Hai all
You have to place all your classes in web-Inf/classes folder. which will be present by default.
If further problem present set classpath to your class folder and try running.
Bye
jayanthi
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

If you mean the RI J2EE app server, then you need to jar those classes up, and add them as a Library for the EAR file.

I have since un-installed the RI, so I'm not sure of the screen, but I think if you click the EAR file in the tree view, there is a button on the right hand side that is for Adding jar files to the Library.

Hopefully you can figure it out from there.
 
 
subject: import error in JSP, with J2EE