Auto start application in web logic

Hello,
I need to auto startup an application in a unix server. The application uses session bean to access the database.
Is it possible to auto start up the application using a cron tab/cron job because the application is using session bean residing in weblogic server?
If not how do i do that? convert the session bean into normal java classes and access database without using a session bean?
Thanks for you help.

Hi,
I tried adding the listener .
It work in tomcat but after i transport it into weblogic 5.1, i give this error.
Received SAXParseException from Sun Parser at line 5, column -1: org.xml.sax.SAXParseException: Element "web-app" does not allow "listener" here.
I removed all other elements and it stil l wont work...
<listener>
<listener-class>com.SAW.project.servlet.SVLTriggerServlet</listener-class>
</listener>
Is there any way to fix this?
Or what s the correct way to wrtie a program that do something once everyday, auto start up when webserver startup and use Session bean to access database?
I tried using cron job but i dont think i can because im using EJB in my program..init() is not called when u start the server...
im going to try the <!ELEMENT load-on-startup (#PCDATA)> to start it using a http servlet instead of a listener...

Similar Messages

  • Auto-start application on Container/Server restart

    What's the easiest was to have the container auto-launch a specific application whenever it is started/restarted? I assume this would also happen if the entire server were rtestarted?
    _mike                                                                                                                                                                                                                                                                                                                                                                                                   

    Hello,
    If you put a server in your project and you put the servlet at auto-start your application will start automatically when the server will start.
    To do that you just have to use the element:
    <load-on-startup>1</load-on-startup>
    in the servlet tag.
    server.xml:
    <application name="foo" path="../applications/foo.ear" auto-start="true" />
    http-web-site.xml:
    <web-app application="foo" name="foo-web" load-on-startup="true" root="/foo" />
    Regards
    Tugdual Grall

  • Problem while deploying application in web logic

    Hi,
    i have an web application with servlets running fine in tomcat 5.1.12, but when i copy the same foldet to web logic and i run i gives an error, i create a domain of my name, and i kept the folder in weblogic, user _projects--> applications folder, but while accessing from the browser i got an error. so please rectify my error.
    Babji..

    I don't use web logic so I can't help you. But if you post whatever error message you are referring to into your thread, someone who uses web logic might have a better idea as to how to respond. Additionally I suspect there may be some differences in the configuration settings between Tomcat and web logic, you might look into that. But I have no idea.

  • Auto Start applications

    Can anyone tell me how to make applications auto start after a reboot?
    I am really fustrated about how I must allways start fussclock manually after a reboot.
    Nopt sure if it can be done, but thanks for any help on the subject.

    Hello,
    Here's how to do to this and not the least bit frustrating.
    Open System Preferences, click on Accounts. When that window opens lick where it says: Login Items Now, under the box on the right click the box on the right. A dialog box will open. Navigate to the Applications folder, select the application you wish to launch on boot. *You may be prompted for your administrator password. Quit System Preferences and reboot. That's all there is to it.
    Have a good day!
    Carolyn

  • Auto starting applications on boot

    I'd love to have terminal auto start and position in the bottom left of the screen. What file should I edit to make this happen? And, what how can I specify where the applicaiton should appear?
    I looked for a rc.conf file, but could not find. Perhaps there is an easy way of doing this in the GUI.
    Which is the best approach?

    Run Terminal and set the window size and position you want, then use "Save As..." from the "File" menu to create a settings file. Add this file to the "Login Items" in "Accounts" System Preference.

  • How i can automatic start WLS_Forms WLS_Report & Web Logic Server?

    How i can automatic start just like oracle (auto start /shtudown through windows)

    I would write a batch file and use the Windows Startup to call it.
    I would probably include a check or delay in it to allow NodeManager to be available before I tried to start the AdminServer.
    My shop is Unix so I don't have an example.
    You also might be able to do it as a service and this may help:
    http://download.oracle.com/docs/cd/E13222_01/wls/docs81/adminguide/winservice.html
    Best Regards
    mseberg

  • Is there a way to auto-start applications in full screen, such as Safari, Mail, iTunes etc.?

    I would like several applications to start in full screen, including Mail, Safari and iTunes, rather than starting them, then making them full screen. Is there a setting somewhere or a way of doing that? Thanks in advance.

    I found it. In System Preferences under General "Restore windows when quitting and re-opening apps" has to be checked. However when that is checked it takes you back to all of the sites you had open when you quit the app. I would prefer it start full screen, but back at the home page. Do yours do that as well?

  • Deploy an application in web logic 8.1

    hi guys,
    can any body say how to deploy an web application in linux. i am running weblogic8.1 server. i am using ant and X-Doclet. If any body as custom ant build.xml. please feel free to post to [email protected] Waiting for an early response.bye.

    Hi
    Did you try to deploy it using the web console ?
    Jin

  • Oracle Map Viewer Application on Oracle Web Logic

    We have developed an application using map viewer, Oracle 10g and deployed it in Oracle AS 10g. It was running fine and OK. Now we switched over the same application to Web logic10.3, using map viewer 10.1.3.3, Oracle db11g, JDeveloper 11g. We could deploy successfully on Web logic. The problem encountered is that During the map display (mapviewer.run()), an exception “Map viewer cannot process your map request. Check map viewer log for details.” is coming. We checked Map viewer log file and found no comments.

    If your web server is working and the forms server is running type:
    http://ip addr:port/dev60html/runform.htm
    You need to put the ip address or name of your server in and the port number apache is running on (leave blank if this is 80).
    This gives you the Oracle Forms start screen.
    cheers
    tony

  • Unable to Start Soa_Server and BAM_SERVER in Web Logic Admin console

    Hi,
    I am new to this whole thing of SOA and web logic and trying to install SOA and web logic on my machine to learn SOA components.
    Appreciate your inputs on the error i am at now.
    I am trying to install SOA Suite 11.1.1.1 and in the process have installed web logic server as well.
    I am unable to start both the Bam_server and the SOA_SERVER and the error message, I get, when i try to start the server;
    ======================================================================
    For server bam_server1, the Node Manager associated with machine LocalMachine is not reachable.
    All of the servers selected are currently in a state which is incompatible with this operation or are not associated with a running Node Manager or you are not authorized to perform the action requested. No action will be performed.
    ======================================================================
    When i try to start , Node manager using start menu, i see a error as below :
    =============================================================
    May 18, 2012 6:12:56 PM weblogic.nodemanager.server.NMServer main
    SEVERE: Fatal error in node manager server
    java.net.BindException: Address already in use: JVM_Bind
    at java.net.PlainSocketImpl.socketBind(Native Method)
    at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:383)
    at java.net.ServerSocket.bind(ServerSocket.java:328)
    at javax.net.ssl.impl.SSLServerSocketImpl.bind(Unknown Source)
    at java.net.ServerSocket.<init>(ServerSocket.java:194)
    at java.net.ServerSocket.<init>(ServerSocket.java:150)
    at javax.net.ssl.SSLServerSocket.<init>(SSLServerSocket.java:84)
    at javax.net.ssl.impl.SSLServerSocketImpl.<init>(Unknown Source)
    at javax.net.ssl.impl.SSLServerSocketFactoryImpl.createServerSocket(Unkn
    own Source)
    at weblogic.nodemanager.server.SSLListener.init(SSLListener.java:76)
    at weblogic.nodemanager.server.NMServer.start(NMServer.java:206)
    at weblogic.nodemanager.server.NMServer.main(NMServer.java:377)
    at weblogic.NodeManager.main(NodeManager.java:31)
    =============================================================
    Regards:
    Nagaraj.s

    First of all, I think this is a wrong forum. You had better use WebLogic Application Server forum - WebLogic Server - Upgrade / Install / Environment / Migration
    From the error: Address already in use: JVM_Bind one can guess that some config of your Node Manager is wrong.
    Note that you don't necessarily need the Node Manager to start WebLogic apps - it is necessary only if you want to use the Weblogic Console.
    The link to docs on WLS: http://www.oracle.com/technetwork/middleware/weblogic/documentation/index.html

  • Start Web Logic 5.1 in a separate JVM

    Hi All.
    Is there a way to start Web Logic 5.1 in a separate JVM from within a java class.
    I am writing a service pack for a Web Logic application. During the service pack
    uninstall, I have to stop web logic, delete the new files, restore old files and
    restart web logic.
    For restarting, I am using a JNI call to invoke the web logic startup class. This
    runs in its own java.exe process. But even after the uninstaller's java.exe quits,
    the java.exe that is running web logic holds a lock on to the folder from where
    the uininstaller was launched.
    Does anyone know why this is happening?
    Is there a solution to this issue?
    Your help would be much appreciated.
    Thanks Jai

    In your function that you call with JNI, before you launch the new WebLogic
    process, you should set the current working directory to the WebLogic
    directory and everything will work fine.
    I have no explanation for why the directory remains locked.
    - Mike
    "Jai Karuppuswamy" <[email protected]> wrote in message
    news:[email protected]..
    >
    Hi All.
    Is there a way to start Web Logic 5.1 in a separate JVM from within a javaclass.
    >
    >
    I am writing a service pack for a Web Logic application. During theservice pack
    uninstall, I have to stop web logic, delete the new files, restore oldfiles and
    restart web logic.
    For restarting, I am using a JNI call to invoke the web logic startupclass. This
    runs in its own java.exe process. But even after the uninstaller'sjava.exe quits,
    the java.exe that is running web logic holds a lock on to the folder fromwhere
    the uininstaller was launched.
    Does anyone know why this is happening?
    Is there a solution to this issue?
    Your help would be much appreciated.
    Thanks Jai

  • Application module auto-start during debug

    Hello
    I'm looking for a way to get my application module to start automatically when I debug. I've played with options like setting "Runtime Instantiation Behavior" to "Non-Lazy Loading" in the app module editor. I can't exactly test the auto-start by actually deploying to an app server right now, so I need a way to test this during a local debug session. Has anyone ever done this?
    Thanks

    This should be possible. Check if you have set <load-on-startup>1</load-on-startup>in the servlet section of your web.xml file.
    Timo

  • Very Urgent Unable to Launch Application using Web Start using JDK 1.4.2

    Hi all
    I am very serious issue i have ejb client swing application that uses
    RMI to contact a session bean deployed in JBoss now i want the client app to be installed in the client machine using web start . Also i understand i require security permission to access network resources. so i have signed all the JAR files with same certificate created using self certificate avialiable in JDK by default also in the JNLP file in have included the following tag
    <security>
    <all-permissions/>
    </security>
    Now when I launch my application using Web start it gives an error that " Unsigned application is trying to access local resources"
    I unable to understand what could be the problem . Please help me with the steps to be followed where in client should be able to RMI call to the server
    Thanks in Advance
    Naveen

    You may have tried this already, but you might have to sign the jars via command line, outside any export process from your IDE.
    $ jarsigner {filename}.jar {key from keystore}
    I also had problems using webstart and RMI through an RCP
    Ben

  • Java Web Start application failing on my user account

    Hi All,
    I've been tearing my hair out over this for a while and haven't been able to get anywhere wiht it. I've finally cracked and decided to post a plea for help in here.
    Basically, I have a web start application that will not start under my user profile but will under a new account I created. If I try and start it from the terminal with javaws I get "Bus Error" and that's all. Double clicking it gives me a crash dialoge box and the details can be seen here:
    http://pastebin.com/m77b1111f
    As I said before, running it in the other account works fine as does "sudo javaws /path/to/app.jnlp" but I really don't want to have to do that every single time.
    I've deleted the JavaCache folder as well as any ~/Library/Preferences/java.plist all without any joy. Also, I'd like to add that there are a number of other Web Start apps that run without any problems.
    Any ideas?

    Thing is, if there was corruption of something that was system wide, it wouldn't work under a different profile, right?
    Unpredictable as to how lomg it would work on a new account.
    Is this usually the case for a safe boot?
    Yes, it runs fsck_hfs -fy on the whole drive, dumps several caches & so on, the next boot will also take longer than usual as it rebuilds caches & so on.

  • Java web start application runs too slow...

    Hello,
    I am new to Java Web Start. I have created a java web start application and when i enable web start from local Execution, then it works perfectly well. But when i upload it on server and then download the application, then it is too too slow...i mean it takes minutes to get the output on clicking some button....my jnlp file is as under:
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <jnlp codebase="http://(web server code base)" href="launch.jnlp" spec="1.0+">
    <information>
    <title>ERD</title>
    <vendor>Deepika Gohil</vendor>
    <homepage href="http://appframework.dev.java.net"/>
    <description>A simple java desktop application based on Swing Application Framework</description>
    <description kind="short">ER Deign Tools</description>
    </information>
    <update check="always"/>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <j2se version="1.5+"/>
    <jar href="ERD_1_2.jar" main="true"/>
    <jar href="lib/appframework-1.0.3.jar"/>
    <jar href="lib/swing-worker-1.1.jar"/>
    <jar href="lib/jaxb-impl.jar"/>
    <jar href="lib/jaxb-xjc.jar"/>
    <jar href="lib/jaxb1-impl.jar"/>
    <jar href="lib/activation.jar"/>
    <jar href="lib/jaxb-api.jar"/>
    <jar href="lib/jsr173_api.jar"/>
    <jar href="lib/ant-contrib-1.0b3.jar"/>
    <jar href="lib/jaxb-impl.jar"/>
    <jar href="lib/jaxb-xjc.jar"/>
    <jar href="lib/FastInfoset.jar"/>
    <jar href="lib/gmbal-api-only.jar"/>
    <jar href="lib/http.jar"/>
    <jar href="lib/jaxws-rt.jar"/>
    <jar href="lib/jaxws-tools.jar"/>
    <jar href="lib/management-api.jar"/>
    <jar href="lib/mimepull.jar"/>
    <jar href="lib/policy.jar"/>
    <jar href="lib/saaj-impl.jar"/>
    <jar href="lib/stax-ex.jar"/>
    <jar href="lib/streambuffer.jar"/>
    <jar href="lib/woodstox.jar"/>
    <jar href="lib/jaxws-api.jar"/>
    <jar href="lib/jsr181-api.jar"/>
    <jar href="lib/jsr250-api.jar"/>
    <jar href="lib/saaj-api.jar"/>
    <jar href="lib/activation.jar"/>
    <jar href="lib/jaxb-api.jar"/>
    <jar href="lib/jsr173_api.jar"/>
    </resources>
    <application-desc main-class="erd.screen1">
    </application-desc>
    </jnlp>
    I dont understand the reason. Could you please help me out.
    Thank you,
    Deepika Gohil.

    Check your web server's access logs to see how many requests web start is sending for each jar. After you've loaded the application the first time, for each subsequent launch, if you've got everything configured right, you should only see requests for the JNLP file and maybe some gifs because web start should load everything else out of the cache (if you're using the version-based download protocol). Or if you're using the basic download protocol, then you might see requests for each jar file, but even in this case, if your web server is prepared to evaluate the last-updated attribute for each jar request and for jars that have not changed, respond with no actual payload and a header value of Not-Modified, then that should run almost as fast.
    You might also want to consider changing the "check" attribute of the "update" element from "always" to "background" for a couple of reasons. It should allow your app to start sooner (but this means that you might have to launch once or twice after an update is applied to the web server before the update shows up on the workstation). Also, my impression is that "always" is broken and prevents web start from ever checking to see if your jnlp file has been updated if you launch your app from a web start shortcut - launching from a browser is less likely to have this problem, depending on how often your browser is configured to check for updated resources.

Maybe you are looking for