Cannot find javax.servlet

When setting up my web module, I select the generic web module and point point to my bea weblogic's weblogic.jar file. I chose the generic web module instead of Weblogic module because I don't want to use Idea to startup weblogic and I wasn't able to configure a weblogic module without specify vm and proram arguements.

When I hit ok after choosing weblogic.jar for my generic web module, I get the error that
Class 'javax.servlet.Servlet' is not available in the selected library.

This is wrong because I opened up weblogic.jar using winzip and I can see that the javax.servlet.Servlet is in there.

Why can't I get this to work? This must be the reason why HttpSession shows up in red in my JSPs.

See attached pics for details.



Attachment(s):
Image1.jpg
Image2.jpg
2 comments
Comment actions Permalink

Are you using Linux and a 2.6.x kernel? If so, you'll need to add a
-Didea.jars.nocopy=true in your IDEA startup VM settings.

Nick.

Larry K wrote:

When setting up my web module, I select the generic web module and point point to my bea weblogic's weblogic.jar file. I chose the generic web module instead of Weblogic module because I don't want to use Idea to startup weblogic and I wasn't able to configure a weblogic module without specify vm and proram arguements.

When I hit ok after choosing weblogic.jar for my generic web module, I get the error that
Class 'javax.servlet.Servlet' is not available in the selected library.

This is wrong because I opened up weblogic.jar using winzip and I can see that the javax.servlet.Servlet is in there.

Why can't I get this to work? This must be the reason why HttpSession shows up in red in my JSPs.

See attached pics for details.

0
Comment actions Permalink

No, I am not using Linux, just Windows XP Professional.

Does anyone know how I can get Idea to recognize my Servlet code and accept my weblogic.jar?

0

Please sign in to leave a comment.