Apache Tomcat goes down on starting Java application, Oracle error

Hello all
I am running a Java application on Apache Tomcat 5.5. I use Oracle 10g Express Edition as the back-end for my application. I deploy my application using theTomcat manager and it works fine.
However, when I try to access the home page of the application, my Tomcat server goes down. The stdout logs of Apache Tomcat display the following message:
Exception message: java.sql.SQLException: ORA-00604: error occurred at recursive SQL level 1
ORA-12705: Cannot access NLS data files or invalid environment specified.
What could the possible reasons be for this to happen? And how can I workaround or fix this?
Thanks
Swetha

This looks like a problem that XE has with some recently altered locales, i.e. Russian. You can work around the problem by making sure that the Java locale (Locale.setDefault()) is supported by XE before the JDBC connect call. For example, use Locale.setDefault( Locale.US ). After connect, you may explicitly set session NLS parameters using ALTER SESSION. You can also restore the Java locale.
-- Sergiusz

Similar Messages

  • Start Java Application

    What is the best way to start java application without a dos window ?
    And to install it

    You can create an "executable JAR file" (a JAR file which has a MANIFEST.MF file in it with some special settings) or you can start your application with "javaw" instead of "java" to prevent the DOS window from opening.
    Jesper

  • Java Application in ERROR State not stopable - how to remove?

    Hi,
    I have created a Java Application and published to the HCP Trial. After successful testing I stopped and uninstalled the App and the respective assets (e.g. database Schema) Nevertheless this process was interrupted by the shutdown of the landscape for maintenance 2 days ago. Now the App is visible again in the Cockpit with state "Application Error" - when I try to stop it nothing is happening. If I want to go to the details screen of that application it also does not come up and still shows the table of all the applications.
    As you can only have one started Java Application in the Trial - I am really keen on getting to know how to stop that application to be able to go on with other tests.
    Any Guides - or any possibility to stop/delete the application?
    Thanks in advance,
    Arne

    Hi, here are the screenshots of settings and error:
    (If I change the application name here without changing any other settings I am able to successfully create a new application on the server)

  • When deploying the webdynpro java application , showing error message

    Hi Masters,
    when deploying the webdynpro java application , showing error message. Please reply why this problem showing and what is the solution
    But Iogin to sdm tool ( remote gui .sh) with same password, which password  i am using for deploy the webdynpro java application.here in sdm tool i am able to login. and i restart the sdm , and again trying to deploy the same problem it showing.
    URL to deploy : file:/C:/DOCUME1/ppuser/LOCALS1/Temp/temp30925rupa.com~sales.ear
    Result
    => deployment aborted : file:/C:/DOCUME1/ppuser/LOCALS1/Temp/temp30925rupa.com~sales.ear
    Aborted: development component 'sales'/'rupa.com'/'LOKAL'/'0.2010.02.13.14.32.39':Caught exception during application deployment from SAP J2EE Engine's deploy API:com.sap.engine.deploy.manager.DeployManagerException: ERROR: Cannot connect to Host: [devsap] with user name: [J2EE_ADMIN]                     Check your login information.                     Exception is: com.sap.engine.services.jndi.persistent.exceptions.NamingException: Exception while trying to get InitialContext. [Root exception is com.sap.engine.services.security.exceptions.BaseLoginException: No login module succeeded.] (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).DMEXC)
    Deployment exception : The deployment of at least one item aborted
    Edited by: sujana mullapudi on Feb 13, 2010 2:52 PM

    Hi Sujana,
    For deploying Web Dynpro for Java application, J2EE_admin correct password must be stored in the scured area of config tool.
    Your error show that J2EE_admin information is not correct.
    So, Please ask your basis team to update new J2EE_ADMIN password or you can do it in scured area of config tool.
    Hope this will helps you.
    Thanks
    Arun Jaiswal

  • Error : Apache tomcat 5.5 not starting with windows server 2003 32 bits

    I can not start Tomcat 5.5 installed and deployed from the Business Objects BI Edge 3.1.
    BO installs normally, but Tomcat does not start.
    I tried to start tomcat from the control panel -> administrative tools -> services. But also not start.
    You receive the following message: Windows could start in Apache Tomcat 5.5.20 on the local computer.
    The log is:
    06/05/2011 10:22:37 http://409 javajni.c error Failed CreateJavaVM
    06/05/2011 10:22:37 http://930 prunsrv.c error Failed initializing java C: \ Program Files \ Business Objects \ Tomcat55 \ bin \ bootstrap.jar; C: \ Program Files \ Business Objects \ javasdk \ lib \ tools.jar
    06/05/2011 10:22:37 http://prunsrv.c 1179 error ServiceStart returned 2
    06/05/2011 10:28:42 http://409 javajni.c error Failed CreateJavaVM
    06/05/2011 10:28:42 http://930 prunsrv.c error Failed initializing java C: \ Program Files \ Business Objects \ Tomcat55 \ bin \ bootstrap.jar; C: \ Program Files \ Business Objects \ javasdk \ lib \ tools.jar
    06/05/2011 10:28:42 http://prunsrv.c 1179 error ServiceStart returned 2
    06/05/2011 10:30:40 http://409 javajni.c error Failed CreateJavaVM
    06/05/2011 10:30:40 http://930 prunsrv.c error Failed initializing java C: \ Program Files \ Business Objects \ Tomcat55 \ bin \ bootstrap.jar; C: \ Program Files \ Business Objects \ javasdk \ lib \ tools.jar
    06/05/2011 10:30:40 http://prunsrv.c 1179 error ServiceStart returned 2
    06/05/2011 13:43:16 http://409 javajni.c error Failed CreateJavaVM
    06/05/2011 13:43:16 http://930 prunsrv.c error Failed initializing java C: \ Program Files \ Business Objects \ Tomcat55 \ bin \ bootstrap.jar; C: \ Program Files \ Business Objects \ javasdk \ lib \ tools.jar
    06/05/2011 13:43:16 http://prunsrv.c 1179 error ServiceStart returned 2
    06/05/2011 13:43:20 http://409 javajni.c error Failed CreateJavaVM
    06/05/2011 13:43:20 http://930 prunsrv.c error Failed initializing java C: \ Program Files \ Business Objects \ Tomcat55 \ bin \ bootstrap.jar; C: \ Program Files \ Business Objects \ javasdk \ lib \ tools.jar
    06/05/2011 13:43:20 http://prunsrv.c 1179 error ServiceStart returned 2
    06/05/2011 13:53:58 http://409 javajni.c error Failed CreateJavaVM
    06/05/2011 13:53:58 http://930 prunsrv.c error Failed initializing java C: \ Program Files \ Business Objects \ Tomcat55 \ bin \ bootstrap.jar; C: \ Program Files \ Business Objects \ javasdk \ lib \ tools.jar
    06/05/2011 13:53:58 http://prunsrv.c 1179 error ServiceStart returned 2
    06/05/2011 14:00:16 http://409 javajni.c error Failed CreateJavaVM
    06/05/2011 14:00:16 http://930 prunsrv.c error Failed initializing java C: \ Program Files \ Business Objects \ Tomcat55 \ bin \ bootstrap.jar; C: \ Program Files \ Business Objects \ javasdk \ lib \ tools.jar
    06/05/2011 14:00:16 http://prunsrv.c 1179 error ServiceStart returned 2
    06/05/2011 14:00:45 http://409 javajni.c error Failed CreateJavaVM
    06/05/2011 14:00:45 http://930 prunsrv.c error Failed initializing java C: \ Program Files \ Business Objects \ Tomcat55 \ bin \ bootstrap.jar; C: \ Program Files \ Business Objects \ javasdk \ lib \ tools.jar
    06/05/2011 14:00:45 http://prunsrv.c 1179 error ServiceStart returned 2
    Help me, what should I do?

    hi
    By default the BO install tomcat with:
    Initial memory pool: 0 and
    Maximum memory pool: 1024
    I changed the settings in the Tomcat to:
    Tomcat -> Tomcat configuration -> java>
    Initial memory pool: 128 and
    Maximum memory pool: 256
    Then I accessed services.msc and start the Apache Tomcat.

  • Start java application from jsp?

    is there any way i can have a JSP, bean or servlet start a java application on the server? maybe a better question is: what can i do to make sure that some class is always running on my javaserver? im talking about the server app. for a chat program that im making that will be an applet in a JSP page along with a load of other JSP pages that do other things...
    sorry for my incoherence. i usually talk better than this. :)
    Laz

    just replying so the message comes to the top of the forum... can anyone help me here?
    Thanks
    Laz

  • Failed to start  java application server  8

    hi every body,
    hi every body,
    i am getting the famous error:
    " failed to start sun java application server 8 possible causes:
    -port conflict
    -incorrect server configuration(domain.xml need to be corrected manually)
    -corrupted deployed application preventing server to start (domain.xml needs to be modified) "
    the thing is that i know the cause of error it is the 3rd one since i had some exception while running a project and since on this error was appearing,and i didnt know how to solve this problem i.e how to edit the domain.xml file
    so i uninstaled and reinstaled the java cretor a number of times every time i face the problem, but the last time i did so the folder C:\Sun\Creator\SunAppServer8\domain that contains the file domain.xml was not even there and i dont know why did that happen or how to solve it
    please help,
    regards.

    i too have a similar problem - mine seems to be related to MySQL access but I cant find any help on the problem - surely there is a better way than to continually re-install - on the previous version i could work it out without a re-install but not with the update.
    i havent found anything in the server logs - they are huge docs - i cant see how it can be a port conflict as its ok 1 minute and not the next.
    i just need a pointer to where to look ?
    thanks in advance

  • Starting Java application from other Java application..

    Hi all,
    I was wondering if it is possible to start a Java program from an other Java program.
    In Java program 1, I have this code to execute the other application:
    try {
        Process p = Runtime.getRuntime().exec("cmd /c java -cp JavaApp2.jar com.test.TestFrame");
    } catch (IOException e) {
    }I tried this code, but unfortunately I couldn't opened the other (JavaApp2.jar) Java Application. Is there a way to open the other application anyways?
    I really hope someone can help me. Help would be greatly appreciated! Thanks in advance.
    Tongue78.

    What if there is no JAR file?Then you can make it out of the .class files. And to anticipate your next question, if there are no .class files there is no application at all, so you can't exec() it or call the main() method directly. Your point?
    And JAR isn't part of the Java language.It is a major part of the Java platform.
    This means you can only get access to a JAR file via the OS. Wrong again. CLASSPATH. URLClassLoader.
    In short you cannot just shout main() in a Java program and hope some other Java program will hear you and start.Absolute rubbish. If the required classes are on the CLASSPATH you just call com.company2.app2.main(args) and off you go. Or you can load the main class and invoke its main() reflectively.
    No source code required, or 'source code merge' either.

  • Start java application from java program

    My problem is the following:
    I start a java application A that allows you to select a couple of .java files.
    After having choosen them, the application adds some additional information to these .java files (that means some more lines of code � we call it �infecting� the java files).
    After the files have been infected, I want to start the application B implemented by these choosen and infected .java-files (without a new start of the Java Virtual Machine)
    For doing so, we use the following method whichs works quite fine:
    public static void ExecuteWithInvoke(String path, String classname)
         try
              new URLClassLoader(new URL[] {new File(path).toURL()})
                   .loadClass(classname).getMethod("main",
                   new Class[] { String[].class }).invoke(null,
                   new Object[] { new String[] {} });
         catch (Exception e)
         {e.printStackTrace();}
    The only problem that occurs:
    When the application B is launched, the �old� version of the choosen .java files is used and not the current, already infected version of these files. (I guess because the �old� .class files are used.)
    I solved this problem by finishing the program A after the infecting and restart my application B manually. In this case the infected .java files are used (I guess the new Start of the Java Virtual Machine solves my problem by reloading the �new� .class files)
    How can I reach to start my application with the mentioned method but with the infected .java files and without having a new start of the JVM ??
    Can anybody help me?
    Thanks in advance
    Sorry for my English, it�s a long time since I quit school

    Hello,
    my problem of reloading classes is still unsolved although you tried to help me!
    Therefore I posted a little program to illustrate our difficulty.
    It would be nice if somebody could have a look at this program.
    We have a file Testdatei.java whose only method is the main method.
    I get the class object of this file and with the help of Reflection the declared methods.
    Evereything works fine so far.
    Then I change the content of this file by adding an additional method a() (see change() for this).
    Now I delete the old class file and I compile Testdatei.java again (see compileJava()) and once more I get the class object for this changed file. Afterwards I get the declared methods for this class via reflection.
    But instead of showing now the methods main() and a() Reflection still only shows the method main().
    I guess the changed class has not been reloaded!!
    package testpackage;
    import java.io.BufferedWriter;
    import java.io.File;
    import java.io.FileWriter;
    import java.io.IOException;
    import java.lang.reflect.Method;
    import java.net.URL;
    import java.net.URLClassLoader;
    import com.sun.tools.javac.Main;
    public class LoadClass
         private File f;
         private Class c = null;
         private Object o;
         public LoadClass()
              f = new File("C:/AAJ/src/testpackage/Testdatei.java");
              try
                   o = neuesExemplar(f.getPath(), "testpackage.Testdatei");
                   c = o.getClass();
                   System.out.println("Class " + c.getName() + " found.");
              catch (Exception e)
              {e.printStackTrace();}
              Method [] method = c.getDeclaredMethods();
              for (int i=0; i<method.length; i++)
                   System.out.println(method.getName());
              change();          
              compileJava(f.getPath());
              File fileToDelete = new File("bin/testpackage/Testdatei.class");
              System.out.println(fileToDelete.delete());
              Class cla = null;
              try
                   Object o = neuesExemplar(f.getPath(), "testpackage.Testdatei");
                   cla = o.getClass();
                   System.out.println("Class " + cla.getName() + " found.");
              catch (Exception e)
              {e.printStackTrace();}
              Method [] methods = cla.getDeclaredMethods();
              for (int i=0; i<methods.length; i++)
                   System.out.println(methods[i].getName());
         private int compileJava(String javaFile)
         String[] args = {"-d", "C:/AAJ/bin/", "-classpath", System.getProperty("java.class.path"), javaFile};
         return Main.compile(args);
         public static void main(String[] args)
              new LoadClass();
         private Object neuesExemplar(String pfad, String klassename) throws Exception
         URL url = new File(pfad).toURL();
         URLClassLoader cl = new URLClassLoader( new URL[]{ url });
         Class c = cl.loadClass(klassename);
         return c.newInstance();
         private void change()
              FileWriter fw;
              BufferedWriter bw;
              try
                   fw = new FileWriter(f);
                   bw = new BufferedWriter(fw);               
                   bw.write("package testpackage;");
                   bw.newLine();
                   bw.newLine();
                   bw.write("public class Testdatei");
                   bw.newLine();
                   bw.write("{");
                   bw.newLine();
                   bw.write("public static void main (String [] args)");
                   bw.newLine();
                   bw.write("{");
                   bw.write("System.out.println(4);");
                   bw.newLine();
                   bw.write("}");
                   bw.newLine();
                   bw.newLine();
                   bw.write("private void a ()");
                   bw.newLine();
                   bw.write("{");
                   bw.newLine();
                   bw.write("System.out.println(55);");
                   bw.newLine();
                   bw.write("}");
                   bw.newLine();
                   bw.write("}");
                   bw.close();
                   fw.close();               
              catch (IOException e)
              {e.printStackTrace();}                                             
    I�m using eclipse 3.1.0. Is it possible that it�s a bug in eclipse that eclipse holds the old class file in memory from the beginning and always refers to this one and not to the new compiled one?
    Thanks a lot
    Simon

  • Batch file to start java application

    Hi All,
    I have created a batch file to start my application.
    startApp.bat
    javaw myclass
    But now the problem is the command prompt is not closing. I want the command prompt to close automatically. Any help??
    Thanks in Advance,
    Manjinder Singh

    I cannot use double click on JAR file as i have some other commands also inside batch file. Like classpath setting etc.
    I tried to use cmd /c myapp inside batch file, but still the command prompts stays there till i exit my application.
    Any further HELP??

  • Cann't start Java Application

    Hi, my main class called TemplateUtil. I have created TemplateUtil.jar and try to start my application:
    javaw.exe -cp W:\eclipse\TemplateUtil\bin\de\qv\ec\servlets\util\TemplateUtil.jar;D:\jblibs\classes12.zip -Dfile.encoding=ISO8859_1 de.qv.ec.servlets.util.TemplateUtil.main
    Error: could not find main class.
    Why?

    That's what I was wondering.
    de.qv.ec.servlets.util.TemplateUtil.main
    Isn't this actually saying there is a subclass called "main" inside TemplateUtil.
    Shouldn't it just be:
    de.qv.ec.servlets.util.TemplateUtil ??
    I don't want to confuse the issue, but if someone could explain where de.qv.ec.servlets.util.TemplateUtil.main is valid let me know.

  • JAVA Application & Oracle Reports

    How can I call a Report writen with Oracle Reports
    from a JAVA application?
    In C++ I create a process and call for excample r30run32.exe
    with a parameter.
    Thanks
    Martin
    null

    Martin Leiacker (guest) wrote:
    : How can I call a Report writen with Oracle Reports
    : from a JAVA application?
    : In C++ I create a process and call for excample r30run32.exe
    : with a parameter.
    : Thanks
    : Martin
    Hi Martin,
    you can use the method exec() of the class java.lang.Runtime.
    The code looks about like this:
    Runtime.getRuntime().exec("r30run32.exe");
    Yours,
    Martin
    null

  • When start tomcat on centOS 5.6, got application.log error: Could not open server properties

    Hi
    I follow  FAXS_2_0_Quickstart and start tomcat. The check
    http://centos:8080/flashaccessserver/flashaccess/license/v1
    is ok. But the log file say
    2011-04-21 15:57:59,122 FATAL [com.adobe.flashaccess.refimpl.packager.RefImplPackagerServer][] - Could not open server properties
    java.io.FileNotFoundException
            at com.adobe.flashaccess.refimpl.packager.RefImplPackagerServer.packagerSetup(RefImplPackage rServer.java:98)
            at com.adobe.flashaccess.refimpl.packager.RefImplPackagerServer.run(RefImplPackagerServer.ja va:165)
            at java.lang.Thread.run(Thread.java:636)
    2011-04-21 15:57:59,125 INFO [com.adobe.flashaccess.refimpl.packager.RefImplPackagerServer][] - Exiting Packager thread.
    Which file is it refer to ?
    Where is the propert file to set this?

    Hello,
    It looks like at one time or another, you tried setting up the Flash Access Reference Implementation License Server.  Part of that package is a packaging server (which interfaces with a Graphical UI to package content).  The error you're seeing below suggests something from the Reference Implementation is left behind.
    I suggest doing the following:
    1. Shut down your Flash Access license server
    2. Remove the following from your <tomcat installation directory>/webapps
         2a. (file) flashaccess-packager.war
         2b. (directory) flashaccess-packager
    3. Remove the directory <tomcat installation directory>/work/Catalina
    4. Remove the directory <tomcat installation directory>/conf/Catalina
    5. Start your server
    Also - something to note is that your logfile seems to indicate only an issue was found with the packager deployment.  If there are no issues around the flashaccessserver, then your license server should still work, as those 2 different services (packager server & license server) are independent of each other.
    cheers,
    /Eric.

  • Start Java application at system start up linux/unix

    Hi,
    I am working on a application, which needs to run as a background process in linux/unix without the intervention of the user.
    Please give me the details procedure how to make it as background process.
    thanks

    you can make any process a background process by adding an amperstand
    for example:
    java -cp $MyClassPath myAppClass &
    If you want to run it automatically at startup
    you'll have to write a little script which is executed at startup
    and contains a line as above.
    The scripts exectuted at startup are usually located at
    /etc/init.d
    You can use one of those scripts as starting point for your own script.

  • Redo Collector goes down after starting correctly

    Hi. I'm experiencing some problems with the REDO collector.
    Versions, etc....
    AV server: 10.2.3.1 - Red Hat Enterprise Linux AS release 4 (Nahant Update 5) 64 bits
    Audited database: Oracle 10.2.0.4 - Red Hat Enterprise Linux AS release 4 (Nahant Update 5) 64 bits.
    OSAUD and REDO collectors verified with avorcldb and, apparently, deployed without problems.
    When i start the REDO collector from the av admin console, this message is shown "El recopilador PXMEDO01.SACYL.ES:REDO_pxmedo01 se ha iniciado correctamente" (in english -The collector PXMEDO01.SACYL.ES:REDO_pxmedo01 has been started successfully). Just some seconds later, the collector appears to be stopped...
    From the command line:
    avctl start_collector -collname REDO_pxmedo01 -srcname PXMEDO01.SACYL.ES
    AVCTL iniciado
    Iniciando recopilador...
    El recopilador se ha iniciado correctamente. (in english - the collector started successfully)
    just few seconds seconds after the previous command ends, i send this one
    avctl show_collector_status -collname REDO_pxmedo01 -srcname PXMEDO01.SACYL.ES
    AVCTL iniciado
    Obteniendo métricas de recopilador...
    No se está ejecutando el recopilador ((in english - the collector is not running)
    Registros por Segundo = 0,00
    Bytes por segundo = 0,00
    Any ideas of what's going on?
    Thanks in advance.

    Hi again. Now, i saw the error on alert.log. All this is written every time i try to start the REDO collector:
    Thu Dec 10 10:07:13 2009
    Streams CAPTURE C001 started with pid=65, OS id=20295
    Thu Dec 10 10:07:13 2009
    LOGMINER: Parameters summary for session# = 1
    LOGMINER: Number of processes = 3, Transaction Chunk Size = 1
    LOGMINER: Memory Size = 10M, Checkpoint interval = 100M
    LOGMINER: session# = 1, reader process P000 started with pid=66 OS id=20268
    LOGMINER: session# = 1, preparer process P002 started with pid=61 OS id=20272
    LOGMINER: session# = 1, builder process P001 started with pid=67 OS id=20270
    Thu Dec 10 10:07:15 2009
    Streams CAPTURE C001 with pid=65, OS id=20295 stopped
    Thu Dec 10 10:07:15 2009
    Errors in file /opt/oracle/10gr2/exra4/pxmedo01/bdump/pxmedo01_c001_20295.trc:
    ORA-00604: se ha producido un error a nivel 1 de SQL recursivo (SQL recursive error at level 1)
    ORA-14097: el tipo o el tamaño de columna no coinciden en ALTER TABLE EXCHANGE PARTITION (the type or size of column do not match in ALTER TABLE EXCHANGE PARTITION )
    ORA-06512: en "SYS.LOGMNR_KRVRDLUID3", línea 1799
    ORA-06512: en línea 1

Maybe you are looking for

  • Photoshop CC 2014 crashes when I try to use any 3D tools or features?

    I am a college student and going to be in a real bind as soon as this next semester starts without this working properly.  We just started touching 3D features in Photoshop last semester but now i have advanced Photoshop this next semester and this w

  • "Adobe Photoshop CS4 has stopped working" error in Win7?

    Hi All, I'm getting the following error message when ever I try to use the Phtoshop and the program gets close. "Adobe Photoshop CS4 has stopped working. A problem caused the program to stop working correctly. Windows will close the program and notif

  • How to track the fast movement camera (close shot)

    the shot is close to green screen and fast movement and camera cut off from the markers. any ideas how to fix this ? i knew i mignt need to shoot again but its impossible cuz of the actors are not here anymore. so i must fix it. any recommend plugin

  • Bluetooth deamon crashed OS X 10.5.6

    This crash happened soon after startup. From crash reporter log: Process: blued [46] Path: /usr/sbin/blued Identifier: blued Version: ??? (???) Code Type: X86 (Native) Parent Process: launchd [1] Date/Time: 2009-02-07 10:10:03.949 -0500 OS Version: M

  • Size of backup drive question

    I'm sure the answer to this question is here somewhere, but I did some searching and couldn't see it. Can someone verify that the size of the backup drive has to be equal or greater than that of the drive being backed up? In other words, I can't use