Forums Register Login

Maintaning directory structure for embedded Java web server, in pure java applicaiton

+Pie Number of slices to send: Send
Hi,

I have embedded web server as a service in my Java application.
(ie. a java web server is embedded in my java application, which automatically starts web server once application gets up)
The requirement is to support web interface thorugh my application. It means, I want to add web pages (html,jsp,applets) in my existing stable java application.
The existing java application has stable directory structures for jars & config files.
And these classes are required for newly developed applets & jsp pages too.

As the new requirement is to add & manage server pages & applets in same application, I want a way to enable minimum
directory structure change of my existing application & should able to add new applet classes & web pages by mantaining previous stable dir. structure.

Current dirctories are ->
1) Core jar file (required for newly developed applets) -> /usr/com/bin/project/core.jar
2) Java application config files -> /usr/com/db/project/*.xml
3) Other jar libraries -> /usr/com/libs/*.jar

I want to add & manage new web pages, applets in my existing application without any change in above dir. structure for jars, as it is already stabled since many years.

But,at the same time I need that core.jar for my web pages.
Please, help me to sort out this issue.

Thnx
Amit

+Pie Number of slices to send: Send
Even if you instantiate the web server from inside your java application, the web server must be having its own directory structure, isnt?
I assume your main problem is to make core.jar available to the web applications. You can always do this in your build process. Just copy core.jar in the location/lib dir accessible to the web application.

Not an advanced question, moving to Servlets forum.
Your mother is a hamster and your father smells of tiny ads!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 979 times.
Similar Threads
struts/jboss/tomcat application not working
SEVERE: Can't create apr error
Servlets on J2EE
Compilation error while building the project using Ant
Using a jar inside my application
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 04:59:27.