Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

import error in JSP, with J2EE

 
Henna Manick
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
 
Henna Manick
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic