• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

import javax.servlet,import org.apache can not be resolved

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi everyone,
I am using elipse 3.1.2 with wtp plugins.
I have imported existing project to my workspace. I tried with same jars which are in existing project,and also i removed existing jars and added using javabuildpath->addexternal jars. Still it is giving import org.apache can not be resolved and javax.servlet can not be resolved.
I have jar files in WEB-INF/lib also.
I am using java 1.4....
I am using following jars

antlr.jar,classes12.jar,commons-beanutils.jars,commons-digester.jar
commons-fileupload.jar,commons-lang-2.4.jar,commons-logging.jar,commons-validator.jar,jakarta-ora.jar,jdom.jar,jgl3.1.0.jar,log4j-1.2.15.jar,strus.jar
Please help me............i am missing anything............
Thanks in advance....
 
author & internet detective
Posts: 41093
848
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ravitalari,
Is "strus.jar" a typo? I would expect the name of the jar to be "struts.jar". Also, I don't see servlets.jar or j2ee.jar in you classpath. This jar comes with your app server (JBoss, Tomcat, etc)
 
ravitalari srinivas
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Jeanne,
Thank you very much for your reply.
struts.jar is there in lib and classpath.I tried by keeping servlet.jar ,still it is giving same error where we are importing and where we are using struts features.........
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In Package Explorer, for your project, you should see server.jar listed. Click the arrow next to it to open it and ensure that the javax.servlet package exists.

If you do not see server.jar listed in Package Explorer for your project, then you did not properly add it to your project's build path.

If, on opening server.jar, you do not see javax.servlet, then the servlet.jar file you added to your project is not the correct one.
 
ravitalari srinivas
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Peter,
Thank you so much for your reply.
I made wrong ,while downloading from remote server i used ASCI mode so jar files property has changed. I downloaded in normal mode it is working fine.
I am new to weblogic.
How to deploy the same application which is presently running, with different name. Please help me regarding this.
Do i need to change context root? in that case how to change context root.
Please see my weblogic.xml
< !DOCTYPE weblogic-web-app PUBLIC<br /> "-//BEA Systems, Inc.//DTD Web Application 6.1//EN"<br /> "http://www.bea.com/servers/wls610/dtd/weblogic-web-jar.dtd">
<weblogic-web-app>
<description>WebLogic Descriptor</description>
<session-descriptor>
<session-param>
<param-name>
CookieName
</param-name>
<param-value>
PRISIMSESSIONID
</param-value>
</session-param>
</session-descriptor>
</weblogic-web-app>

I am using weblogic 8.1

Thanks in advance
 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ravitalari, you are now asking a different question on a different topic. You should really ask that question in the WLS forum.
 
ravitalari srinivas
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
peter,
Really sorry for incovinience...........
 
Farmers know to never drive a tractor near a honey locust tree. But a tiny ad is okay:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic