File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes BEA/Weblogic and the fly likes Deploying Java stand alone application in Weblogic server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Deploying Java stand alone application in Weblogic server" Watch "Deploying Java stand alone application in Weblogic server" New topic
Author

Deploying Java stand alone application in Weblogic server

suresh gaddam
Greenhorn

Joined: Aug 24, 2011
Posts: 1
Hi All,
We have an java stand alone application which our client uses. Suddenly they came up with a requirement of using this application from web logic server.We have following directory structure for our application

myapp - config -> contains all configuration files
- logs -> contains log files
- ssl -> ssl related files
- samples ->contians stub's
- myapp.jar

How to deploy our standalone application in to weblogic server?.
We tried putting whole myapp folder in WEB-INF folder , and from the servlet we are able to invoke an method in an class file( in myapp.jar say Test.getInstance()) but it couldnt find configuration files (in config folder ) and it is throwing an error. We have a class called Test in myapp.jar and when we call getInstance of the class it loads all config files - config file location is hardcoded as /config/myconfig.xml , and we are facing problem here because it couldnt find myconfig.xml.

We also tried packaging whole myapp folder in to jar , but with that also we faced the same problem

Please let us know are we proceeding in the right way and how to deploy our application in weblogic server.We dont prefer making changes to our code at this point of time.

Any info on this will be very helpful to us.
Regards,
Suresh



Amit M Tank
Ranch Hand

Joined: Mar 28, 2004
Posts: 257
Put your config files in WEB-INF/classes folder


Amit Tank
Linked In
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Deploying Java stand alone application in Weblogic server
 
Similar Threads
Struts Config
Accessing resources outside of the Jar
problem in deploying WAR files in server
Best place for .properties file?
How to deploy WAR file in weblogic 5.1