I have servlets in C:\myapp\WEB-INF\classes. With Tomcat I add this line to server.xml to create a new context for these servlets. <Context path="/webapp" docBase="C:\myapp" debug="1" reloadable="true" /> Then I can access servlets using http://domain/webapp/servlet/...
How to add context in WAS 5.0 to use folder C:\myapp\WEB-INF\classes? Thanks.
BJ - SCJP and SCWCD
We love Java programming. It is contagious, very cool, and lot of fun. - Peter Coad, Java Design
Originally posted by Bruce Jin: I have servlets in C:\myapp\WEB-INF\classes. With Tomcat I add this line to server.xml to create a new context for these servlets. <Context path="/webapp" docBase="C:\myapp" debug="1" reloadable="true" /> Then I can access servlets using http://domain/webapp/servlet/...
How to add context in WAS 5.0 to use folder C:\myapp\WEB-INF\classes? Thanks.
You can't do that. WebSpehre won't let you serve from a directory structure like that. You MUST package your servlets & JSPs in a WAR file. When creating the WAR file with the AAT you can set the context there. Kyle
Thanks Kyle: Can I write a classloader to load servlets from my directory structure? I seem to see WAS 5 has a place to configure a classloader. Thanks.
BJ - SCJP and SCWCD
We love Java programming. It is contagious, very cool, and lot of fun. - Peter Coad, Java Design
Originally posted by Bruce Jin: Thanks Kyle: Can I write a classloader to load servlets from my directory structure? I seem to see WAS 5 has a place to configure a classloader. Thanks.
You could, but as I said DON'T DO THAT. That's not the way WebSphere works, and trying to circumvent it will just cause you grief. Just use EAR files... Kyle