Using a war in a Java application in Netbeans
1 posts in topic
Flat View  Flat View

Posted By:   ted_smith
Posted On:   Friday, August 4, 2006 06:19 PM

I am writing a program that uses Jetty to serve a servlet. In Netbeans I am having trouble creating an instance of my servlet to pass to Jetty. I can't add the .war to the class path of the app (it only lets you add jars) and when I try to copy the .java file from the web app project to the project running Jetty, it can't find the javax.servlet and javax.servlet.http packages (though it can just fine when it's in a web project that Netbeans created).

What am I doing wrong?

Re: Using a war in a Java application in Netbeans

Posted By:   Byron_Tymvios  
Posted On:   Thursday, August 17, 2006 04:33 AM

If you open the .war file with a zip package like winzip or winrar or whatever you use, you can find the jar file and extract it (the war file will contain your jar file). Then you can add your .jar file to jetty.

About | Sitemap | Contact