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

Path problem, seeking advice

 
Pol Appan
Ranch Hand
Posts: 144
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I have few jars which I required to run a JSP file and I am using JDeveloper to compile and run. In JDeveloper, you can add the path of the jars in the project properties(Everybody know this). My question is when I deploy this
JSP to solaris server, how do I add the path in my JSP file, I have only one JSP page. How can set the path? Besides I am not using war or ear to deploy to a remote server?

Any help is highly appreciable.

Thanks
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To run a web app, you will need to have a WEB-INF directory in your project directory, which contains your Java class files and the web.xml file, amongst other things. Put the jar files inside WEB-INF/lib, and they will be found automatically - you don't need to change the classpath.
 
Pol Appan
Ranch Hand
Posts: 144
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot.

What if I want to create a subfolder inside web-inf/lib and put the JARS inside the sunfolder?

When I put JARS under the subfolder, my JSP is not working, do I need to add anything in my JSP?
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

What if I want to create a subfolder inside web-inf/lib and put the JARS inside the sunfolder?

When I put JARS under the subfolder, my JSP is not working, do I need to add anything in my JSP?


Subfolders inside WEB-INF/lib simply will not work. The servlet specification would be the place to read up on web application directory structure, especially WEB-INF.
[ August 19, 2005: Message edited by: Ulf Dittmer ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic