JMF + tomcat

Hey pple,
I encountered this annoying problem while trying to run a jmf media player applet on tomcat(6.0). My browser just hangs and it returns this error:
{color:#0000ff}
Could not find error.connectionerror
java.io.IOException: Unable to open a URL connection
Could not find error.connectionerror
java.io.IOException: Unable to open a URL connection
javax.media.NoPlayerException: Error instantiating class: com.sun.media.protocol.http.DataSource : java.io.IOException: Unable to open a URL connection
FATAL ERROR: Could not create player for http://localhost:8080/SEGP/vidz/Frankie J - Obession.mpg
java.lang.Error: Could not create player for http://localhost:8080/SEGP/vidz/Frankie J - Obession.mpg
at SimplePlayerApplet.Fatal(SimplePlayerApplet.java:220)
at SimplePlayerApplet.init(SimplePlayerApplet.java:86)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source){color}
The applet runs perfectly on my machine though. I think my classpath is properly set . . . would realy appreciate some help.

I answered my own question. Don't deploy the JMF libraries in the war webapp context archive stick them in shared/lib.

Similar Messages

  • Java error while building tomcat

    Platform :I have Debian on SPARC Blade 150
    trying to build tomcat-5.5.10 usning ant 1.6 and jdk 1.4.1_01-b01
    tomcat needed javamail and JAVABEANS(tm) ACTIVATION FRAMEWORK 1.0.2 , i have installed them and set CLASSPATH for them
    this looks like some runtime error
    "An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : 11 occurred at PC=0x7DB3E608
    Function=[Unknown.]
    Library=(N/A)
    NOTE: We are unable to locate the function name symbol for the error
    just occurred. Please refer to release documentation for possible
    reason and solutions.
    Current Java thread:
    Dynamic libraries:
    00010000-00018000 r-xp 00000000 03:04 1766526 /usr/local/j2sdk1.4.1/bin/java
    00026000-00028000 rwxp 00006000 03:04 1766526 /usr/local/j2sdk1.4.1/bin/java
    70000000-7001a000 r-xp 00000000 03:02 225355 /lib/ld-2.3.2.so
    70028000-7002a000 rwxp 00018000 03:02 225355 /lib/ld-2.3.2.so
    7002c000-70038000 r-xp 00000000 03:02 225374 /lib/libpthread-0.10.so
    70038000-7003c000 ---p 0000c000 03:02 225374 /lib/libpthread-0.10.so
    7003c000-7004a000 rwxp 00000000 03:02 225374 /lib/libpthread-0.10.so
    7008c000-70090000 r-xp 00000000 03:02 225363 /lib/libdl-2.3.2.so
    70090000-7009c000 ---p 00004000 03:02 225363 /lib/libdl-2.3.2.so
    7009c000-700a0000 rwxp 00000000 03:02 225363 /lib/libdl-2.3.2.so
    700a0000-701d4000 r-xp 00000000 03:02 225361 /lib/libc-2.3.2.so
    701d4000-701e0000 ---p 00134000 03:02 225361 /lib/libc-2.3.2.so
    701e0000-701ec000 rwxp 00130000 03:02 225361 /lib/libc-2.3.2.so
    701f0000-705fa000 r-xp 00000000 03:04 1750657 /usr/local/j2sdk1.4.1/jre/lib/sparc/client/libjvm.so
    705fa000-70600000 ---p 0040a000 03:04 1750657 /usr/local/j2sdk1.4.1/jre/lib/sparc/client/libjvm.so
    70600000-70628000 rwxp 00400000 03:04 1750657 /usr/local/j2sdk1.4.1/jre/lib/sparc/client/libjvm.so
    70644000-70656000 r-xp 00000000 03:02 225366 /lib/libnsl-2.3.2.so
    70656000-70664000 ---p 00012000 03:02 225366 /lib/libnsl-2.3.2.so
    70664000-70666000 rwxp 00010000 03:02 225366 /lib/libnsl-2.3.2.so
    70668000-70706000 r-xp 00000000 03:04 1341104 /usr/lib/libstdc++.so.5.0.7
    70706000-70708000 ---p 0009e000 03:04 1341104 /usr/lib/libstdc++.so.5.0.7
    70708000-7072a000 rwxp 00090000 03:04 1341104 /usr/lib/libstdc++.so.5.0.7
    70730000-707ae000 r-xp 00000000 03:02 225364 /lib/libm-2.3.2.so
    707ae000-707b0000 ---p 0007e000 03:02 225364 /lib/libm-2.3.2.so
    707b0000-707c2000 rwxp 00070000 03:02 225364 /lib/libm-2.3.2.so
    707c4000-707d0000 r-xp 00000000 03:02 225403 /lib/libgcc_s.so.1
    707d0000-707d4000 ---p 0000c000 03:02 225403 /lib/libgcc_s.so.1
    707d4000-707e0000 rwxp 00000000 03:02 225403 /lib/libgcc_s.so.1
    707e0000-707ea000 r-xp 00000000 03:04 1750651 /usr/local/j2sdk1.4.1/jre/lib/sparc/native_threads/libhpi.so
    707ea000-707f0000 ---p 0000a000 03:04 1750651 /usr/local/j2sdk1.4.1/jre/lib/sparc/native_threads/libhpi.so
    707f0000-707fc000 rwxp 00000000 03:04 1750651 /usr/local/j2sdk1.4.1/jre/lib/sparc/native_threads/libhpi.so
    707fc000-7080e000 r-xp 00000000 03:04 1750661 /usr/local/j2sdk1.4.1/jre/lib/sparc/libverify.so
    7080e000-7081c000 ---p 00012000 03:04 1750661 /usr/local/j2sdk1.4.1/jre/lib/sparc/libverify.so
    7081c000-7081e000 rwxp 00010000 03:04 1750661 /usr/local/j2sdk1.4.1/jre/lib/sparc/libverify.so
    70820000-70842000 r-xp 00000000 03:04 1750662 /usr/local/j2sdk1.4.1/jre/lib/sparc/libjava.so
    70842000-70850000 ---p 00022000 03:04 1750662 /usr/local/j2sdk1.4.1/jre/lib/sparc/libjava.so
    70850000-70854000 rwxp 00020000 03:04 1750662 /usr/local/j2sdk1.4.1/jre/lib/sparc/libjava.so
    70854000-70866000 r-xp 00000000 03:04 1750664 /usr/local/j2sdk1.4.1/jre/lib/sparc/libzip.so
    70866000-70874000 ---p 00012000 03:04 1750664 /usr/local/j2sdk1.4.1/jre/lib/sparc/libzip.so
    70874000-70878000 rwxp 00010000 03:04 1750664 /usr/local/j2sdk1.4.1/jre/lib/sparc/libzip.so
    70878000-71f46000 r--s 00000000 03:04 1750706 /usr/local/j2sdk1.4.1/jre/lib/rt.jar
    71f8c000-71fa4000 r--s 00000000 03:04 1750686 /usr/local/j2sdk1.4.1/jre/lib/sunrsasign.jar
    71fa4000-72016000 r--s 00000000 03:04 1750688 /usr/local/j2sdk1.4.1/jre/lib/jsse.jar
    72018000-7202c000 r--s 00000000 03:04 1750687 /usr/local/j2sdk1.4.1/jre/lib/jce.jar
    7202c000-722e8000 r--s 00000000 03:04 1750704 /usr/local/j2sdk1.4.1/jre/lib/charsets.jar
    7c718000-7c760000 r--p 00000000 03:04 1341415 /usr/lib/locale/locale-archive
    7c760000-7c764000 r--s 00000000 03:04 1766019 /usr/local/j2sdk1.4.1/jre/lib/ext/dnsns.jar
    7c764000-7c766000 r--s 00000000 03:04 84955 /usr/local/ant/lib/ant-stylebook.jar
    7c768000-7c76a000 r--s 00000000 03:04 84956 /usr/local/ant/lib/ant-swing.jar
    7c76c000-7c774000 r-xp 00000000 03:02 225367 /lib/libnss_compat-2.3.2.so
    7c774000-7c77c000 ---p 00008000 03:02 225367 /lib/libnss_compat-2.3.2.so
    7c77c000-7c784000 rwxp 00000000 03:02 225367 /lib/libnss_compat-2.3.2.so
    7c784000-7c78c000 r-xp 00000000 03:02 225371 /lib/libnss_nis-2.3.2.so
    7c78c000-7c794000 ---p 00008000 03:02 225371 /lib/libnss_nis-2.3.2.so
    7c794000-7c79e000 rwxp 00000000 03:02 225371 /lib/libnss_nis-2.3.2.so
    7c7a0000-7c7aa000 r-xp 00000000 03:02 225369 /lib/libnss_files-2.3.2.so
    7c7aa000-7c7b0000 ---p 0000a000 03:02 225369 /lib/libnss_files-2.3.2.so
    7c7b0000-7c7ba000 rwxp 00000000 03:02 225369 /lib/libnss_files-2.3.2.so
    7cbc4000-7cbe2000 r--s 00000000 03:04 1766018 /usr/local/j2sdk1.4.1/jre/lib/ext/sunjce_provider.jar
    7cbe4000-7cc84000 r--s 00000000 03:04 1766020 /usr/local/j2sdk1.4.1/jre/lib/ext/localedata.jar
    7cc84000-7cc92000 r--s 00000000 03:04 1766021 /usr/local/j2sdk1.4.1/jre/lib/ext/ldapsec.jar
    7cc94000-7cc98000 r--s 00000000 03:04 84951 /usr/local/ant/lib/ant-launcher.jar
    7cc98000-7ccf0000 r--s 00000000 03:04 1784271 /usr/local/j2sdk1.4.1/lib/mail.jar
    7ccf0000-7ccfe000 r--s 00000000 03:04 1767921 /usr/local/j2sdk1.4.1/lib/activation.jar
    7cd00000-7cd02000 r--s 00000000 03:04 84935 /usr/local/ant/lib/ant-antlr.jar
    7cd04000-7cd08000 r--s 00000000 03:04 84936 /usr/local/ant/lib/ant-apache-bcel.jar
    7cd08000-7cd0c000 r--s 00000000 03:04 84937 /usr/local/ant/lib/ant-apache-bsf.jar
    7cd0c000-7cd0e000 r--s 00000000 03:04 84938 /usr/local/ant/lib/ant-apache-log4j.jar
    7cd10000-7cd1c000 r--s 00000000 03:04 84939 /usr/local/ant/lib/ant-apache-oro.jar
    7cd1c000-7cd1e000 r--s 00000000 03:04 84940 /usr/local/ant/lib/ant-apache-regexp.jar
    7cd20000-7cd22000 r--s 00000000 03:04 84941 /usr/local/ant/lib/ant-apache-resolver.jar
    7cd24000-7cd26000 r--s 00000000 03:04 84942 /usr/local/ant/lib/ant-commons-logging.jar
    7cd28000-7cd32000 r--s 00000000 03:04 84943 /usr/local/ant/lib/ant-commons-net.jar
    7cd34000-7cd38000 r--s 00000000 03:04 84944 /usr/local/ant/lib/ant-icontract.jar
    7cd38000-7cd3e000 r--s 00000000 03:04 84945 /usr/local/ant/lib/ant-jai.jar
    7cd40000-7cd42000 r--s 00000000 03:04 84946 /usr/local/ant/lib/ant-javamail.jar
    7cd44000-7cd46000 r--s 00000000 03:04 84947 /usr/local/ant/lib/ant-jdepend.jar
    7cd48000-7cd4a000 r--s 00000000 03:04 84948 /usr/local/ant/lib/ant-jmf.jar
    7cd4c000-7cd52000 r--s 00000000 03:04 84949 /usr/local/ant/lib/ant-jsch.jar
    7cd54000-7cd68000 r--s 00000000 03:04 84950 /usr/local/ant/lib/ant-junit.jar
    7cd68000-7cd6c000 r--s 00000000 03:04 84952 /usr/local/ant/lib/ant-netrexx.jar
    7cd6c000-7cdd4000 r--s 00000000 03:04 84953 /usr/local/ant/lib/ant-nodeps.jar
    7cdd4000-7cdde000 r--s 00000000 03:04 84954 /usr/local/ant/lib/ant-starteam.jar
    7cde0000-7cdf2000 r--s 00000000 03:04 84957 /usr/local/ant/lib/ant-trax.jar
    7cdf4000-7ce02000 r--s 00000000 03:04 84958 /usr/local/ant/lib/ant-vaj.jar
    7ce04000-7ce08000 r--s 00000000 03:04 84959 /usr/local/ant/lib/ant-weblogic.jar
    7ce08000-7ce0a000 r--s 00000000 03:04 84960 /usr/local/ant/lib/ant-xalan1.jar
    7ce0c000-7ce0e000 r--s 00000000 03:04 84961 /usr/local/ant/lib/ant-xslp.jar
    7ce10000-7cf0e000 r--s 00000000 03:04 84962 /usr/local/ant/lib/ant.jar
    7cf10000-7d008000 r--s 00000000 03:04 84963 /usr/local/ant/lib/xercesImpl.jar
    7d008000-7d028000 r--s 00000000 03:04 84964 /usr/local/ant/lib/xml-apis.jar
    7d028000-7d4dc000 r--s 00000000 03:04 1766521 /usr/local/j2sdk1.4.1/lib/tools.jar
    7d4dc000-7d4e6000 r--s 00000000 03:04 168561 /usr/share/java/commons-logging-1.0.4/commons-logging.jar
    7d4e8000-7d4ee000 r--s 00000000 03:05 453459 /opt/download/jakarta-tomcat-5.5.10-src/jakarta-tomcat-5/build/server/lib/catalina-ant-jmx.jar
    7d4f0000-7d4f8000 r--s 00000000 03:05 453458 /opt/download/jakarta-tomcat-5.5.10-src/jakarta-tomcat-5/build/server/lib/catalina-ant.jar
    7d4f8000-7d52a000 r--s 00000000 03:05 453469 /opt/download/jakarta-tomcat-5.5.10-src/jakarta-tomcat-5/build/server/lib/catalina-cluster.jar
    7d52c000-7d54a000 r--s 00000000 03:05 453457 /opt/download/jakarta-tomcat-5.5.10-src/jakarta-tomcat-5/build/server/lib/catalina-optional.jar
    7d54c000-7d55c000 r--s 00000000 03:05 453470 /opt/download/jakarta-tomcat-5.5.10-src/jakarta-tomcat-5/build/server/lib/catalina-storeconfig.jar
    7d55c000-7d5fa000 r--s 00000000 03:05 453456 /opt/download/jakarta-tomcat-5.5.10-src/jakarta-tomcat-5/build/server/lib/catalina.jar
    7d5fc000-7d618000 r--s 00000000 03:05 452070 /opt/download/jakarta-tomcat-5.5.10-src/jakarta-tomcat-5/build/server/lib/commons-modeler.jar
    7d618000-7d61e000 r--s 00000000 03:05 453463 /opt/download/jakarta-tomcat-5.5.10-src/jakarta-tomcat-5/build/server/lib/servlets-default.jar
    7d620000-7d622000 r--s 00000000 03:05 453464 /opt/download/jakarta-tomcat-5.5.10-src/jakarta-tomcat-5/build/server/lib/servlets-invoker.jar
    7d624000-7d62a000 r--s 00000000 03:05 453466 /opt/download/jakarta-tomcat-5.5.10-src/jakarta-tomcat-5/build/server/lib/servlets-webdav.jar
    7d62c000-7d656000 r--s 00000000 03:05 453486 /opt/download/jakarta-tomcat-5.5.10-src/jakarta-tomcat-5/build/server/lib/tomcat-ajp.jar
    7d658000-7d65e000 r--s 00000000 03:05 452111 /opt/download/jakarta-tomcat-5.5.10-src/jakarta-tomcat-5/build/server/lib/tomcat-apr.jar
    7d660000-7d666000 r--s 00000000 03:05 452699 /opt/download/jakarta-tomcat-5.5.10-src/jakarta-tomcat-5/build/server/lib/tomcat-coyote.jar
    7d668000-7d67e000 r--s 00000000 03:05 453488 /opt/download/jakarta-tomcat-5.5.10-src/jakarta-tomcat-5/build/server/lib/tomcat-http.jar
    7d680000-7d6c0000 r--s 00000000 03:05 452669 /opt/download/jakarta-tomcat-5.5.10-src/jakarta-tomcat-5/build/server/lib/tomcat-util.jar
    7d6c0000-7d6dc000 r--s 00000000 03:05 452067 /opt/download/jakarta-tomcat-5.5.10-src/jakarta-tomcat-5/build/common/lib/commons-el.jar
    7d6dc000-7d804000 r--s 00000000 03:05 452073 /opt/download/jakarta-tomcat-5.5.10-src/jakarta-tomcat-5/build/common/lib/jasper-compiler-jdt.jar
    7d804000-7d862000 r--s 00000000 03:05 453492 /opt/download/jakarta-tomcat-5.5.10-src/jakarta-tomcat-5/build/common/lib/jasper-compiler.jar
    7d864000-7d878000 r--s 00000000 03:05 453493 /opt/download/jakarta-tomcat-5.5.10-src/jakarta-tomcat-5/build/common/lib/jasper-runtime.jar
    7d878000-7d886000 r--s 00000000 03:05 452065 /opt/download/jakarta-tomcat-5.5.10-src/jakarta-tomcat-5/build/common/lib/jsp-api.jar
    7d888000-7d8ae000 r--s 00000000 03:05 452734 /opt/download/jakarta-tomcat-5.5.10-src/jakarta-tomcat-5/build/common/lib/naming-factory-dbcp.jar
    7d8b0000-7d8ba000 r--s 00000000 03:05 453460 /opt/download/jakarta-tomcat-5.5.10-src/jakarta-tomcat-5/build/common/lib/naming-factory.jar
    7d8bc000-7d8c8000 r--s 00000000 03:05 453461 /opt/download/jakarta-tomcat-5.5.10-src/jakarta-tomcat-5/build/common/lib/naming-resources.jar
    7d8c8000-7d8e0000 r--s 00000000 03:05 452066 /opt/download/jakarta-tomcat-5.5.10-src/jakarta-tomcat-5/build/common/lib/servlet-api.jar
    7d8e0000-7d928000 r--s 00000000 03:05 468143 /opt/download/jakarta-tomcat-5.5.10-src/jakarta-tomcat-5/build/webapps/jsp-examples/WEB-INF/lib/standard.jar
    7d928000-7d92e000 r--s 00000000 03:05 468185 /opt/download/jakarta-tomcat-5.5.10-src/jakarta-tomcat-5/build/webapps/jsp-examples/WEB-INF/lib/jstl.jar
    7d930000-7d9b2000 r--s 00000000 03:05 468607 /opt/download/jakarta-tomcat-5.5.10-src/jakarta-tomcat-5/build/server/webapps/admin/WEB-INF/lib/struts.jar
    7d9b4000-7d9e4000 r--s 00000000 03:05 468608 /opt/download/jakarta-tomcat-5.5.10-src/jakarta-tomcat-5/build/server/webapps/admin/WEB-INF/lib/commons-beanutils.jar
    7d9e4000-7da6e000 r--s 00000000 03:05 468609 /opt/download/jakarta-tomcat-5.5.10-src/jakarta-tomcat-5/build/server/webapps/admin/WEB-INF/lib/commons-collections.jar
    7da70000-7da9a000 r--s 00000000 03:05 468610 /opt/download/jakarta-tomcat-5.5.10-src/jakarta-tomcat-5/build/server/webapps/admin/WEB-INF/lib/commons-digester.jar
    Local Time = Thu Aug 4 10:37:34 2005
    Elapsed Time = 586
    # The exception above was detected in native code outside the VM
    # Java VM: Java HotSpot(TM) Client VM (Blackdown-1.4.1-01 mixed mode)
    # An error report file has been saved as hs_err_pid29273.log.
    # Please refer to the file for further information.
    Aborted"

    Hi,
    This forum is exclusively for the Sun Java Studio Creator related discussions.
    Please post your question at: http://forum.java.sun.com/forum.jspa?forumID=38
    Thanks,
    Creator Team.

  • JMF in Applet

    I have an applet that plays a video from a HTTP URL and it works fine as an application and runs fine in appletviewer. But, when the applet is run in a browser I get this error: Error instantiating class: com.sun.media.protocol.http.DataSource: java.io.IOException: Unable to open a URL connection. The rest of the applet functions fine in the browser. Works everywhere but where I want it to. I've read a few things regarding this error but nothing conclusive as far as resolving this problem. I don't think the applet needs to be signed, please correct me if I'm wrong. I'm thinking this is a simple solution and I'm sure I've overlooked something.
    Thank you in advance.

    I did a standard install for the windows version of JMF and it seemed to update the classpath and all just fine. I am using Netbeans and tomcat for testing before deploying to Apache. I copied the jmf.jar files into the tomcat lib folder to ensure it would be resolved by the web engine. But, like I said in my original post all works fine in the appletviewer and fails when the applet is included in a web page, although the rest of the applet works fine in the webpage. So. there's something amiss with the url request by the player.
    You may want to reinstall the JMF again and check this article out: http://www.javaworld.com/javaworld/jw-04-2001/jw-0406-jmf1.html
    Hope some of this helps.

  • I have new in JMF-Any one help me

    Hai
    I am beginner of JMF.i have facing one problem for past 3 days.
    I wrote one applet program for playing mp3 song.Atfer i wrote one jsp file it has several radio button when i clicked any one of them it would called applet(i have using plugin tag for this embbed).i got one error i.e. Class not found exception.but i tried in appletviewer it's work perfectly.
    My path folders are:
    Applet program: c:/Tomcat/webapps/Vj/web-inf/classes/AB.java
    Jsp File:c:/Tomcat/webapps/Vj/playapp.jsp
    My code is applet code
    import java.applet.Applet;
    import java.awt.*;
    import java.io.IOException;
    import java.io.PrintStream;
    import java.net.MalformedURLException;
    import java.net.URL;
    import javax.media.*;
    <APPLET height=300 width=300 code="AB.class">
              <PARAM NAME="file" VALUE="artist - Track 01.mp3">
    </APPLET>
    public class AB extends Applet
        implements ControllerListener
        public SimplePlayerApplet()
            player = null;
    public void init()
            MediaLocator medialocator = null;
            Object obj = null;
            if ((s = getParameter("FILE")) == null)
                 System.out.println("S value is:NULL");
                Fatal("Invalid media file parameter");
            try
                URL url = new URL(getDocumentBase(), s);
                System.out.println("URL Value is:" + url);
                s = url.toExternalForm();
            catch(MalformedURLException malformedurlexception) { }
            try
                if((medialocator = new MediaLocator("file:" + s)) == null)
                    Fatal("Can't build URL for " + s);
                    System.out.println("catch in malformed");
                try
                    player = Manager.createPlayer(medialocator);
                    System.out.println("it is from create player");
                catch(NoPlayerException noplayerexception)
                    System.out.println(noplayerexception);
                    Fatal("Could not create player for " + medialocator);
            catch(MalformedURLException malformedurlexception1)
                Fatal("Invalid media file URL!");
            catch(IOException ioexception)
                Fatal("IO exception creating player for " + medialocator);
        public void start()
            if(player != null)
                player.start();
                System.out.println("This from start");
        public void stop()
            if(player != null)
                   System.out.println("This from stop");
                player.stop();
                player.deallocate();
        public void destroy()
            player.close();
            System.out.println("This from Destory");
        void Fatal(String s)
            System.err.println("FATAL ERROR: " + s);
            throw new Error(s);
        Player player;
    }now i run in appletviewer it's work perfectly.After that
    I remove applet tags in this program and again i was compiled.
    then now i embeded in jsp .
    Jsp is below:
    <%@ page language="java" import="java.io.*;" %>
    <HTML><HEAD><TITLE>Doctor Page</TITLE>
    <META http-equiv=Content-Language content=en-us>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <META content="MSHTML 6.00.2800.1498" name=GENERATOR>
    <script language="JavaScript">
    function Check(){
    for (var i=0; i < document.playChk.R1.length; i++)
       if (document.playChk.R1.checked)
    var n = document.playChk.R1[i].value;
         document.playChk.action="Doctor.jsp";
         document.playChk.submit();
    </script>
    </HEAD>
    <BODY>
    <%
         if (request.getParameter("R1") != null){
              out.println("U Have Checked : " + request.getParameter("R1"));
              System.out.println("U Have Checked : " + request.getParameter("R1"));
              %>
         <jsp:plugin type="applet" code="AB.class" height="30" width="10" >
    <jsp:params>
    <jsp:param name="File" value="artist - Track 01.mp3">
    </jsp:param>
    </jsp:params>
         <jsp:fallback>
         Plugin tag OBJECT or EMBED not supported by browser.
         </jsp:fallback>
         </jsp:plugin>
    <%
         else{
              System.out.println("This is First Strike");
              out.println("This is First Strike");
    %>
    <FORM method="post" name="playChk" >
    <%
    try{
              File f =new File("C://Tomcat 5.0/webapps/Vj/images");
              System.out.println();
              String lists[] =f.list();
              out.println("Length:" + lists.length);
         %>
         <TABLE width="100%" border=1>
         <%
         for(int i =0 ;i < lists.length-1;i++){
              System.out.println( f + lists[i]);
         %>
         <TR>
         <TD><IMG height=109 src="<%=f + "/" + lists[i]%>" width=150 border=0></TD>
         </TR>
         <TR>
         <TD><INPUT type="radio" checked value="<%=lists[i]%>" name="R1" onClick="Check()"></TD>
         </TR>
    <%
         catch(Exception e){
              System.out.println("Exception" + e);
         %>
    </FORM>
    </BODY>
    </HTML
    Audio file is placed in same dir of applet.
    now i am getting Class not found exception.
    Ant one help me
    With Regards
    K.suresh

    It might be if you explain "the Problem" - whats the error
    for a start?

  • Need of JMF for getting Video Metadata

    Hi All
    I got a lot of videos here at a Helix Server. I get all rtsp URLs of them and just want to determine the length and size of each the videos by a Java Application running on a Tomcat. There is no need for streaming the contents or gettein just one Frame of the Video. I have seen that JMF is able to play these Videos, but i just need length and size using the rtsp Protocol.
    Did anyone know how to do this?
    Greetings
    Thomas
    Edited by: cybmaster on Nov 10, 2007 6:15 AM

    hi
    this is a sample bapi for getdetails.
    DATA : P0008 LIKE P0008.
    DATA : ONDATE TYPE SY-DATUM.
    SELECT SINGLE * FROM PA0008
    INTO CORRESPONDING FIELDS OF P0008
    WHERE PERNR = ITAB-PERNR
    AND BEGDA <= ONDATE
    AND ENDDA >= ONDATE.
    DATA : WAGETYPES LIKE BAPIP0008P OCCURS 0 WITH HEADER LINE.
    CALL FUNCTION 'BAPI_BASICPAY_GETDETAIL'
    EXPORTING
    EMPLOYEENUMBER = PERNR
    SUBTYPE = P0008-SUBTY
    OBJECTID = P0008-OBJPS
    LOCKINDICATOR = P0008-SPRPS
    VALIDITYBEGIN = P0008-BEGDA
    VALIDITYEND = P0008-ENDDA
    RECORDNUMBER = P0008-SEQNR
    TABLES
    WAGETYPES = WAGETYPES.
    regards
    sravani yendru

  • Jmf on web start

    Hi friends,
    Currently I am dealing with a project which includes distribution of JMF(java media framework) over the web. For this purpose, web start seems a nice approach.
    Moreover, JMF requires some native libraries which should be deployed from web start. I had problems at this point and strongly need help. I could not achieve deploying these libraries from web start hence running JMF from web start.
    I had no problem at running JMF from local JRE in standard java desktop applications. This means that required dlls can be successfully loaded and linked from standard applications but not from web start applications.
    I have read lots of forums and web sites and did what is said (at least I think I did), but could not solve the problem. Most probably, I need to do some simple configurations but at this point I totally don�t know what to do. Below, I want to mention shortly what I did to deploy JMF over the web start and the exceptions and error I faced with. I will be very happy if you find something wrong in these steps and tell me what to do:
    1. I jared all dlls related with the JMF : To do that, from Eclipse ee, I selected about 15 jmf dlls, right clicked them, chose �export� as jar, and obtained a jar from these dlls.
    2. Then, I signed them using keytool and jarsigner tools of java to give the project unrestricted access for media processing.
    3. Then, I added this jar to the webcontent folder of the project with other jars and files.
    4. After that, I added following tag to the jnlp file of the project: <nativelib href="http://193.140.214.29:8080/jmfproject/jmf-native-all.jar"/>
    5. I also added required System.loadLibrary() methods to my code in the order which gives no problem. (In the forums I read previously, these codes are required to load native dlls to the environment in which project will be run.)
    Note: I deployed project on Apache Tomcat Server.
    Below, I give my complete jnlp file;
    <?xml version="1.0" encoding="utf-8"?>
    <jnlp spec="1.0" codebase="http://193.140.214.29:8080/jmfproject" href="http://193.140.214.29:8080/jmfproject/jmfproject.jnlp">
    <information>
    <title>jmfproject</title>
    <vendor>Techneon ltd.</vendor>
    <icon href="http://193.140.214.29:8080/jmfproject/techneon.jpg" kind="default"/>
    <icon href="http://193.140.214.29:8080/jmfproject/techneon.jpg" kind="splash"/>
    </information>
    <security>
    <all-permissions/>
    </security>
    <resources OS = "Windows">
    <j2se version="1.6.0_03" href="http://java.sun.com/products/autodl/j2se"/>
    <jar href="http://193.140.214.29:8080/jmfproject/jmf.jar"/>
    <nativelib href="http://193.140.214.29:8080/jmfproject/jmfnative.jar"/>
    </resources>
    <application-desc main-class="JmfprojectStarter"/>
    </jnlp>
    And below is the cronical exception I faced with:
    java.lang.NullPointerException
    at Jmfproject.<init>(Jmfproject.java:241)
    at JmfprojectStarter.main(JmfprojectStarter.java:9)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.sun.javaws.Launcher.executeApplication(Unknown Source)
    at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
    at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
    at com.sun.javaws.Launcher.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

    Hi Andrew,
    Thank you very much for your attention,
    My simple project contains 2 classes: JmfprojectStarter, which contains only main method and Jmfproject which is a swing GUI
    Below is JmfprojectStarter:
    +public class JmfprojectStarter {+
    +     /**+
    +     * @param args+
    +     */+
    +     public static void main(String[] args) {+
    +          +
    +          new Jmfproject();+
    +     }+
    +}+
    And below is the System.loadlibrary part of the Jmfproject class:
    +/*+
    * Java(TM) SE 6 version.
    some import statements
    +@SuppressWarnings("serial")+
    +public class Jmfproject extends JFrame implements ControllerListener {+
    +     some gui component declarations+
    +     +
    +public Jmfproject() {+
    +     +
    +     System.loadLibrary("jmacm");+
    +     System.loadLibrary("jmdaudc");+
    +     System.loadLibrary("jmmpegv");+
    +     System.loadLibrary("jmutil");+
    +     System.loadLibrary("jmvcm");+
    +     System.loadLibrary("jmvfw");+
    +     System.loadLibrary("jmmpa");+
    +     System.loadLibrary("jmmci");+
    +     System.loadLibrary("jmdaud");+
    +     System.loadLibrary("jmcvid");+
    +     System.loadLibrary("jmam");+
    +     System.loadLibrary("jmjpeg");+
    +     System.loadLibrary("jmh263enc");+
    +     System.loadLibrary("jmh261");+
    +     System.loadLibrary("jmgdi");+
    +     System.loadLibrary("jmg723");+
    +     System.loadLibrary("jmddraw");+
    +     System.loadLibrary("jmvh263");+
    +     System.loadLibrary("jmfjawt");+
    +     System.loadLibrary("jmgsm");+
    +.+
    +.+
    +.+
    some gui component initiliazations
    +.+
    +.+
    +.+
    below is code block where I got the exception(statement in bold throws the exception)
    +try {+
    +          URL mediaURL = getClass().getResource("media/ungreedy.wav");+
    +          player = Manager.createPlayer(mediaURL);+
    +          player.addControllerListener(this);+
    +     }catch (Exception e) {e.printStackTrace();statusField.setText("player error");}+
    player.start();+
    As you see, System.loadlibrary methods are not called from main method(although from the same thread). Moreover, I guess there is no problem in the order of method calls since I changed the order untill I do not get "dependency" errors which are thrown when one dll depends on some other one. But in some way, these dlls can not be used by web start according to the part of exception thrown :
    at sun.reflect.*NativeMethodAccessorImpl.invoke0*(Native Method)
    at sun.reflect.*NativeMethodAccessorImpl.invoke*(Unknown Source)
    at sun.reflect.*DelegatingMethodAccessorImpl.invoke*(Unknown Source)
    I have no idea at this point:(
    Thank you very much again
    Edited by: alperyesilyurt on Jan 9, 2008 5:35 AM

  • Problem with JNI and Tomcat (and threads???)

    Howdy,
    Here is the issue - I would like some help on HOW to debug and fix this problem:
    2 test use cases -
    1)
    a)User goes to Login.jsp, enters user and password
    b) User submits to LoginServlet
    c) login calls JNI code that connects to a powerbuilder(Yes I know this is ugly) PBNI code module (this is a .dll) that authenticates the user with the database
    d) the servlet then redirects to another .jsp page
    e) user then submits to LogoutServlet - also a JNI call to a powerbuilder PBNI code module
    f) REPEAT STEPS a-e over a few times (inconsistent) and then the call to the JNI code hangs
    2)
    a) users does NOT goto Login.jsp, but rather calls LoginServlet and passes the userid and password as GET parms
    b) user does NOT get redirected to a page (redirect code commented out)
    c) user calls LogoutServlet
    d) repeat steps a-c at will and no failure, no hanging
    The only difference is that in case 1 (with JSP), there is a redirect and it afffected the JNI call by haniging inside JNI code.
    In case 2 (without JSP) there is still a JNI call, but it does not hang. In addition, when it hangs and I stop Tomcat, the logs show cleanup entries that say:
    Oct 19, 2004 9:17:09 AM org.apache.catalina.core.StandardWrapper unload
    INFO: Waiting for 1 instance(s) to be deallocated
    Oct 19, 2004 9:17:10 AM org.apache.catalina.core.StandardWrapper unload
    INFO: Waiting for 1 instance(s) to be deallocated
    Oct 19, 2004 9:17:11 AM org.apache.catalina.core.StandardWrapper unload
    INFO: Waiting for 1 instance(s) to be deallocated
    Is this a threading issue in Tomcat???
    On would assume that the JNI code is not cleaning up after itself, but I don't believe this is the case,
    and even if it was, why would I get the tomcat log cleanup entries above???
    What do those cleanup entries imply about the state of Tomcat????

    hi ,
    I met the same problem this morning, and searched the www.google.com in order to solve it, as a result, your article was shown on my screen. :)
    Till now I have read some technical information and solved my problems. Maybe the solution be useful to you:
    ==============================
    error message : (Environment : Tomcat 5, Windows 2003, Mysql5)
    2006-3-29 11:53:48 org.apache.catalina.core.StandardWrapper unload
    message: Waiting for 2 instance(s) to be deallocated
    ==============================
    cause: the number of connection to database exceeded.another word,too many connections.
    ==============================
    solution: close the connection when it becomes useless for your program. :)
    ==============================
    ps. Sorry for my weak English . hehe ....

  • Web Service Security is not working when migrating application from Tomcat

    Hi,
    We have a application running successfully in tomcat6 It calls a Webservice call through TIBCO BW interface.
    When we deployed the same WAR file in Weblogic 10.3.2, it gives me a error on Prefix[ds] not able to locate namespace URI not found error.
    IN Tomcat, its a existing application uses AxilUtility to get the soap messages after signing document for bothe encyption and decryption.
    Please anybody help me out, is there any other jars needs to be locate in Weblogic to run this application. Its fine with Tomcat and gives error in Weblogic10.3.2
    Please help me out
    Thanks in advance

    Hi Rajkumar,
    Thanks for you reply. Please let me now if you have any ideas..thnks a lot....
    Below is the error message what i am getting through weblogic console.
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppS
    ervletContext.java:2202)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletC
    ontext.java:2108)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.j
    ava:1432)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: java.io.IOException: error:weblogic.xml.stream.XMLStreamException: Pr
    efix [ds] used without binding it to a namespace URI
    at weblogic.xml.xmlnode.XMLNode.read(XMLNode.java:744)
    at weblogic.xml.xmlnode.XMLNode.readChildren(XMLNode.java:1054)
    at weblogic.xml.xmlnode.XMLNode.read(XMLNode.java:742)
    at weblogic.xml.xmlnode.XMLNode.readChildren(XMLNode.java:1054)
    at weblogic.xml.xmlnode.XMLNode.read(XMLNode.java:742)
    at weblogic.xml.xmlnode.XMLNode.readChildren(XMLNode.java:1054)
    at weblogic.xml.xmlnode.XMLNode.read(XMLNode.java:742)
    at weblogic.xml.xmlnode.XMLNode.readInternal(XMLNode.java:713)
    at weblogic.xml.xmlnode.XMLNode.readInternal(XMLNode.java:722)
    at weblogic.xml.xmlnode.NodeBuilder.build(NodeBuilder.java:44)
    at weblogic.xml.xmlnode.NodeBuilder.<init>(NodeBuilder.java:24)
    at weblogic.webservice.core.soap.SOAPEnvelopeImpl.<init>(SOAPEnvelopeImp
    l.java:154)
    at weblogic.webservice.core.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.j
    ava:200)
    ... 78 more
    java.lang.NullPointerException
    at java.io.ByteArrayInputStream.<init>(ByteArrayInputStream.java:89)
    at com.db.alat.wss.WSSClient.postSoapMessage(WSSClient.java:358)
    at com.db.alat.wss.WSSClient.WSSEncDec(WSSClient.java:102)
    at com.db.alat.service.CollateralAccounts.getAccountsSummary(CollateralA
    ccounts.java:55)
    at com.db.alat.CH.CHMapper.getGroup(CHMapper.java:281)
    at com.db.alat.BackingBeans.BorrowerDetailsBean.getClientDataCH(Borrower
    DetailsBean.java:1034)
    at com.db.alat.BackingBeans.BorrowerDetailsBean.<init>(BorrowerDetailsBe
    an.java:766)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
    orAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
    onstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at java.lang.Class.newInstance0(Class.java:355)
    at java.lang.Class.newInstance(Class.java:308)
    at com.sun.faces.mgbean.BeanBuilder.newBeanInstance(BeanBuilder.java:186
    at com.sun.faces.mgbean.BeanBuilder.build(BeanBuilder.java:106)
    at com.sun.faces.mgbean.BeanManager.createAndPush(BeanManager.java:368)
    at com.sun.faces.mgbean.BeanManager.create(BeanManager.java:222)
    at com.sun.faces.el.ManagedBeanELResolver.getValue(ManagedBeanELResolver
    .java:86)
    at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)
    at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELRe
    solver.java:72)
    at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:68)
    at com.sun.el.parser.AstValue.getValue(AstValue.java:107)
    at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192)
    And i have the loggers which gives the system out statements. You can identify the difference in both logs is the sys out ...Convert Signed Document back to Soap Message.
    IN tomcat i am getting the return object after calling the method
    SOAPMessage signedMsg = (SOAPMessage) AxisUtil.toSOAPMessage(signedDoc);
    But in Weblogic i am getting NULL. You can c in SOAPMessageImpl[SOAPPartImpl[null]]
    Tomocat Logs:
    Message Context..................1.........................org.apache.axis.MessageContext@c393a1
    2011-04-21 05:35:56,906 8672 INFO [com.db.alat.wss.WSSClient] (http-8080-1:) Unsigned Envelop............2.........................<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header/><SOAP-ENV:Body><RqDetail xmlns="http://schemas.db.com/esb/emf/pwm/ALAT/Services/CLIENT-getCandidateCollateralAccounts-RR" xmlns:cli="http://schemas.db.com/esb/emf/pwm/ClientElements" xmlns:com="http://schemas.db.com/esb/emf/pwm/CommonAggregates" xmlns:com1="http://schemas.db.com/esb/emf/pwm/CommonElements">
    <cli:ClientID BusinessUnit="CH">7cf8e78f86212a65398d50766de95a762318d3eee1350c1105d4b751825a690b</cli:ClientID>
    <cli:ClientType>B</cli:ClientType>
    <com:Field>
    <com1:Name>INITIALPAGE</com1:Name>
    <com1:Value>YES</com1:Value>
    </com:Field>
    </RqDetail></SOAP-ENV:Body></SOAP-ENV:Envelope>
    2011-04-21 05:35:56,906 8672 INFO [com.db.alat.wss.WSSClient] (http-8080-1:) DOCUMENT is .......:[#document: null]
    2011-04-21 05:35:56,906 8672 INFO [com.db.alat.wss.WSSClient] (http-8080-1:) KEYSTORE is .......:java.security.KeyStore@127fa03
    2011-04-21 05:35:57,078 8844 INFO [com.db.alat.wss.WSSClient] (http-8080-1:) ..................................3.........................
    2011-04-21 05:35:57,094 8860 INFO [com.db.alat.wss.WSSClient] (http-8080-1:) ..................................4.........................
    2011-04-21 05:35:57,297 9063 INFO [com.db.alat.wss.WSSClient] (http-8080-1:) Signed Document is .......:[#document: null]
    2011-04-21 05:35:57,437 9203 INFO [com.db.alat.wss.WSSClient] (http-8080-1:) Convert Signed Document back to Soap Message .......:[email protected]33662
    2011-04-21 05:35:57,469 9235 INFO [com.db.alat.wss.WSSClient] (http-8080-1:) ..................................5.........................
    Weblogic Logs:
    Message Context..................1.........................org.apache.axis.MessageContext@460d4
    2011-04-26 01:15:45,859 2640 INFO [com.db.alat.wss.WSSClient] ([ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)':) Unsigned Envelop............2.........................<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header/><SOAP-ENV:Body><RqDetail xmlns="http://schemas.db.com/esb/emf/pwm/ALAT/Services/CLIENT-getCandidateCollateralAccounts-RR" xmlns:cli="http://schemas.db.com/esb/emf/pwm/ClientElements" xmlns:com="http://schemas.db.com/esb/emf/pwm/CommonAggregates" xmlns:com1="http://schemas.db.com/esb/emf/pwm/CommonElements">
    <cli:ClientID BusinessUnit="CH">2b285aa27f1899d87de00f04099506ad24aaf1c18b0b6b071a8acd19b1732fb9</cli:ClientID>
    <cli:ClientType>B</cli:ClientType>
    <com:Field>
    <com1:Name>INITIALPAGE</com1:Name>
    <com1:Value>YES</com1:Value>
    </com:Field>
    </RqDetail></SOAP-ENV:Body></SOAP-ENV:Envelope>
    2011-04-26 01:15:45,875 2656 INFO [com.db.alat.wss.WSSClient] ([ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)':) DOCUMENT is .......:[#document: null]
    2011-04-26 01:15:45,875 2656 INFO [com.db.alat.wss.WSSClient] ([ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)':) KEYSTORE is .......:java.security.KeyStore@167d3c4
    2011-04-26 01:15:45,984 2765 INFO [com.db.alat.wss.WSSClient] ([ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)':) ..................................3.........................
    2011-04-26 01:15:46,016 2797 INFO [com.db.alat.wss.WSSClient] ([ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)':) ..................................4.........................
    2011-04-26 01:15:46,234 3015 INFO [com.db.alat.wss.WSSClient] ([ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)':) Signed Document is .......:[#document: null]
    2011-04-26 01:15:46,313 3094 INFO [com.db.alat.wss.WSSClient] ([ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)':) Convert Signed Document back to Soap Message .......:SOAPMessageImpl[SOAPPartImpl[null]]
    2011-04-26 01:15:46,328 3109 INFO [com.db.alat.wss.WSSClient] ([ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)':) ..................................5.........................

  • URgent !!!!!!!!! How do i add information to server.xml of tomcat

    Hi ,
    I want to add the conext information to my server.xml of tomcat for my hibernate configuration.....
    the conext information is as follows ....
    <Context path="/quickstart" docBase="quickstart">
    <Resource name="jdbc/quickstart" scope="Shareable" type="javax.sql.DataSource"/>
    <ResourceParams name="jdbc/quickstart">
    <parameter>
    <name>factory</name>
    <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
    </parameter>
    <!-- DBCP database connection settings -->
    <parameter>
    <name>url</name>
    <value>jdbc:postgresql://localhost/quickstart</value>
    </parameter>
    <parameter>
    <name>driverClassName</name><value>org.postgresql.Driver</value>
    </parameter>
    <parameter>
    <name>username</name>
    <value>quickstart</value>
    </parameter>
    <parameter>
    <name>password</name>
    <value>secret</value>
    </parameter>
    <!-- DBCP connection pooling options -->
    <parameter>
    <name>maxWait</name>
    <value>3000</value>
    </parameter>
    <parameter>
    <name>maxIdle</name>
    <value>100</value>
    </parameter>
    <parameter>
    <name>maxActive</name>
    <value>10</value>
    </parameter>
    </ResourceParams>
    </Context>
    Where in my server.xml should i put
    the server.xml looks like this :
    <!-- Example Server Configuration File -->
    <!-- Note that component elements are nested corresponding to their
    parent-child relationships with each other -->
    <!-- A "Server" is a singleton element that represents the entire JVM,
    which may contain one or more "Service" instances. The Server
    listens for a shutdown command on the indicated port.
    Note: A "Server" is not itself a "Container", so you may not
    define subcomponents such as "Valves" or "Loggers" at this level.
    -->
    <Server port="8005" shutdown="SHUTDOWN">
    <!-- Comment these entries out to disable JMX MBeans support used for the
    administration web application -->
    <Listener className="org.apache.catalina.core.AprLifecycleListener" />
    <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />
    <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
    <Listener className="org.apache.catalina.storeconfig.StoreConfigLifecycleListener"/>
    <!-- Global JNDI resources -->
    <GlobalNamingResources>
    <!-- Test entry for demonstration purposes -->
    <Environment name="simpleValue" type="java.lang.Integer" value="30"/>
    <!-- Editable user database that can also be used by
    UserDatabaseRealm to authenticate users -->
    <Resource name="UserDatabase" auth="Container"
    type="org.apache.catalina.UserDatabase"
    description="User database that can be updated and saved"
    factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
    pathname="conf/tomcat-users.xml" />
    </GlobalNamingResources>
    <!-- A "Service" is a collection of one or more "Connectors" that share
    a single "Container" (and therefore the web applications visible
    within that Container). Normally, that Container is an "Engine",
    but this is not required.
    Note: A "Service" is not itself a "Container", so you may not
    define subcomponents such as "Valves" or "Loggers" at this level.
    -->
    <!-- Define the Tomcat Stand-Alone Service -->
    <Service name="Catalina">
    <!-- A "Connector" represents an endpoint by which requests are received
    and responses are returned. Each Connector passes requests on to the
    associated "Container" (normally an Engine) for processing.
    By default, a non-SSL HTTP/1.1 Connector is established on port 8080.
    You can also enable an SSL HTTP/1.1 Connector on port 8443 by
    following the instructions below and uncommenting the second Connector
    entry. SSL support requires the following steps (see the SSL Config
    HOWTO in the Tomcat 5 documentation bundle for more detailed
    instructions):
    * If your JDK version 1.3 or prior, download and install JSSE 1.0.2 or
    later, and put the JAR files into "$JAVA_HOME/jre/lib/ext".
    * Execute:
    %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows)
    $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA (Unix)
    with a password value of "changeit" for both the certificate and
    the keystore itself.
    By default, DNS lookups are enabled when a web application calls
    request.getRemoteHost(). This can have an adverse impact on
    performance, so you can disable it by setting the
    "enableLookups" attribute to "false". When DNS lookups are disabled,
    request.getRemoteHost() will return the String version of the
    IP address of the remote client.
    -->
    <!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
    <Connector
    port="8080" maxHttpHeaderSize="8192"
    maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
    enableLookups="false" redirectPort="8443" acceptCount="100"
    connectionTimeout="20000" disableUploadTimeout="true" />
    <!-- Note : To disable connection timeouts, set connectionTimeout value
    to 0 -->
         <!-- Note : To use gzip compression you could set the following properties :
                   compression="on"
                   compressionMinSize="2048"
                   noCompressionUserAgents="gozilla, traviata"
                   compressableMimeType="text/html,text/xml"
         -->
    <!-- Define a SSL HTTP/1.1 Connector on port 8443 -->
    <!--
    <Connector port="8443" maxHttpHeaderSize="8192"
    maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
    enableLookups="false" disableUploadTimeout="true"
    acceptCount="100" scheme="https" secure="true"
    clientAuth="false" sslProtocol="TLS" />
    -->
    <!-- Define an AJP 1.3 Connector on port 8009 -->
    <Connector port="8009"
    enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />
    <!-- Define a Proxied HTTP/1.1 Connector on port 8082 -->
    <!-- See proxy documentation for more information about using this. -->
    <!--
    <Connector port="8082"
    maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
    enableLookups="false" acceptCount="100" connectionTimeout="20000"
    proxyPort="80" disableUploadTimeout="true" />
    -->
    <!-- An Engine represents the entry point (within Catalina) that processes
    every request. The Engine implementation for Tomcat stand alone
    analyzes the HTTP headers included with the request, and passes them
    on to the appropriate Host (virtual host). -->
    <!-- You should set jvmRoute to support load-balancing via AJP ie :
    <Engine name="Standalone" defaultHost="localhost" jvmRoute="jvm1">
    -->
    <!-- Define the top level container in our container hierarchy -->
    <Engine name="Catalina" defaultHost="localhost">
    <!-- The request dumper valve dumps useful debugging information about
    the request headers and cookies that were received, and the response
    headers and cookies that were sent, for all requests received by
    this instance of Tomcat. If you care only about requests to a
    particular virtual host, or a particular application, nest this
    element inside the corresponding <Host> or <Context> entry instead.
    For a similar mechanism that is portable to all Servlet 2.4
    containers, check out the "RequestDumperFilter" Filter in the
    example application (the source for this filter may be found in
    "$CATALINA_HOME/webapps/examples/WEB-INF/classes/filters").
    Request dumping is disabled by default. Uncomment the following
    element to enable it. -->
    <!--
    <Valve className="org.apache.catalina.valves.RequestDumperValve"/>
    -->
    <!-- Because this Realm is here, an instance will be shared globally -->
    <!-- This Realm uses the UserDatabase configured in the global JNDI
    resources under the key "UserDatabase". Any edits
    that are performed against this UserDatabase are immediately
    available for use by the Realm. -->
    <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
    resourceName="UserDatabase"/>
    <!-- Comment out the old realm but leave here for now in case we
    need to go back quickly -->
    <!--
    <Realm className="org.apache.catalina.realm.MemoryRealm" />
    -->
    <!-- Replace the above Realm with one of the following to get a Realm
    stored in a database and accessed via JDBC -->
    <!--
    <Realm className="org.apache.catalina.realm.JDBCRealm"
    driverName="org.gjt.mm.mysql.Driver"
    connectionURL="jdbc:mysql://localhost/authority"
    connectionName="test" connectionPassword="test"
    userTable="users" userNameCol="user_name" userCredCol="user_pass"
    userRoleTable="user_roles" roleNameCol="role_name" />
    -->
    <!--
    <Realm className="org.apache.catalina.realm.JDBCRealm"
    driverName="oracle.jdbc.driver.OracleDriver"
    connectionURL="jdbc:oracle:thin:@ntserver:1521:ORCL"
    connectionName="scott" connectionPassword="tiger"
    userTable="users" userNameCol="user_name" userCredCol="user_pass"
    userRoleTable="user_roles" roleNameCol="role_name" />
    -->
    <!--
    <Realm className="org.apache.catalina.realm.JDBCRealm"
    driverName="sun.jdbc.odbc.JdbcOdbcDriver"
    connectionURL="jdbc:odbc:CATALINA"
    userTable="users" userNameCol="user_name" userCredCol="user_pass"
    userRoleTable="user_roles" roleNameCol="role_name" />
    -->
    <!-- Define the default virtual host
    Note: XML Schema validation will not work with Xerces 2.2.
    -->
    <Host name="localhost" appBase="webapps"
    unpackWARs="true" autoDeploy="true"
    xmlValidation="false" xmlNamespaceAware="false">
    <!-- Defines a cluster for this node,
    By defining this element, means that every manager will be changed.
    So when running a cluster, only make sure that you have webapps in there
    that need to be clustered and remove the other ones.
    A cluster has the following parameters:
    className = the fully qualified name of the cluster class
    name = a descriptive name for your cluster, can be anything
    mcastAddr = the multicast address, has to be the same for all the nodes
    mcastPort = the multicast port, has to be the same for all the nodes
    mcastBindAddr = bind the multicast socket to a specific address
    mcastTTL = the multicast TTL if you want to limit your broadcast
    mcastSoTimeout = the multicast readtimeout
    mcastFrequency = the number of milliseconds in between sending a "I'm alive" heartbeat
    mcastDropTime = the number a milliseconds before a node is considered "dead" if no heartbeat is received
    tcpThreadCount = the number of threads to handle incoming replication requests, optimal would be the same amount of threads as nodes
    tcpListenAddress = the listen address (bind address) for TCP cluster request on this host,
    in case of multiple ethernet cards.
    auto means that address becomes
    InetAddress.getLocalHost().getHostAddress()
    tcpListenPort = the tcp listen port
    tcpSelectorTimeout = the timeout (ms) for the Selector.select() method in case the OS
    has a wakup bug in java.nio. Set to 0 for no timeout
    printToScreen = true means that managers will also print to std.out
    expireSessionsOnShutdown = true means that
    useDirtyFlag = true means that we only replicate a session after setAttribute,removeAttribute has been called.
    false means to replicate the session after each request.
    false means that replication would work for the following piece of code: (only for SimpleTcpReplicationManager)
    <%
    HashMap map = (HashMap)session.getAttribute("map");
    map.put("key","value");
    %>
    replicationMode = can be either 'pooled', 'synchronous' or 'asynchronous'.
    * Pooled means that the replication happens using several sockets in a synchronous way. Ie, the data gets replicated, then the request return. This is the same as the 'synchronous' setting except it uses a pool of sockets, hence it is multithreaded. This is the fastest and safest configuration. To use this, also increase the nr of tcp threads that you have dealing with replication.
    * Synchronous means that the thread that executes the request, is also the
    thread the replicates the data to the other nodes, and will not return until all
    nodes have received the information.
    * Asynchronous means that there is a specific 'sender' thread for each cluster node,
    so the request thread will queue the replication request into a "smart" queue,
    and then return to the client.
    The "smart" queue is a queue where when a session is added to the queue, and the same session
    already exists in the queue from a previous request, that session will be replaced
    in the queue instead of replicating two requests. This almost never happens, unless there is a
    large network delay.
    -->
    <!--
    When configuring for clustering, you also add in a valve to catch all the requests
    coming in, at the end of the request, the session may or may not be replicated.
    A session is replicated if and only if all the conditions are met:
    1. useDirtyFlag is true or setAttribute or removeAttribute has been called AND
    2. a session exists (has been created)
    3. the request is not trapped by the "filter" attribute
    The filter attribute is to filter out requests that could not modify the session,
    hence we don't replicate the session after the end of this request.
    The filter is negative, ie, anything you put in the filter, you mean to filter out,
    ie, no replication will be done on requests that match one of the filters.
    The filter attribute is delimited by ;, so you can't escape out ; even if you wanted to.
    filter=".*\.gif;.*\.js;" means that we will not replicate the session after requests with the URI
    ending with .gif and .js are intercepted.
    The deployer element can be used to deploy apps cluster wide.
    Currently the deployment only deploys/undeploys to working members in the cluster
    so no WARs are copied upons startup of a broken node.
    The deployer watches a directory (watchDir) for WAR files when watchEnabled="true"
    When a new war file is added the war gets deployed to the local instance,
    and then deployed to the other instances in the cluster.
    When a war file is deleted from the watchDir the war is undeployed locally
    and cluster wide
    -->
    <!--
    <Cluster className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"
    managerClassName="org.apache.catalina.cluster.session.DeltaManager"
    expireSessionsOnShutdown="false"
    useDirtyFlag="true"
    notifyListenersOnReplication="true">
    <Membership
    className="org.apache.catalina.cluster.mcast.McastService"
    mcastAddr="228.0.0.4"
    mcastPort="45564"
    mcastFrequency="500"
    mcastDropTime="3000"/>
    <Receiver
    className="org.apache.catalina.cluster.tcp.ReplicationListener"
    tcpListenAddress="auto"
    tcpListenPort="4001"
    tcpSelectorTimeout="100"
    tcpThreadCount="6"/>
    <Sender
    className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"
    replicationMode="pooled"
    ackTimeout="15000"/>
    <Valve className="org.apache.catalina.cluster.tcp.ReplicationValve"
    filter=".*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;"/>
    <Deployer className="org.apache.catalina.cluster.deploy.FarmWarDeployer"
    tempDir="/tmp/war-temp/"
    deployDir="/tmp/war-deploy/"
    watchDir="/tmp/war-listen/"
    watchEnabled="false"/>
    </Cluster>
    -->
    <!-- Normally, users must authenticate themselves to each web app
    individually. Uncomment the following entry if you would like
    a user to be authenticated the first time they encounter a
    resource protected by a security constraint, and then have that
    user identity maintained across all web applications contained
    in this virtual host. -->
    <!--
    <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
    -->
    <!-- Access log processes all requests for this virtual host. By
    default, log files are created in the "logs" directory relative to
    $CATALINA_HOME. If you wish, you can specify a different
    directory with the "directory" attribute. Specify either a relative
    (to $CATALINA_HOME) or absolute path to the desired directory.
    -->
    <!--
    <Valve className="org.apache.catalina.valves.AccessLogValve"
    directory="logs" prefix="localhost_access_log." suffix=".txt"
    pattern="common" resolveHosts="false"/>
    -->
    <!-- Access log processes all requests for this virtual host. By
    default, log files are created in the "logs" directory relative to
    $CATALINA_HOME. If you wish, you can specify a different
    directory with the "directory" attribute. Specify either a relative
    (to $CATALINA_HOME) or absolute path to the desired directory.
    This access log implementation is optimized for maximum performance,
    but is hardcoded to support only the "common" and "combined" patterns.
    -->
    <!--
    <Valve className="org.apache.catalina.valves.FastCommonAccessLogValve"
    directory="logs" prefix="localhost_access_log." suffix=".txt"
    pattern="common" resolveHosts="false"/>
    -->
    </Host>
    </Engine>
    </Service>
    </Server>
    Can Some one Help me pleaseeeeee

    Please don't cross-post in multiple forums. I have answered
    this in your other thread.

  • Error connecting to an EJB 3.0 Remote on OC4J 10.1.3.2 from Tomcat

    Hi, I want to connect to a Remote Session Bean running on the OC4J 10.1.3 and it doesn´t work.
    I have connected to it from a java standalone application using:
    public static void main(String [] args) {
    try {
    final Context context = getInitialContext();
    SessionEJB sessionEJB = (SessionEJB)context.lookup("java:comp/env/ejb/SessionEJB");
    System.out.println(sessionEJB.mergeEntity(""));
    System.out.println( "hola" );
    } catch (Exception ex) {
    ex.printStackTrace();
    private static Context getInitialContext() throws NamingException {
    Hashtable env = new Hashtable();
    // Standalone OC4J connection details
    env.put( Context.INITIAL_CONTEXT_FACTORY, "oracle.j2ee.naming.ApplicationClientInitialContextFactory" );
    env.put( Context.SECURITY_PRINCIPAL, "oc4jadmin" );
    env.put( Context.SECURITY_CREDENTIALS, "passw" );
    env.put(Context.PROVIDER_URL, "ormi://localhost:23791/ejb3jar");
    return new InitialContext( env );
    with this application-client.xml file:
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <application-client xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application-client_1_4.xsd" version="1.4" xmlns="http://java.sun.com/xml/ns/j2ee">
    <display-name>Model-app-client</display-name>
    <ejb-ref>
    <ejb-ref-name>ejb/SessionEJB</ejb-ref-name>
    <ejb-ref-type>Session</ejb-ref-type>
    <remote>ar.com.eds.ejb3.model.SessionEJB</remote>
    <ejb-link>SessionEJB</ejb-link>
    </ejb-ref>
    thats works fine, but when I try to use the same solution from a jsf proyect running on a Tomcat 5.5.20, it fails with this error:
    Caused by: java.lang.RuntimeException: Error while creating home.
         at ar.com.mcd.fawkes.ui.locator.EJB3Locator.get(EJB3Locator.java:32)
         at ar.com.mcd.fawkes.ui.locator.ServiceLocator$1.get(ServiceLocator.java:12)
         at net.sf.opentranquera.web.jsf.locator.ServiceLocatorBean.get(ServiceLocatorBean.java:42)
         at com.sun.faces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:79)
         at com.sun.faces.el.impl.ArraySuffix.evaluate(ArraySuffix.java:187)
         at com.sun.faces.el.impl.ComplexValue.evaluate(ComplexValue.java:171)
         at com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:263)
         at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:160)
         ... 80 more
    Caused by: javax.naming.NameNotFoundException: Name ejb is not bound in this Context
         at org.apache.naming.NamingContext.lookup(NamingContext.java:769)
         at org.apache.naming.NamingContext.lookup(NamingContext.java:139)
         at org.apache.naming.NamingContext.lookup(NamingContext.java:780)
         at org.apache.naming.NamingContext.lookup(NamingContext.java:139)
         at org.apache.naming.NamingContext.lookup(NamingContext.java:780)
         at org.apache.naming.NamingContext.lookup(NamingContext.java:152)
         at org.apache.naming.SelectorContext.lookup(SelectorContext.java:136)
         at javax.naming.InitialContext.lookup(Unknown Source)
         at ar.com.mcd.fawkes.ui.locator.EJB3Locator.get(EJB3Locator.java:28)
         ... 87 more
    Could you please help me with any tip?
    Mauricio
    Message was edited by:
    Mauricio

    Hi, Rick
    Thanks for your help.
    I deleted de application-client.xml file, added the following lines to the web.xml file:
         <ejb-ref>
              <ejb-ref-name>ejb/SessionEJB</ejb-ref-name>
              <ejb-ref-type>Session</ejb-ref-type>
              <remote>ar.com.eds.ejb3.model.SessionEJB</remote>
         </ejb-ref>
    and now I´m using oracle.j2ee.rmi.RMIInitialContextFactory
    there is no error, and it doesn´t throw any exception but the following line returns null.
    SessionEJB sessionEJB = (SessionEJB)context.lookup("java:comp/env/ejb/SessionEJB");
    Its seems the lookup method finds the remote ejb because it doesn´t fail, but it returns null.
    Any idea what is wrong?
    Mauricio.

  • Problem when rendering a report in BI Publisher deployed on Apache Tomcat

    Hello for all.
    First, I am going to tell you technical specifications about the software where I have deployed BI Publisher:
    1. OS: Windows XP SP3
    2. JDK and JRE: 1.6.0_24
    3. Apache Tomcat: 5.5.33 (Set JVM Max Memory in 768MB)
    4. BI Publisher EE: 10.1.3.4.1
    I have deployed BI Publisher on Apache Tomcat without any problem, I uploaded Report files (both XDO and RTF), and I can see the reports in XML output format, but when I try to see the reports rendered by using the rtf file I have configured, BI Publisher shows me an Error; I checked the Apache Tomcat log and the following error is reported:
    [042511_033325984][oracle.apps.xdo.common.xml.XSLTWrapper][ERROR] XSL error:
    <Line 3, Column 123>: XML-22002: (Fatal Error) Error while processing include XSL file (rtf2xsl://http_//localhost:8080/xmlpserver/SubTemplates/sub-template-parameters.rtf?sid=1&eaf=3).
    <Line 296, Column 18>: XML-22000: (Error) Error while parsing XSL file (null).
    [042511_033325984][oracle.apps.xdo.template.FOProcessor][ERROR] End Memory: max=247MB, total=44MB, free=15MB
    [042511_033325984][][EXCEPTION] java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at oracle.apps.xdo.common.xml.XSLT10gR1.invokeNewXSLStylesheet(Unknown Source)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(Unknown Source)
         at oracle.apps.xdo.common.xml.XSLTWrapper.transform(Unknown Source)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(Unknown Source)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(Unknown Source)
         at oracle.apps.xdo.template.FOProcessor.createFO(Unknown Source)
         at oracle.apps.xdo.template.FOProcessor.generate(Unknown Source)
         at oracle.apps.xdo.servlet.RTFCoreProcessor.transform(RTFCoreProcessor.java:91)
         at oracle.apps.xdo.servlet.CoreProcessor.process(CoreProcessor.java:276)
         at oracle.apps.xdo.servlet.CoreProcessor.generateDocument(CoreProcessor.java:82)
         at oracle.apps.xdo.servlet.ReportImpl.renderBodyHTTP(ReportImpl.java:552)
         at oracle.apps.xdo.servlet.ReportImpl.renderReportBodyHTTP(ReportImpl.java:255)
         at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:270)
         at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:250)
         at oracle.apps.xdo.servlet.XDOServlet.doGet(XDOServlet.java:178)
         at oracle.apps.xdo.servlet.XDOServlet.doPost(XDOServlet.java:201)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
         at oracle.apps.xdo.servlet.security.SecurityFilter.doFilter(SecurityFilter.java:94)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:879)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.util.EmptyStackException
         at oracle.xdo.parser.v2.XSLProcessor.reportException(XSLProcessor.java:806)
         at oracle.xdo.parser.v2.XSLProcessor.newXSLStylesheet(XSLProcessor.java:571)
         ... 39 more
    [042511_033325984][][EXCEPTION] java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at oracle.apps.xdo.common.xml.XSLT10gR1.invokeNewXSLStylesheet(Unknown Source)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(Unknown Source)
         at oracle.apps.xdo.common.xml.XSLTWrapper.transform(Unknown Source)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(Unknown Source)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(Unknown Source)
         at oracle.apps.xdo.template.FOProcessor.createFO(Unknown Source)
         at oracle.apps.xdo.template.FOProcessor.generate(Unknown Source)
         at oracle.apps.xdo.servlet.RTFCoreProcessor.transform(RTFCoreProcessor.java:91)
         at oracle.apps.xdo.servlet.CoreProcessor.process(CoreProcessor.java:276)
         at oracle.apps.xdo.servlet.CoreProcessor.generateDocument(CoreProcessor.java:82)
         at oracle.apps.xdo.servlet.ReportImpl.renderBodyHTTP(ReportImpl.java:552)
         at oracle.apps.xdo.servlet.ReportImpl.renderReportBodyHTTP(ReportImpl.java:255)
         at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:270)
         at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:250)
         at oracle.apps.xdo.servlet.XDOServlet.doGet(XDOServlet.java:178)
         at oracle.apps.xdo.servlet.XDOServlet.doPost(XDOServlet.java:201)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
         at oracle.apps.xdo.servlet.security.SecurityFilter.doFilter(SecurityFilter.java:94)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:879)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.util.EmptyStackException
         at oracle.xdo.parser.v2.XSLProcessor.reportException(XSLProcessor.java:806)
         at oracle.xdo.parser.v2.XSLProcessor.newXSLStylesheet(XSLProcessor.java:571)
         ... 39 more
    I checked that the url http://localhost:8080/xmlpserver/SubTemplates/sub-template-parameters.rtf would be accesible via Internet Explorer, and It is accesible.
    I am glad if you can tell me what could be the cause of the error.
    Thanks.

    Finally, I stop working in the implementation of BIP over Apache Tomcat; I installed OC4J 10.1.3.5.0 (standalone installation) and I deployed BIP on it.
    It seems the error I wrote in last post has been fixed, but actually I am obtaining the following error with the deployment on OC4J:
    [042711_055706687][][ERROR] Namespace 'http://www.oracle.com/XSL/Transform/java/
    oracle.com.xmlpublisher.reports.BIPExtension' failed Secure Java Extensions chec
    k.
    [042711_055706687][oracle.apps.xdo.template.FOProcessor][ERROR] End Memory: max=
    494MB, total=46MB, free=21MB
    [042711_055706687][][EXCEPTION] oracle.apps.xdo.XDOException: XSLT10gR1: Failed
    Secure Java Extensions check.
    at oracle.apps.xdo.common.xml.XSLT10gR1.transform(Unknown Source)
    at oracle.apps.xdo.common.xml.XSLTWrapper.transform(Unknown Source)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(Unknown Source)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(Unknown Source)
    at oracle.apps.xdo.template.FOProcessor.createFO(Unknown Source)
    at oracle.apps.xdo.template.FOProcessor.generate(Unknown Source)
    at oracle.apps.xdo.servlet.RTFCoreProcessor.transform(RTFCoreProcessor.j
    ava:91)
    at oracle.apps.xdo.servlet.CoreProcessor.process(CoreProcessor.java:276)
    at oracle.apps.xdo.servlet.CoreProcessor.generateDocument(CoreProcessor.
    java:82)
    at oracle.apps.xdo.servlet.ReportImpl.renderBodyHTTP(ReportImpl.java:552
    at oracle.apps.xdo.servlet.ReportImpl.renderReportBodyHTTP(ReportImpl.ja
    va:255)
    at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:270)
    at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:250)
    at oracle.apps.xdo.servlet.XDOServlet.doGet(XDOServlet.java:178)
    at oracle.apps.xdo.servlet.XDOServlet.doPost(XDOServlet.java:201)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterC
    hain.java:64)
    at oracle.apps.xdo.servlet.security.SecurityFilter.doFilter(SecurityFilt
    er.java:94)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletReque
    stDispatcher.java:644)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(Ser
    vletRequestDispatcher.java:391)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequ
    estHandler.java:908)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpReques
    tHandler.java:458)
    at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpReque
    stHandler.java:226)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:127)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:116)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSo
    cketReadHandler.java:260)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
    sableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:662)
    [042711_055706687][][EXCEPTION] oracle.apps.xdo.XDOException: XSLT10gR1: Failed
    Secure Java Extensions check.
    at oracle.apps.xdo.common.xml.XSLT10gR1.transform(Unknown Source)
    at oracle.apps.xdo.common.xml.XSLTWrapper.transform(Unknown Source)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(Unknown Source)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(Unknown Source)
    at oracle.apps.xdo.template.FOProcessor.createFO(Unknown Source)
    at oracle.apps.xdo.template.FOProcessor.generate(Unknown Source)
    at oracle.apps.xdo.servlet.RTFCoreProcessor.transform(RTFCoreProcessor.j
    ava:91)
    at oracle.apps.xdo.servlet.CoreProcessor.process(CoreProcessor.java:276)
    at oracle.apps.xdo.servlet.CoreProcessor.generateDocument(CoreProcessor.
    java:82)
    at oracle.apps.xdo.servlet.ReportImpl.renderBodyHTTP(ReportImpl.java:552
    at oracle.apps.xdo.servlet.ReportImpl.renderReportBodyHTTP(ReportImpl.ja
    va:255)
    at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:270)
    at oracle.apps.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:250)
    at oracle.apps.xdo.servlet.XDOServlet.doGet(XDOServlet.java:178)
    at oracle.apps.xdo.servlet.XDOServlet.doPost(XDOServlet.java:201)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterC
    hain.java:64)
    at oracle.apps.xdo.servlet.security.SecurityFilter.doFilter(SecurityFilt
    er.java:94)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletReque
    stDispatcher.java:644)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(Ser
    vletRequestDispatcher.java:391)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequ
    estHandler.java:908)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpReques
    tHandler.java:458)
    at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpReque
    stHandler.java:226)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:127)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:116)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSo
    cketReadHandler.java:260)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
    sableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:662)
    May you know the cause of the error above?
    Thanks,

  • Install JMF on Windows 7 64bit

    Dear all,
    After a lot of struggling (and a really mean a lot), I finally got jmf to work on Windows 7 64bit. I figured that I can better not let this information go to waste, so that's why I'm posting it here. I didn't really test the full capabilities of jmf on my platform yet, in fact I only tested those features that I needed for my application. As such I am able to successfully capture and record video clips from my build in webcam of my laptop.
    First let me describe my platform:
    Laptop: Samsung R590 (JS01)
    Processor: I5 450M (64bit)
    OS: Windows 7 64bit
    Webcam: build in
    Secondly I want to apologize in advance if the method below doesn't work for you. The reason for that can be that I had to try so many different things before I finally got it to work, so I'm not really sure which steps are necessary and which ones are not. So I tried to make a guide that only includes the necessary steps, but in reality I tried so much more, so if this tutorial doesn't work for you, please give me feedback, and we'll try to figure it out. :)
    Step one: installation of java JRE/JDK
    JMF will never work on a 64bit JRE/JDK, plain and simple because JMF is too old and doesn't support a 64bit JRE/JDK. Thus your first step has to be to install a 32 bit JRE/JDK on your system. (I uninstalled my 64 bit JRE/JDK first, but I don't now whether or not this is necessary)
    Step two: download JMF with windows performance pack
    Go to the jmf site and download the most recent jmf version, with windows performance pack. (This is - and will probably be forever - version 2.1.1e)
    The link to the website is currently: [https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=7372-jmf-2.1.1e-oth-JPR@CDS-CDS_Developer]
    Step three: install JMF
    Install the file you just downloaded in the normal way you would install any other program. But chose as installation path: "C:\JMF2.1.1e"
    I think this is necessary because of the strict security policy in Windows 7, if you don't do this, I guess jmf won't be able to store capture device settings to your local hard drive. (But again, I'm not completely sure here, please verify this if possible)
    After the installation, you don't have to do anything special to get jmf to work, so you don't manually have to set the JMFDIR, PATH and CLASSPATH (as is explained at the sun website), just skip those steps.
    After the installation, reboot your pc.
    Remark: I recommend you to install jmf as an administrator (but I don't now whether or not this is necessary). To do this, right click the installation file and select: "run as administrator'.
    *Step four: register your capture devices*
    First make sure that all your devices are working properly, I recommend you to use a program like Skype or something just to check whether your microphone is working or not.
    Secondly, open jmfstudio, select 'file > preferences > capture devices', and press the button 'detect capture devices'. Normally you will have to wait for a couple of minutes now (because the determination of all the available video formats takes quite a while). Afterwards jmf should have found all of your devices, that usually looks something like this:
    DirectSoundCapture
    JavaSound audio capture
    vfw:Microsoft WDM Image Capture (Win32):0
    But this can vary according to your configuration off course. :)
    *Step four: test your capture devices*
    In jmfstudio, select 'file > capture' and select the video and audio combo and see if your webcam settings work. You should now be able to view and hear yourself.
    *Step five: that's it, enjoy your jmf*
    *Remarks:*
    My development platform is currently netbeans 6.9.1 and I am able to write code, build it and run it with netbeans. I can also just run normal *.jar files
    *Troubleshoot:*
    If you get a dialog screen when starting your video capture device that looks like this: [http://www.alexandria.nu/ai/machine_vision/dual_cameras/SelectDevice.gif]
    (With off course another name for the capture device), then that means that your capturing device is currently occupied by another program and you can't currently use it.
    To solve this, make sure that no other application is using the webcam. For me even this was insufficient, but I managed to solve this by installing the latest drivers for my webcam from the manufacturing site of my laptop.
    I sincerely hope this tutorial can be of any use for someone, feel free to give me comments/suggestions. And please post here if this works for you or not.
    Greetings, Molly

    Hi
    sure I follow each of your steps, I uninstall all java verisones and installed a new java version 32-bit, I installed JMF in "C: \ JMF2.1.1e".
    when all installing finished, works fine JMF only once, I do the tests, recognizes the device; shows the video, but when I close and open again JStudio don't works throws error, and therefore my apliación not working, always returns null the device

  • Error in starting SPLService on Tomcat

    Hi,
    I get an error while starting CC&B v2.1.0 installed at my local machine on Tomcat. Hereunder is the SPL.log :
    - 10:32:37,953 [main] INFO (web.startup.SPLWebStartup) Initializing SPL web application
    - 10:32:37,953 [main] INFO (shared.context.ApplicationMode) Application is running web-based
    - 10:32:37,953 [main] INFO (shared.context.ApplicationMode) Application set to production mode
    - 10:32:38,031 [main] INFO (web.dynamicui.TransformServletHelper) Disable UIPage Compression set to false
    - 10:32:38,968 [main] INFO (support.context.ContextFactory) Creating default context
    - 10:32:39,093 [main] INFO (shared.environ.ApplicationProperties) loaded properties from resource spl.properties: {spl.runtime.service.extraInstallationServices=CILTINCP, spl.runtime.cobol.remote.jvmcommand=D:/CCB_Install/jdk1.5.0_09/bin/java.exe, spl.tools.loaded.applications=base,ccb,cm, spl.runtime.cobol.remote.jvmcount=1, spl.runtime.socket.file.dir=D:/ccbenv/ccbdemo/runtime, spl.runtime.cobol.sql.fetchSize=150, spl.runtime.cobol.cobrcall=false, spl.runtime.cobol.encoding=UTF8, spl.runtime.cobol.sql.disableQueryCache=false, spl.runtime.utf8Database=true, spl.runtime.cobol.remote.jvmoptions=-Xmx156m -server -Dfile.encoding=ISO8859_1 -cp D:/ccbenv/ccbdemo/splapp/standalone/config;D:/ccbenv/ccbdemo/splapp/standalone/lib/commons-beanutils-1.6.1.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/commons-codec-1.3.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/commons-collections-2.1.1.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/commons-fileupload-1.1.1.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/commons-httpclient-2.0.2.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/commons-io-1.2.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/commons-lang-2.2.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/commons-logging-1.0.4.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/concurrent-1.3.4.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/dom4j-1.6.1.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/hibernate-3.1.3.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/icu4j-3.6.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/jaxen-1.1-beta-11.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/jta.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/jtds-1.2.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/log4j-1.2.11.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/mfcobol.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/spl-base-2.1.0.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/spl-shared-2.1.0.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/spl-xai-2.1.0.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/xstream-1.2.1.jar, spl.runtime.environ.init.dir=D:/ccbenv/ccbdemo/etc, spl.runtime.cobol.sql.cache.maxTotalEntries=1000, spl.runtime.oracle.statementCacheSize=300, spl.runtime.cobol.remote.rmiStartPort=5503, spl.runtime.cobol.sql.cursoredCache.maxRows=10, spl.runtime.cobol.remote.jvm=true, spl.runtime.sql.highValue=}
    - 10:32:47,140 [main] WARN (shared.environ.ContextManagedObjectSet) Could not load resource com/splwg/cm/domain/contextManagedObjects.xml on classpath. This may be harmless but could mean a problem with the classpath. Please verify that the classpath for application cm is correctly configured.
    - 10:33:12,234 [main] INFO (support.context.ContextFactory) Registering lookups
    - 10:33:12,593 [main] INFO (support.context.ContextFactory) 480 lookups registered, time 348.717 ms
    - 10:33:12,593 [main] INFO (support.context.ComponentContainerLookupHelper) Initializing constants on 505 lookup interface classes
    - 10:33:13,187 [main] INFO (support.context.ComponentContainerLookupHelper) Done initializing lookup constants, time 594.028 ms
    - 10:33:13,187 [main] INFO (support.context.ContextFactory) Registering algorithm spots
    - 10:33:13,187 [main] INFO (support.context.ContextFactory) 99 algorithm spots registered, time 0.168 ms
    - 10:33:13,187 [main] INFO (support.context.ContextFactory) Registering algorithm components
    - 10:33:13,187 [main] INFO (support.context.ContextFactory) 46 algorithm components registered, time 0.045 ms
    - 10:33:13,187 [main] INFO (support.context.ContextFactory) Registering batch jobs
    - 10:33:13,187 [main] INFO (support.context.ContextFactory) 13 batch jobs registered, time 0.036 ms
    - 10:33:13,187 [main] INFO (support.context.ContextFactory) Registering Entities
    - 10:33:15,515 [main] INFO (support.context.ContextFactory) 812 entities registered, time 2,320.145 ms
    - 10:33:15,515 [main] INFO (support.context.ContextFactory) Registering Components
    - 10:33:15,515 [main] INFO (support.context.ContextFactory) 227 components registered, time 1.367 ms
    - 10:33:15,515 [main] INFO (support.context.ContextFactory) Registering Change Handlers
    - 10:33:15,515 [main] INFO (support.context.ContextFactory) 200 handlers registered, time 0.386 ms
    - 10:33:15,515 [main] INFO (support.context.ContextFactory) Registering Services
    - 10:33:15,671 [main] INFO (support.context.ContextFactory) 313 services registered, time 158.694 ms
    - 10:33:15,671 [main] INFO (support.context.ContextFactory) Registering Code Description queries
    - 10:33:15,687 [main] INFO (support.context.ContextFactory) 40 code/description queries registered, time 0.060 ms
    - 10:33:15,687 [main] INFO (support.context.ContextFactory) Registering cobol programs
    - 10:33:16,140 [main] INFO (support.context.ContextFactory) 187 cobol copybooks registered, time 455.640 ms
    - 10:33:16,140 [main] INFO (support.context.ContextFactory) Registering cobol programs
    - 10:33:16,140 [main] INFO (support.context.ContextFactory) 39 cobol programs registered, time 0.048 ms
    - 10:33:16,140 [main] INFO (support.context.ApplicationContext) Building hibernate configuration
    - 10:33:16,687 [main] INFO (support.context.ApplicationContext) Adding 812 hibernate mappings
    - 10:33:17,640 [main] INFO (support.context.ApplicationContext) Added 100 mappings
    - 10:33:18,250 [main] INFO (support.context.ApplicationContext) Added 200 mappings
    - 10:33:19,015 [main] INFO (support.context.ApplicationContext) Added 300 mappings
    - 10:33:19,609 [main] INFO (support.context.ApplicationContext) Added 400 mappings
    - 10:33:20,562 [main] INFO (support.context.ApplicationContext) Added 500 mappings
    - 10:33:21,140 [main] INFO (support.context.ApplicationContext) Added 600 mappings
    - 10:33:21,734 [main] INFO (support.context.ApplicationContext) Added 700 mappings
    - 10:33:22,343 [main] INFO (support.context.ApplicationContext) Added 800 mappings
    - 10:33:22,406 [main] INFO (support.context.ApplicationContext) Added 812 mappings
    - 10:33:22,500 [main] INFO (support.context.ApplicationContext) Done building hibernate configuration, time 6,351.886 ms
    - 10:33:22,500 [main] INFO (support.context.ApplicationContext) Building hibernate session factory
    - 10:33:24,218 [main] INFO (hibernate.connection.ConnectionProviderFactory) Initializing connection provider: org.hibernate.connection.C3P0ConnectionProvider
    - 10:33:24,218 [main] INFO (hibernate.connection.C3P0ConnectionProvider) C3P0 using driver: oracle.jdbc.driver.OracleDriver at URL: jdbc:oracle:thin:@localhost:1521:etmdemo
    - 10:33:24,218 [main] INFO (hibernate.connection.C3P0ConnectionProvider) Connection properties: {user=ccbuser, password=****}
    - 10:33:24,218 [main] INFO (hibernate.connection.C3P0ConnectionProvider) autocommit mode: false
    - 10:33:24,234 [main] INFO (v2.log.MLog) MLog clients using log4j logging.
    - 10:33:24,640 [main] INFO (v2.c3p0.C3P0Registry) Initializing c3p0-0.9.0.4 [built 23-January-2006 22:20:29 -0500; debug? true; trace: 10]
    - 10:33:24,812 [main] INFO (v2.c3p0.PoolBackedDataSource) Initializing c3p0 pool... com.mchange.v2.c3p0.PoolBackedDataSource@215748 [ connectionPoolDataSource -> com.mchange.v2.c3p0.WrapperConnectionPoolDataSource@100269d [ acquireIncrement -> 1, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 100269d, idleConnectionTestPeriod -> 0, initialPoolSize -> 1, maxIdleTime -> 300, maxPoolSize -> 150, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 1, nestedDataSource -> com.mchange.v2.c3p0.DriverManagerDataSource@56be4e [ description -> null, driverClass -> null, factoryClassLocation -> null, identityToken -> 56be4e, jdbcUrl -> jdbc:oracle:thin:@localhost:1521:etmdemo, properties -> {user=******, password=******} ], preferredTestQuery -> null, propertyCycle -> 300, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, usesTraditionalReflectiveProxies -> false ], factoryClassLocation -> null, identityToken -> 215748, numHelperThreads -> 3 ]
    - 10:33:26,296 [main] INFO (hibernate.dialect.Dialect) Using dialect: org.hibernate.dialect.Oracle9Dialect
    - 10:33:26,312 [main] INFO (hibernate.transaction.TransactionFactoryFactory) Transaction strategy: org.hibernate.transaction.JDBCTransactionFactory
    - 10:33:26,312 [main] INFO (hibernate.transaction.TransactionManagerLookupFactory) No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
    - 10:33:26,343 [main] INFO (hibernate.impl.SessionFactoryImpl) building session factory
    - 10:33:36,812 [main] INFO (hibernate.impl.SessionFactoryObjectFactory) Not binding factory to JNDI, no JNDI name configured
    - 10:33:36,812 [main] INFO (support.context.ApplicationContext) Done building hibernate session factory, time 14,318.045 ms
    - 10:33:37,484 [main] INFO (support.sql.OracleFunctionReplacer) Oracle driver statement cache enabled with size of 300
    - 10:33:37,531 [main] INFO (support.context.ApplicationContext) Database: Oracle, version: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    - 10:33:37,531 [main] INFO (support.context.ApplicationContext) JDBC driver: Oracle JDBC driver, version: 10.2.0.1.0
    - 10:33:38,828 [main] INFO (support.context.ApplicationContext) System owner is: 'CM '
    - 10:33:39,328 [main] INFO (cobol.host.CobolHostStartup) Using provided java command for remote cobol execution: D:/CCB_Install/jdk1.5.0_09/bin/java.exe
    - 10:33:39,328 [main] INFO (cobol.host.CobolHostStartup) Using provided java command options for remote cobol execution: -Xmx156m -server -Dfile.encoding=ISO8859_1 -cp D:/ccbenv/ccbdemo/splapp/standalone/config;D:/ccbenv/ccbdemo/splapp/standalone/lib/commons-beanutils-1.6.1.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/commons-codec-1.3.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/commons-collections-2.1.1.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/commons-fileupload-1.1.1.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/commons-httpclient-2.0.2.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/commons-io-1.2.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/commons-lang-2.2.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/commons-logging-1.0.4.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/concurrent-1.3.4.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/dom4j-1.6.1.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/hibernate-3.1.3.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/icu4j-3.6.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/jaxen-1.1-beta-11.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/jta.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/jtds-1.2.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/log4j-1.2.11.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/mfcobol.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/spl-base-2.1.0.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/spl-shared-2.1.0.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/spl-xai-2.1.0.jar;D:/ccbenv/ccbdemo/splapp/standalone/lib/xstream-1.2.1.jar
    - 10:33:39,343 [main] INFO (cobol.host.CobolHostStartup) Using starting port number 5503 for remote cobol execution.
    - 10:33:40,031 [main] INFO (cobol.host.SocketStrategy) Socket strategy set to com.splwg.base.support.cobol.host.sockets.WindowsPipeSocketStrategy
    - 10:33:41,171 [main] INFO (cobol.host.CobolHostStartup) Using active JVM count of 1 for remote cobol execution.
    *-  10:34:03,203 [main] ERROR (cobol.host.SocketStrategy) Unable to establish connection on port 5506 after waiting 20 seconds.*
    java.net.ConnectException: Error: Could not open pipe
    caused by system error: The system cannot find the file specified.
         at com.splwg.base.support.cobol.host.sockets.WindowsPipeSocket.connectToPipe(Native Method)
         at com.splwg.base.support.cobol.host.sockets.WindowsPipeSocket.<init>(WindowsPipeSocket.java:63)
         at com.splwg.base.support.cobol.host.sockets.WindowsPipeSocket.createSocket(WindowsPipeSocket.java:100)
         at com.splwg.base.support.cobol.host.sockets.WindowsPipeSocket.connect(WindowsPipeSocket.java:95)
         at com.splwg.base.support.cobol.host.sockets.WindowsPipeSocketStrategy.openSocket(WindowsPipeSocketStrategy.java:32)
         at com.splwg.base.support.cobol.host.SocketStrategy.unsafeOpen(SocketStrategy.java:118)
         at com.splwg.base.support.cobol.host.SocketStrategy.open(SocketStrategy.java:103)
         at com.splwg.base.support.cobol.host.OptimizedRemoteExecuterStub.createNewHolder(OptimizedRemoteExecuterStub.java:162)
         at com.splwg.base.support.cobol.host.OptimizedRemoteExecuterStub.getStreamHolder(OptimizedRemoteExecuterStub.java:125)
         at com.splwg.base.support.cobol.host.OptimizedRemoteExecuterStub.invoke(OptimizedRemoteExecuterStub.java:46)
         at com.splwg.base.support.cobol.host.RemoteRunnerImpl.invoke(RemoteRunnerImpl.java:89)
         at com.splwg.base.support.cobol.host.RemoteJVMConnectionImpl.createRemoteRunner(RemoteJVMConnectionImpl.java:148)
         at com.splwg.base.support.cobol.host.RemoteJVMConnectionImpl.<init>(RemoteJVMConnectionImpl.java:67)
         at com.splwg.base.support.cobol.host.RemoteJVMFactoryImpl.addConnection(RemoteJVMFactoryImpl.java:83)
         at com.splwg.base.support.cobol.host.RotatingCommandRunnerProvider.addNewConnection(RotatingCommandRunnerProvider.java:135)
         at com.splwg.base.support.cobol.host.RotatingCommandRunnerProvider.addNecessaryConnections(RotatingCommandRunnerProvider.java:121)
         at com.splwg.base.support.cobol.host.RotatingCommandRunnerProvider.<init>(RotatingCommandRunnerProvider.java:61)
         at com.splwg.base.support.cobol.host.CobolHostStartup.startup(CobolHostStartup.java:41)
         at com.splwg.base.support.context.ApplicationContext.initializeCobolRuntime(ApplicationContext.java:178)
         at com.splwg.base.support.context.ApplicationContext.initialize(ApplicationContext.java:158)
         at com.splwg.base.support.context.ContextFactory.buildContext(ContextFactory.java:144)
         at com.splwg.base.support.context.ContextFactory.buildContext(ContextFactory.java:65)
         at com.splwg.base.support.context.ContextFactory.createDefaultContext(ContextFactory.java:426)
         at com.splwg.base.web.startup.SPLWebStartup.initializeApplicationContext(SPLWebStartup.java:175)
         at com.splwg.base.web.startup.SPLWebStartup.contextInitialized(SPLWebStartup.java:63)
         at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3763)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4211)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
         at org.apache.catalina.core.StandardService.start(StandardService.java:450)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
    - 10:34:03,234 [main] ERROR (cobol.host.SocketStrategy) Unable to create socket for inter JVM communication on port 5506
    - 10:34:03,250 [main] INFO (cobol.host.RemoteJVMConnectionImpl) Connection to JVM 1 being shunned
    *-  10:34:03,250 [main] ERROR (cobol.host.RemoteJVMConnectionImpl) An exception has occurred calling the remote JVM*
    *-  10:34:03,250 [main] FATAL (support.context.ApplicationContext) Error initializing ApplicationContext*
    *-  10:34:03,250 [main] ERROR ([Catalina].[localhost].[]) Exception sending context initialized event to listener instance of class com.splwg.base.web.startup.SPLWebStartup*com.splwg.shared.common.LoggedException:
    The following stacked messages were reported as the LoggedException was rethrown:
    com.splwg.base.support.context.ApplicationContext.initialize(ApplicationContext.java:158): Error initializing ApplicationContext
    com.splwg.base.support.cobol.host.OptimizedRemoteExecuterStub.getStreamHolder(OptimizedRemoteExecuterStub.java:125): An exception has occurred calling the remote JVM
    com.splwg.base.support.cobol.host.SocketStrategy.unsafeOpen(SocketStrategy.java:123): Unable to create socket for inter JVM communication on port 5506
    The root LoggedException was: Unable to establish connection on port 5506 after waiting 20 seconds.
         at com.splwg.shared.common.LoggedException.wrap(LoggedException.java:197)
         at com.splwg.shared.common.LoggedException.wrap(LoggedException.java:85)
         at com.splwg.base.support.cobol.host.SocketStrategy.handleConnectionException(SocketStrategy.java:134)
         at com.splwg.base.support.cobol.host.SocketStrategy.unsafeOpen(SocketStrategy.java:123)
         at com.splwg.base.support.cobol.host.SocketStrategy.open(SocketStrategy.java:103)
         at com.splwg.base.support.cobol.host.OptimizedRemoteExecuterStub.createNewHolder(OptimizedRemoteExecuterStub.java:162)
         at com.splwg.base.support.cobol.host.OptimizedRemoteExecuterStub.getStreamHolder(OptimizedRemoteExecuterStub.java:125)
         at com.splwg.base.support.cobol.host.OptimizedRemoteExecuterStub.invoke(OptimizedRemoteExecuterStub.java:46)
         at com.splwg.base.support.cobol.host.RemoteRunnerImpl.invoke(RemoteRunnerImpl.java:89)
         at com.splwg.base.support.cobol.host.RemoteJVMConnectionImpl.createRemoteRunner(RemoteJVMConnectionImpl.java:148)
         at com.splwg.base.support.cobol.host.RemoteJVMConnectionImpl.<init>(RemoteJVMConnectionImpl.java:67)
         at com.splwg.base.support.cobol.host.RemoteJVMFactoryImpl.addConnection(RemoteJVMFactoryImpl.java:83)
         at com.splwg.base.support.cobol.host.RotatingCommandRunnerProvider.addNewConnection(RotatingCommandRunnerProvider.java:135)
         at com.splwg.base.support.cobol.host.RotatingCommandRunnerProvider.addNecessaryConnections(RotatingCommandRunnerProvider.java:121)
         at com.splwg.base.support.cobol.host.RotatingCommandRunnerProvider.<init>(RotatingCommandRunnerProvider.java:61)
         at com.splwg.base.support.cobol.host.CobolHostStartup.startup(CobolHostStartup.java:41)
         at com.splwg.base.support.context.ApplicationContext.initializeCobolRuntime(ApplicationContext.java:178)
         at com.splwg.base.support.context.ApplicationContext.initialize(ApplicationContext.java:158)
         at com.splwg.base.support.context.ContextFactory.buildContext(ContextFactory.java:144)
         at com.splwg.base.support.context.ContextFactory.buildContext(ContextFactory.java:65)
         at com.splwg.base.support.context.ContextFactory.createDefaultContext(ContextFactory.java:426)
         at com.splwg.base.web.startup.SPLWebStartup.initializeApplicationContext(SPLWebStartup.java:175)
         at com.splwg.base.web.startup.SPLWebStartup.contextInitialized(SPLWebStartup.java:63)
         at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3763)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4211)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
         at org.apache.catalina.core.StandardService.start(StandardService.java:450)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
    Caused by: java.net.ConnectException: Error: Could not open pipe
    caused by system error: The system cannot find the file specified.
         at com.splwg.base.support.cobol.host.sockets.WindowsPipeSocket.connectToPipe(Native Method)
    can anyone please help me out to resolve this issue.
    Thanks,
    Fawaz

    Hi,
    Have you tried to restart the SPL service again and again? And sometime i use to get these OptimizedRemoteExecuterStub.getStreamHolder(OptimizedRemoteExecuterStub.java:125): An exception has occurred calling the remote JVM exception if the machine is occupying more memory....
    Try to restart it again.

  • Error in starting tomcat

    lately i was desigining a web application..
    and was trying to display an html page..
    for the first ime i started the tomcat5.0 and as usual typed the pages address(http:\\localhost:8080\BV\frm1.html)
    the page was dispalyed without any problems..
    then had to change something in html page..
    so after done with the editing..
    i had to restart my machine for somem reasons...
    and then again o tried the same thing..
    i'm getting the error..
    HTTP Status 404 - /BV/frm1.html
    type Status report
    message /BV/frm1.html
    description The requested resource (/BV/frm1.html) is not available.
    Apache Tomcat/5.0.28
    i have noticed..whenever i start the tomcat i 'm geting some exceptions..
    Oct 5, 2004 5:09:34 PM org.apache.coyote.http11.Http11Protocol init
    SEVERE: Error initializing endpoint
    java.net.BindException: Address already in use: JVM_Bind:8080
    at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoi
    nt.java:264)
    at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:137)
    at org.apache.coyote.tomcat5.CoyoteConnector.initialize(CoyoteConnector.
    java:1429)
    at org.apache.catalina.core.StandardService.initialize(StandardService.j
    ava:609)
    at org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
    a:2384)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:507)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:528)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:250)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:424)
    Oct 5, 2004 5:09:35 PM org.apache.catalina.startup.Catalina load
    SEVERE: Catalina.start
    LifecycleException: Protocol handler initialization failed: java.net.BindExcept
    ion: Address already in use: JVM_Bind:8080
    at org.apache.coyote.tomcat5.CoyoteConnector.initialize(CoyoteConnector.
    java:1431)
    at org.apache.catalina.core.StandardService.initialize(StandardService.j
    ava:609)
    at org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
    a:2384)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:507)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:528)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:250)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:424)
    Oct 5, 2004 5:09:36 PM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 9355 ms
    Oct 5, 2004 5:09:37 PM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Oct 5, 2004 5:09:37 PM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/5.0.28
    Oct 5, 2004 5:09:37 PM org.apache.catalina.core.StandardHost start
    INFO: XML validation disabled
    Oct 5, 2004 5:09:37 PM org.apache.catalina.core.StandardHost getDeployer
    INFO: Create Host deployer for direct deployment ( non-jmx )
    Oct 5, 2004 5:09:37 PM org.apache.catalina.core.StandardHostDeployer install
    INFO: Processing Context configuration file URL file:C:\Tomcat 5.0\conf\Catalina
    \localhost\balancer.xml
    Oct 5, 2004 5:09:47 PM org.apache.catalina.core.StandardHostDeployer install
    INFO: Processing Context configuration file URL file:C:\Tomcat 5.0\conf\Catalina
    \localhost\admin.xml
    Oct 5, 2004 5:09:49 PM org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=tru
    e
    Oct 5, 2004 5:09:49 PM org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNul
    l=true
    Oct 5, 2004 5:09:53 PM org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', retur
    nNull=true
    Oct 5, 2004 5:10:03 PM org.apache.catalina.core.StandardHostDeployer install
    INFO: Processing Context configuration file URL file:C:\Tomcat 5.0\conf\Catalina
    \localhost\manager.xml
    Oct 5, 2004 5:10:04 PM org.apache.catalina.core.StandardHostDeployer install
    INFO: Installing web application at context path from URL file:C:\Tomcat 5.0\we
    bapps\ROOT
    Oct 5, 2004 5:10:04 PM org.apache.catalina.core.StandardHostDeployer install
    INFO: Installing web application at context path /tomcat-docs from URL file:C:\T
    omcat 5.0\webapps\tomcat-docs
    Oct 5, 2004 5:10:05 PM org.apache.catalina.core.StandardHostDeployer install
    INFO: Installing web application at context path /jsp-examples from URL file:C:\
    Tomcat 5.0\webapps\jsp-examples
    Oct 5, 2004 5:10:06 PM org.apache.catalina.core.StandardHostDeployer install
    INFO: Installing web application at context path /servlets-examples from URL fil
    e:C:\Tomcat 5.0\webapps\servlets-examples
    Oct 5, 2004 5:10:07 PM org.apache.catalina.core.StandardHostDeployer install
    INFO: Installing web application at context path /webdav from URL file:C:\Tomcat
    5.0\webapps\webdav
    Oct 5, 2004 5:10:07 PM org.apache.catalina.core.StandardHostDeployer install
    INFO: Installing web application at context path /ch1 from URL file:C:\Tomcat 5.
    0\webapps\ch1
    Oct 5, 2004 5:10:08 PM org.apache.catalina.core.StandardHostDeployer install
    INFO: Installing web application at context path /BV from URL file:C:\Tomcat 5.0
    \webapps\BV
    Oct 5, 2004 5:10:08 PM org.apache.commons.digester.Digester fatalError
    SEVERE: Parse Fatal Error at line 1 column 1: Content is not allowed in prolog.
    org.xml.sax.SAXParseException: Content is not allowed in prolog.
    at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Un
    known Source)
    at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispat
    ch(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
    known Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    at org.apache.commons.digester.Digester.parse(Digester.java:1548)
    at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextCo
    nfig.java:263)
    at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:62
    4)
    at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi
    g.java:216)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
    eSupport.java:119)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
    290)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
    .java:823)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80
    7)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
    at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep
    loyer.java:277)
    at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
    at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
    ava:701)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
    :349)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
    eSupport.java:119)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478
    at org.apache.catalina.core.StandardService.start(StandardService.java:4
    80)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:231
    3)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
    Oct 5, 2004 5:10:09 PM org.apache.catalina.startup.ContextConfig applicationConf
    ig
    SEVERE: Parse error in application web.xml
    org.xml.sax.SAXParseException: Content is not allowed in prolog.
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    at org.apache.commons.digester.Digester.parse(Digester.java:1548)
    at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextCo
    nfig.java:263)
    at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:62
    4)
    at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi
    g.java:216)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
    eSupport.java:119)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
    290)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
    .java:823)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80
    7)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
    at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep
    loyer.java:277)
    at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
    at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
    ava:701)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
    :349)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
    eSupport.java:119)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478
    at org.apache.catalina.core.StandardService.start(StandardService.java:4
    80)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:231
    3)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
    Oct 5, 2004 5:10:09 PM org.apache.catalina.startup.ContextConfig applicationConf
    ig
    SEVERE: Occurred at line 1 column 1
    Oct 5, 2004 5:10:09 PM org.apache.catalina.startup.ContextConfig start
    SEVERE: Marking this application unavailable due to previous error(s)
    Oct 5, 2004 5:10:09 PM org.apache.catalina.core.StandardContext start
    SEVERE: Error getConfigured
    Oct 5, 2004 5:10:09 PM org.apache.catalina.core.StandardContext start
    SEVERE: Context startup failed due to previous errors
    Oct 5, 2004 5:10:10 PM org.apache.coyote.http11.Http11Protocol start
    INFO: Starting Coyote HTTP/1.1 on http-8080
    Oct 5, 2004 5:10:11 PM org.apache.jk.common.ChannelSocket init
    INFO: JK2: ajp13 listening on /0.0.0.0:8009
    Oct 5, 2004 5:10:11 PM org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=20/371 config=C:\Tomcat 5.0\conf\jk2.properties
    Oct 5, 2004 5:10:12 PM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 36037 ms
    cud my problem be due to this reason..
    do i have to reinstall tomcat..or is there any way to solve it

    hi,
    can anyone help me in this case...
    i' working on linux platform....
    when i start the web server i get the following msg....
    can u figure out the reason...
    Feb 8, 2005 10:48:25 AM org.apache.xindice.server.XindiceServlet init
    INFO: Database successfully started
    Feb 8, 2005 10:48:25 AM org.apache.catalina.core.StandardHostDeployer install
    INFO: Processing Context configuration file URL file:/usr/local/src/jwsdp-1.3/conf/Catalina/localhost/admin.xml
    Feb 8, 2005 10:48:25 AM org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
    Feb 8, 2005 10:48:25 AM org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
    Feb 8, 2005 10:48:26 AM org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=true
    Feb 8, 2005 10:48:27 AM org.apache.catalina.core.StandardHostDeployer install
    INFO: Processing Context configuration file URL file:/usr/local/src/jwsdp-1.3/conf/Catalina/localhost/manager.xml
    Feb 8, 2005 10:48:28 AM org.apache.catalina.core.StandardHostDeployer install
    INFO: Installing web application at context path from URL file:/usr/local/src/jwsdp-1.3/webapps/ROOT
    Feb 8, 2005 10:48:28 AM org.apache.catalina.core.StandardHostDeployer install
    INFO: Installing web application at context path /jsp-examples from URL file:/usr/local/src/jwsdp-1.3/webapps/jsp-examples
    ContextListener: attributeAdded('com.sun.faces.ConfigBase', 'com.sun.faces.config.ConfigBase@6e41b5')
    Feb 8, 2005 10:48:28 AM org.apache.catalina.core.StandardHostDeployer install
    INFO: Installing web application at context path /servlets-examples from URL file:/usr/local/src/jwsdp-1.3/webapps/servlets-examples
    ContextListener: attributeAdded('com.sun.faces.ConfigBase', 'com.sun.faces.config.ConfigBase@17b1d64')
    Feb 8, 2005 10:48:29 AM org.apache.catalina.core.StandardHostDeployer install
    INFO: Installing web application at context path /agent from URL file:/usr/local/src/jwsdp-1.3/webapps/agent
    Feb 8, 2005 10:48:29 AM org.apache.catalina.startup.ContextConfig applicationConfig
    SEVERE: Parse error in application web.xml
    java.net.NoRouteToHostException: No route to host
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
    at java.net.Socket.connect(Socket.java:452)
    at java.net.Socket.connect(Socket.java:402)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:402)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:618)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:306)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:267)
    at sun.net.www.http.HttpClient.New(HttpClient.java:339)
    at sun.net.www.http.HttpClient.New(HttpClient.java:320)
    at sun.net.www.http.HttpClient.New(HttpClient.java:315)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:512)
    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:489)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:617)
    at java.net.URL.openStream(URL.java:913)
    at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:947)
    at org.apache.xerces.impl.XMLEntityManager.startEntity(XMLEntityManager.java:893)
    at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(XMLEntityManager.java:860)
    at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerImpl.java:288)
    at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(XMLDocumentScannerImpl.java:911)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:348)
    at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:539)
    at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:595)
    at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1125)
    at org.apache.commons.digester.Digester.parse(Digester.java:1548)
    at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.java:305)
    at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:748)
    at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:257)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4064)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:868)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:852)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:614) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:319)
    at org.apache.catalina.core.StandardHost.install(StandardHost.java:835)
    at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:729)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:479)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1008)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:399)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1135) at org.apache.catalina.core.StandardHost.start(StandardHost.java:792)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1127) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:502)
    at org.apache.catalina.core.StandardService.start(StandardService.java:519)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:2311)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:577)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:328)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)
    Feb 8, 2005 10:48:29 AM org.apache.catalina.startup.ContextConfig start
    SEVERE: Marking this application unavailable due to previous error(s)
    Feb 8, 2005 10:48:29 AM org.apache.catalina.core.StandardContext start
    SEVERE: Error getConfigured
    Feb 8, 2005 10:48:29 AM org.apache.catalina.core.StandardContext start
    SEVERE: Context startup failed due to previous errors
    Feb 8, 2005 10:48:29 AM org.apache.coyote.http11.Http11Protocol start
    INFO: Starting Coyote HTTP/1.1 on port 8080
    Feb 8, 2005 10:48:29 AM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 11485 ms

  • Can not compile the jsp in Tomcat 4

    Hello anyone
    Now I use jdk1.4 and Tomcat 4.0.4, and put in the directory d:\j2sdk and d:\tomcat. Even I set the classpath as follow, I still compile jsp.
    SET CLASSPATH=.;D:\j2sdk\lib\tools.jar;D:\tomcat\common\lib\servlet.jar
    but at before, i can run it at Tomcat 3.2.
    type Exception report
    message Internal Server Error
    description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
    D:\tomcat\work\Standalone\localhost\_\userCounter$jsp.java:4: Class or interface declaration expected.
    import javax.servlet.*;
    ^
    D:\tomcat\work\Standalone\localhost\_\userCounter$jsp.java:10: Superclass org.apache.jsp.HttpJspBase of class org.apache.jsp.userCounter$jsp not found.
    public class userCounter$jsp extends HttpJspBase {
    ^
    2 errors, 1 warning
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:285)
         at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
         at java.lang.Thread.run(Thread.java:536)
    pls help, thank you very much!

    This is a new problem with jdk1.4 when compiling with tomcat.
    The solution is to ensure that any classes in WEB-INF/classes are in a package structure and the relevant jsp calls the same using the package name.
    best
    kev

Maybe you are looking for

  • XI exception in RFC adapter

    Hi, I have CRM (RFC) -> XI -> Third Party (HTTP call) scenario. Its a synchronous call in which the third party send a response back. My question is as below - Suppose call gets triggered from CRM successfully and it reaches the third party. The thir

  • Multi-pass tv shows

    Anyone know how long it takes for episodes to become available for download? Im still waiting for a show that aired Monday 9/24/07. I have a multi-pass for a soap.

  • Audit Vault and DB Firewall Design

    I have and application (JAVA Based) connected to the database 11g using JDBC, I am going to implement Audit Vault and DB firewall R12 for three reasons: 1. monitoring the traffic 2. blocking un wanted SQL statements. 3. blocking un wanted IPs/Users O

  • Problem calling SAP webservice ECC_SRVCREQCRTRC1

    Hi, I want to call an SAP webservice to create a service notification from an Adobe Flex application. For this I use a standard SAP enterprise web service "ECC_SRVCREQCRTRC1". The web servce call is working and the notification is created. Now I also

  • Quicktime 7.74 Silent install

    Hi, I'm having issues installing QuickTime 7.74 using quicktime.msi. On a fresh VM wi no traces of Quicktime at all I get this error (newer version already installed). AppleApplicationSupport.msi /qn works all right. This happens on all system I try