Deploying Java stand alone application in Weblogic server

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

Hi René van Wijk,
Thanks for quick reply. Link you mentioned gave a basic idea of application structure , but still i couldnt get deployment process.
Am very much new to weblogic.Can you please let me know how to deploy our standalone application in to weblogic, with out making any changes to the code.
Below is folder structure of my java stand alone application *( not webapplication)*
myapp
- config -> contains all configuration files , for ex:- myconfig.xml
- logs -> contains log files
- ssl -> ssl related files
- samples ->contians stub's
- myapp.jar
We have logic to load configuration file (config/myconfig.xml) , in an class and we are not allowed to make any changes to this code, so we cant use Thread.currentThread().getContextClassLoader().getResource(...) .
Regards,
Suresh

Similar Messages

  • How to deploy java stand alone applications

    I need to find information on how to deploy java classes to just run time clients.
    I appretiate any help on this.

    Probably yes. It is possible to write a lunch application. But what considerations do I have to take. Let's say, Since Forte for Java 4 does not use CLASSPATH environment variable, How do I tell the JRE where my classes are located? I tried running
    javaw c:\directory\classname.class
    ...but I receive a message saying that the main class was not found...
    Do you know why this could be?

  • How to deploy and remove one application from WebLogic server

    Dear Friend:
    Do you know anyway that I can deploy or remove an application using
    command line intead of administration console when the WebLogic
    server is running?
    Thanks in advance,
    Damon

    I think we have to clean ( already scheduled for next release) list of some of the
    supported API on various MBeans. However just FYI , there is an "void
    setURI(java.lang.String)" method in Component MBean that you could use.
    Viresh Garg
    Pamela Minthorn wrote:
    I am also trying to automate application deployment process. I have looked at
    the docs you suggested below and am wondering why the ComponentMBean has a getURI()
    but not a setURI().
    Here's a snippet from my config.xml that I want to automate:
    <Application
    Deployed="true"
    Name="TestApp1"
    Path="E:\WebApps\version1">
    <WebAppComponent
    Name="TestApp1"
    URI="TestApp"
    Targets="myserver"
    />
    </Application>
    I haven't figured out how to set the URI.
    Also, it looks like this should also be possible using weblogic.Admin. Is that
    true?
    Thanks,
    Pam
    Viresh Garg <[email protected]> wrote:
    You can write a JMX java client and create an Application Admin Mbean
    and then use the application MBean and component MBean interface to set
    the targets for components and deploy them . For more information look
    at the JAVAdoc for:
    weblogic.management.MBeanHome
    weblogic.management.configuration.ApplicationMBean
    weblogic.management.configuration.ComponentMBean
    Let me know if you have addional questions.
    Viresh Garg
    Principal Developer Relations Engineer
    BEA Systems
    Damon wrote:
    Dear Friend:
    Do you know anyway that I can deploy or remove an application using
    command line intead of administration console when the WebLogic
    server is running?
    Thanks in advance,
    Damon
    [att1.html]

  • How to deploy or remove an application from WebLogic server?

    Dear Friend:
    Do you know anyway that I can deploy or remove an application using
    command line intead of administration console when the WebLogic
    server is running?
    Thanks in advance,
    Damon

    Yes, you can use the command-line weblogic.deploy utiltiy to do the
    same.
    For more info:
    http://e-docs.bea.com/wls/docs60///////adminguide/utils.html#1138475
    cheers,
    Mihir
    Damon wrote:
    Dear Friend:
    Do you know anyway that I can deploy or remove an application using
    command line intead of administration console when the WebLogic
    server is running?
    Thanks in advance,
    Damon

  • Installing Java Stand alone Application on other PCs

    Dear All
    I am very new user to Java programming. I have recently finished developing basic Java Application that interacts with MySQL Database. The application does pretty standard database tranctions.
    Now i would like to install this finished appliction on other PCs as stand alone program (hope i am making myself clear here). Sort of I need to make an installation package that will install the Basic application and MySQL database on the the other PCS.
    Please desparetly help needed on this matter. I appreciate all your inputs Thank you.

    it would be much much easier if you weren't using MySQL to be honest. if you used a pure-java database such as Hypersonic, the database could just be bun dled as a bean with your application.

  • Can I deploy an Oracle Forms Application in WebLogic Server?

    Dear all:
    I need to know if Oracle WebLogic Server supports Oracle Forms applications?
    I am looking some clue in the documentation, but I didn´t find something clear yet, please help me.
    Thanks
    Edited by: user637951 on Nov 18, 2008 6:25 AM
    Edited by: user637951 on Nov 18, 2008 6:26 AM

    I don't believe that Forms will be certified on WLS until 11g based on a ppt I saw at Oracle Open World. However, you'll need to get confirmation on that from someone with Forms knowledge. Their forum is here:
    Forms

  • Reading data in HTML page from a  Java Stand alone application

    hey,
    i ve read bout how to read html pages using the URL and how to parse them using HTMLeditorkit and stuff.. but i want to read the values tht are updated in the HTML page dynamically and then use them in my java application ... is tht possible .. then i also want to check the click here links and the working of them ...
    please reply ...

    well .. i did tht too ..
    public void handleStartTag(HTML.Tag tag,
       MutableAttributeSet attributes, int position) {
              try{
                   //if (tag==HTML.Tag.A)
                   System.out.println("tagged");
                   this.writeAttributes(attributes);
                   if(tag==HTML.Tag.INPUT)
                   System.out.println("input found");
              catch(IOException ex){
                   System.err.println(ex);
         }the <A> tag thing is working but it is not recognizing the <input> tag ....
    ne ideas why this is not working ...

  • How to invoke a pdf from the java  stand alone application

    I have a JFileChooser and i select a pdf through that . And i should be able to invoke the file in an acrobat reader.
    The acrobat application should be invoked on a click the button upon selection.
    Thanx in advance.

    Try to use Runtime.exec() method like this:
    String exePath = "path to acrobat reader executable";
    String filePath = "path to the file to execute";
    Runtime.getRuntime().exec(exePath+" "+filePath);

  • How to deploy DAC enterprise application on WebLogic Server

    hi,
    i have installed DAC server on Linux machine and DAC client on windows machine. I can able to log in to DAC by stand alone mode and
    Currently we are unable to login to the DAC 11g client by FMW(Web mode)
    To login into DAC client by FMW mode we need to deploy DAC enterprise application on WebLogic Server, could anybody help how to deploy DAC enterprise application on weblogic server ?
    Thanks in advance..
    Vinoth

    follow this doc http://docs.oracle.com/cd/E35287_01/fusionapps.7964/e14849.pdf
    mark if it helps

  • Getting error while deploying application in weblogic server 9.2

    Im getting below error in production in weblogic 9.2 server.
    ####<Jan 27, 2010 8:17:02 PM AST> <Error> <Deployer> <hpw2k3los01> <LOSWebServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1264612622151> <BEA-149205> <Failed to initialize the application 'NCB_LOS' due to error weblogic.management.DeploymentException: Exception occured while downloading files.
    weblogic.management.DeploymentException: Exception occured while downloading files
         at weblogic.deploy.internal.targetserver.datamanagement.AppDataUpdate.doDownload(AppDataUpdate.java:43)
         at weblogic.deploy.internal.targetserver.datamanagement.DataUpdate.download(DataUpdate.java:56)
         at weblogic.deploy.internal.targetserver.datamanagement.Data.prepareDataUpdate(Data.java:98)
         at weblogic.deploy.internal.targetserver.BasicDeployment.prepareDataUpdate(BasicDeployment.java:663)
         at weblogic.deploy.internal.targetserver.BasicDeployment.stageFilesForStatic(BasicDeployment.java:706)
         at weblogic.deploy.internal.targetserver.AppDeployment.prepare(AppDeployment.java:100)
         at weblogic.management.deploy.internal.DeploymentAdapter$1.doPrepare(DeploymentAdapter.java:38)
         at weblogic.management.deploy.internal.DeploymentAdapter.prepare(DeploymentAdapter.java:177)
         at weblogic.management.deploy.internal.AppTransition$1.transitionApp(AppTransition.java:21)
         at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:233)
         at weblogic.management.deploy.internal.ConfiguredDeployments.prepare(ConfiguredDeployments.java:165)
         at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:122)
         at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:173)
         at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:89)
         at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    java.net.ConnectException: Tried all: '1' addresses, but could not connect over HTTP to server: '192.168.50.5', port: '80'
         at weblogic.net.http.HttpClient.openServer(HttpClient.java:320)
         at weblogic.net.http.HttpClient.openServer(HttpClient.java:375)
         at weblogic.net.http.HttpClient.<init>(HttpClient.java:149)
         at weblogic.net.http.HttpClient.New(HttpClient.java:245)
         at weblogic.net.http.HttpURLConnection.connect(HttpURLConnection.java:160)
         at weblogic.deploy.service.datatransferhandlers.HttpDataTransferHandler.getDataAsStream(HttpDataTransferHandler.java:75)
         at weblogic.deploy.service.datatransferhandlers.DataHandlerManager$RemoteDataTransferHandler.getDataAsStream(DataHandlerManager.java:153)
         at weblogic.deploy.internal.targetserver.datamanagement.AppDataUpdate.doDownload(AppDataUpdate.java:39)
         at weblogic.deploy.internal.targetserver.datamanagement.DataUpdate.download(DataUpdate.java:56)
         at weblogic.deploy.internal.targetserver.datamanagement.Data.prepareDataUpdate(Data.java:98)
         at weblogic.deploy.internal.targetserver.BasicDeployment.prepareDataUpdate(BasicDeployment.java:663)
         at weblogic.deploy.internal.targetserver.BasicDeployment.stageFilesForStatic(BasicDeployment.java:706)
         at weblogic.deploy.internal.targetserver.AppDeployment.prepare(AppDeployment.java:100)
         at weblogic.management.deploy.internal.DeploymentAdapter$1.doPrepare(DeploymentAdapter.java:38)
         at weblogic.management.deploy.internal.DeploymentAdapter.prepare(DeploymentAdapter.java:177)
         at weblogic.management.deploy.internal.AppTransition$1.transitionApp(AppTransition.java:21)
         at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:233)
         at weblogic.management.deploy.internal.ConfiguredDeployments.prepare(ConfiguredDeployments.java:165)
         at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:122)
         at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:173)
         at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:89)
         at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    This error is intermittent and comes during deployment.Once we get this error we have restart the server.
    Can someone please tell what is the cause of this error?
    we dont have any server with Ip '192.168.50.5' as mentioned in the error message.and what exactly is the server trying to download here?
    Edited by: user12537931 on Jan 31, 2010 4:09 AM

    Hi,
    How are you trying to deploy your application on the Server...Using Admin Console...or Using any Script Like WLDeployer?
    The issue seems to be related to Http protocol in port 80.
    Are you sure that in your Production environment there is not firewall blocking issue...on port 80...?
    Some firewall settings rejects any existing connection to be opened for a long time....If your application takes some time, then please check that the firewall doesn't disconnect the existing connection until the deployment time gets over.
    <font color=red>Note: </font>Sometimes this kind of issue happens when we try to deploy our application on WebLogic Server...at that time based on the XSD informations available in our DeploymentDescriptors...the Server tries to download those DTDs from the mentioned URIs....
    Example:
    web.xml has some entries like:
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    In above case if the Firewall of our production environment Blocks any request to pass through Port 80 (default Http Port) then we get such exceptions.
    http://middlewaremagic.com/weblogic/?p=802
    Thanks
    Jay SenSharma
    http://middlewaremagic.com/weblogic (Middleware Magic Is Here)

  • Error deploying WebCenter Collaboration 10.3 on WebLogic Server

    when i deploy webcenter collaboration 10.3 on WebLogic Server in a Suse Linux was failed with this error
    [HTTP:101216]Servlet: "cnscallback" failed to preload on startup in Web application: "/collab". java.lang.NullPointerException at com.plumtree.core.util.SpringPropertyConfigurator.resolvePlaceholder(SpringPropertyConfigurator.java:66) at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.resolvePlaceholder(PropertyPlaceholderConfigurer.java:336) at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.parseStringValue(PropertyPlaceholderConfigurer.java:286) at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer$PlaceholderResolvingBeanDefinitionVisitor.resolveStringValue(PropertyPlaceholderConfigurer.java:401) at org.springframework.beans.factory.config.BeanDefinitionVisitor.resolveValue(BeanDefinitionVisitor.java:150) at org.springframework.b10.3
    any idea please
    thanks
    i follow all the instruccion of the installation pdf

    Regarding this error..... "cnscallback" failed to preload on startup in Web application: "/collab".
    CNS stands for common notification service.
    Was notification installed, is it up and running, and is collab properly pointing to it?
    Just a guess, but it could be collab requires this to be able to start properly.

  • T's possible to use the jsp to develop stand-alone application?????

    Hello everybody, I would like to know your considerations about this topics: It's possible to use jsp to develop stand-alone application that will be not run on the server but on the local machine?There are some negative aspects on make this? Thank you for your reply

    i don't think you could ever protect the jsp code and it wouldn't do you much good to bother anyway, since anyone with a browser can just "View Source" and see all the HTML on the page anyway.
    the only thing you would want to protect is your java source. you don't have to distribute the .java files with your application, just the .class's. you could try and obfuscate the .class files, but a determined person will always be able to reverse it back to a .java program and read it. it would take a bit of work and knowhow though, so figure out how smart the consumer is going to be and if they will be able to figure out how to reverse .class files back to .java

  • From RFC 2068 Error while testing ADF Application in Weblogic Server

    Hi All,
    Created an ADF application and Deployed this application to Weblogic server.
    I am getting the below error After deploy into weblogic server while running the application
    I am able to run this application well in JDeveloper using the IntegratedWebLogicServer.
    The Application is successfully deployed to the Web Logic server.
    While creating the domain, I have extended the Oracle JRF classes.
    Error
    Error 404--Not Found
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.5 404 Not Found
    The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
    If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.
    JDeveloper Version : 11.1.1.3.0
    Weblogic Version : 10.3.3.0
    Thanks
    Satish

    HI John,
    In The web.xml i added /faces/TestPG
    This is URL in Weblogic Server
    http://10.146.2.232:7001/TestDeployee-ViewController-context-root/faces/TestPG
    Thanks
    Sathish

  • How to include dll into a stand-alone application

    Hi, I wrote a vi to process images from my camera, and I want to build a stand-alone application(exe), so I can share the application with my friends. I just do as wht's in  the Labview help, but when I run the exe file in other PC, it  tells me I haven't nivision.dll etc. My question is how to find out the dll files in my vi and include these files in the stand-alone application?  

    To be honest I am not sure. Its been a while since have used the vision run-time engine. Before I installed it on the target computer. I ddn't include it with my application build.
    Take a look at this http://digital.ni.com/public.nsf/allkb/1A9A18AA574ABEDF86256F780062C240 it might help. Also look at the documentation supplied with the vision deployment license.
    David

  • Drawing in a stand alone application

    Hey all:
    first of all I'd like to say that I'm fairly new to java programming, so if what I ask is dumb or newbie like please bare with me.
    Second, I'd like to say that I use visual J++ for compiling.
    I'm trying to make a graphic calculator application. Usually I would create a subclass of the Form class to create my user interfaces. The problem this time is that if I make my class extend a Form, I don't have the drawing possibilities from the awt. What I thought of doing is actually making my class extend Applet, but the problem with that is that I can't make a stand alone application out of it.
    Therefore I was wondering:
    1. if there is a way to make an applet a stand alone application.
    2. if there is a way to perhaps force or cast the Form subclass to beheave like an applet
    or
    3. if there is a third class that I might not be aware of to use instead of both Form and Applet and that would have that functionality I'm looking for.
    Thanks

    Don't use J++ for compiling. It's highly outdated and uses Microsoft proprietary extensions that only work with Microsoft's highly outdated JVM that is no longer in use.
    I don't know what the Form class is, but if it comes from a com.ms package you probably should stick with Frame, or better yet, JFrame from Swing. I suggest writing your application in Swing.
    import java.awt.*;
    import javax.swing.*;
    public class MyFrame extends JFrame
        public static void main(String[] args)
            MyFrame mf = new MyFrame();
            mf.setSize(100, 100);
            mf.setVisible(true);
    }will create a basic application in Java Swing. You can paint on a JFrame by accessing its "content pane".
    mf.getContentPane()

Maybe you are looking for

  • How many times can you download

    hello how many times can i download the creative cloud set up?

  • Backup on main drive

    Hi! Is it possible (or dangerous) to use for Time Machine a partition of my main drive, that is the disk where I installed Leopard?

  • Excel 2010 Status Bar Sum

    I recently switched from Excel 2007 to 2010. In 2007 when I highlighted a range of cells that included hidden cells, the SUM in the status bar only displayed the sum of the visible cells - which was very helpful in determining a) whether the range co

  • How to join two columns between two tables with different column names

    Hi How i can join 2 columns with different names between the 2 tables. Can any one please give solution for this. Thanks Manu

  • How to restrict user to not enter same value in tabular form

    Greetings ! i m asking second time the questiion because i was not answered preivously, so please dont mind if it is a duplicate one, question was: i created tabular form as shown in example. i want to validate username as you see in my example to re