JSP 2.0 running in Tomcat /webapps

Hi Everyone,
I've been racking my mind on figuring out how to run JSP 2.0 pages outside of Tomcat's "jsp-examples "directory. (running Tomcat 5.0.19)
Initially, I created a subdirectory in the webapps directory called "jcce". In "jcce", I wrote a test page using JSP 2.0's Expression Language. The file included the code:
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<% String s = "Work! Work! Work!";
pageContext.setAttribute("name", s); %>
<c:out value='${"name"}' />
However, the page displays ${"name"}. When I place the same page inside a subdirectory of the "jsp-examples" directory, it displays "Work! Work! Work!"
I looked at the lib directories in each WEB-INF directories and they contain the same jar files. I'm guessing it has something to do with configuring the web.xml file. The problem is that I've read so many tutorials on JSP 2.0 (even the specs), www.apache.org (jakarta project), JSTL, etc. and no one has mentioned how to configure the web.xml file appropriately to run JSP 2.0 pages on Tomcat.
So my questions are:
1. How can I deploy an application independently of the "jsp-examples" directory so that my JSP pages can takes advantage of the JSP 2.0 tag libraries?
2. If I have to configure the web.xml file, can someone send me a simple configuration for the test code above?
BTW, I've redeployed, and restarted Tomcat to see if any configuration changes would run the JSP 2.0 engine, but no success.
Please help!
Thanks,
Bernard

You're right, the web.xml file is probably the culprit.
To retain backwards compatibility with web applications. EL is disabled in certain cases. (JSP spec section 3.3.2)
There is a new page directive
<%@ page isELIgnored="true|false"%>
(Try putting <%@ page isELIgnored="false"%> at the top of your page to see if it will work with it)
There is also a setting in the web.xml
Check your web.xml file - if the DTD is less than version 2.4 and you haven't specified EL handling in web.xml or the page directive, EL is disabled by default.
This should be the text at the top of web.xml.
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
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/web-app_2_4.xsd"
version="2.4">
Hope this helps,
evnafets

Similar Messages

  • How can I remove a file on server w/ my JSP app running on Tomcat 7 ?

    First of all, I'm posting here because I found it the closest to java web development in the forums listing.
    How can I remove a file on the server side with my JSP app running on Tomcat 7 ? I did it in a JSE app by changing permissions, but how can I do it for a simple JSP app ?
    My code is
    public static void excluirArquivos(String nomeArquivoExcluido) {
              File arquivoExcluido = new File (nomeArquivoExcluido);
              arquivoExcluido.setWritable(true, true);
              SecurityManager sm = new SecurityManager();
              try {
                   sm.checkDelete(arquivoExcluido.getAbsolutePath());
                   System.gc();
                   if (arquivoExcluido.delete()) System.out.println("File '" + nomeArquivoExcluido + "' successfully removed.");
                   else System.out.println("File '" + nomeArquivoExcluido + "' wasn't removed somehow.");
              } catch (SecurityException se) {
                   System.out.println("File '" + nomeArquivoExcluido + "' can't be excluded. There is no permissions.");
         }And it always falls on the catch statement.

    899238 wrote:
    How can I remove a file on the server side with my JSP app running on Tomcat 7 ? I did it in a JSE app by changing permissions, but how can I do it for a simple JSP app ?1. make sure that the JVM has the (filesystem) rights to be able to remove said file
    2. make sure the file is in fact not locked (for example, opened by another process)
    3. use File.delete()
    There is no guarantee that you can delete a file, you can only make an attempt. There can be any number of reasons, most if not all of them not related to code, that the deletion of a file does not work.

  • Running JSP 2.0 pages on Tomcat 4.1

    I have web-application written in JSP 2.0. I use custom tags in tag-files and EL.
    How can I run this application on hoster's Tomcat 4.1 server.

    But hoster do not have Tomcat 5 :( only Tomcat 4.1
    May I run JSP 2.0 app on Tomcat 4.1 with some tricks

  • Help needed get JSF final release running on tomcat 5

    Hi there,
    I know my topic seems to be a easy thing which is often discusseb but I tell you it's not. And after searching the forum an the web... it's driving me crazy I want to make some development and tests but I can' get my stuff running on tomcat 5 and jsf final release.
    This is my last error message... seems like tomcat don't know anything about jsf...
    my directories---------------------------
    my webbapp
    -- WEB-INF
    classes
    lib
    scr
    web.xml
    faces-config.xml
    WEB-INF
    commons-beanutils.jar
    commons-collections.jar
    commons-digester.jar
    commons-logging.jar
    jsf-api.jar
    jsf-impl.jar
    jstl.jar
    standard.jar
    web.xml ------------------------------------------------------------------------
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <display-name>MyWeb</display-name>
    <description>
    FElix
    </description>
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>client</param-value>
    </context-param>
    <!-- ############# Faces Servlet ############# -->
    <servlet>
    <servlet-name>JavaServer Faces Servlet</servlet-name>
    <servlet-class>
    javax.faces.webapp.FacesServlet
    </servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <!-- ############# Mapping ############### -->
    <servlet-mapping>
    <servlet-name>JavaServer Faces Servlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    <listener>
    <listener-class>
    com.sun.faces.config.ConfigureListener
    </listener-class>
    </listener>
    </web-app>
    faces-config.xml---------------------------------
    <?xml version="1.0"?>
    <!DOCTYPE faces-config PUBLIC
    "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
    "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
    <faces-config>
    <navigation-rule>
    <from-view-id>/eingabe.jsp</from-view-id>
    <navigation-case>
    <from-outcome>success</from-outcome>
    <to-view-id>/ausgabe.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>
    <managed-bean>
    <managed-bean-name>Square</managed-bean-name>
    <managed-bean-class>src.com.edu.jsf.bean.SquareBean</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    </managed-bean>
    </faces-config>
    ERROR - MESSAGE
    org.apache.jasper.JasperException: /eingabe.jsp(19,3) No tag "input_number" defined in tag library imported with prefix "h"
    org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:83)
    org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:402)
    org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:236)
    org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1346)
    org.apache.jasper.compiler.Parser.parseElements(Parser.java:1598)
    org.apache.jasper.compiler.Parser.parseBody(Parser.java:1827)
    org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:1100)
    org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1405)
    org.apache.jasper.compiler.Parser.parseElements(Parser.java:1598)
    org.apache.jasper.compiler.Parser.parseBody(Parser.java:1827)
    org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:1100)
    org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1405)
    org.apache.jasper.compiler.Parser.parseElements(Parser.java:1598)
    org.apache.jasper.compiler.Parser.parse(Parser.java:171)
    org.apache.jasper.compiler.ParserController.doParse(ParserController.java:258)
    org.apache.jasper.compiler.ParserController.parse(ParserController.java:139)
    org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:237)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:456)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:553)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
    com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:142)
    com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
    com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
    com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
    I really stuck so any help is appriciated...
    I also tried to put the jars in the common/lib
    but still not working...
    I tried to get it running with jwsdp ... but same s*** ...
    best regards
    Felix

    thanks....
    this means... everything was working and I better should have read the notes...
    I went back.... installed jwsdp1.3 and everything was fine...
    so I will give it a try... change the classes and at this time i use the right tags...
    but this will also work for the tomcat downloaded from the apache.org site?
    I only need the jar files in the jsf-1.0/lib file and the latest jstl-jars ---
    thanks again
    reagards felix

  • Can't run under Tomcat

    Hi;
    I'm having a similiar problem with Tomcat. I followed the instructions for the tutorial, using the existing tutorial. I have set Tomcat as my application server and when I Run the server starts - but it can't bring up the page.
    When I go to the Tomcat webapps dir - nothing has been added for the tutorial.
    What do I need to do to get it to deploy under Tomcat?
    thanks - dave

    What type of server configuration did you create (Window > Preferences > NitroX > Server Configuration > Edit - Configuration Tab)?
    FYI, NitroX takes care of deployment if default option "Auto-deployment" is selected otherwise you need to manually deploy the application. If you are not doing any custom configuration then go with the default selection "Auto-deployment"
    If you select "Manual deployment with existing configuration file" option, then you need to take care of deployment.
    Ex: The server.xml you are pointing to should contain a <Context..> element similar to the one below
    <Context debug="0" docBase="/<YourProjectDocBase>" path="" reloadable="true" />
    Or the best way would be to run your app selecting default "Auto-deployment" configuration and then copy the <Context..> element from m7.auto.server.xml file. (Check the first line in Console View for the path)
    NOTE: Please make sure to remove "workDir" entry from <Context..> element.
    For "Auto Deployment", check the first line in Console View for the location of JSP generated java files.
    FYI, the project location in workspace acts as docBase for running/debugging the application. The project as such does not get deployed to Tomcat/webapps.
    For more information please refer to Help > Help Contents > NitroX User Guide > Getting Started > NitroX Tour > Running and debugging the application

  • War file under tomcat/webapps (newbie)

    Quick question:
    I have a file myPrj.war and I place it under tomcat/webapps. I realize that tomcat creates a folder myPrj and I can run my application on the browser (so far so good). my question is this: say I made a revision to my application (therefore I have a new myPrj.war file) and I place the newly myPrj.jar on under the tomcat/webapps. Does tomcat 'know' that he should disregard the 'old' folder myPrj and create a new one (since there's a new myPrj.war)???
    thanks

    Generally speaking, If you replaced your java code or tag lib in jsp, you need to restart tomcat, otherwise, if you just made some changes to the basic html, you don't have to do so.

  • Tomcat WebApp Deployment question

    I am very new to tomcat and trying to get my very first web application up and running. This is the web app from the book Head First Servlet and JSP named Beer-v1
    Tomcat version: 5.0.28
    Platform: Windos 2000
    Problem:
    I have following structure
    c:\tomcat\webapps\Beer-v1\form.html
    c:\tomcat\webapps\Beer-v1\WEB-INF\web.xml
    c:\tomcat\webapps\Beer-v1\WEB-INF\classes\com\example\web\BeerSelect.class
    When I start the tomcat service and try to run my web app via IE
    http:/localhost:8080:/Beer-v1/form.html , it gives me resource could not be found error.
    If while tomcat is running, I create another folder under webapps and copy my form.html there and invoke it via IE it works fine. But if I stop and restart the tomcat service this also stops working.
    I know, I am doing something wrong and not setting some configuration files.
    Please help

    Sorry that was a typo. I am actually using this. I
    think localhost is fine as I can run the example
    applications which comes with tomcat just fine.
    Correct url:
    http:/localhost:8080/Beer-v1/form.html , it gives me
    resource could not be found error.Yes, you're correct. If the Tomcat welcome page is coming up with "localhost", then you're fine.
    Post the entire error.
    Look in the Tomcat logs. Sounds like you've either got a deployment problem or a syntax error in your web.xml that prevents Tomcat from starting the app.
    %

  • Can not get JSP examples to run

    I am able to use the example servlets, but I can not get the JSP examples to run. I get the error listed at the end of this message.
    I am using jdk1.3.x and TOMCAT Version 3.2.3
    Here is my classpath
    .;C:\jdk1.3\jre\lib\rt.jar;c:\jdk1.3\lib\tools.jar;C:\jakarta-tomcat\webapps\privilegesparadox;C:\jdk1.3jre\lib\ext\XML4J.JAR;C:\jdk1.3\jre\lib\ext\mm.mysql-2.0.4-bin.jar;C:\jdk1.3jre\lib\ext\mssqlserver.jar;C:\jdk1.3\jre\lib\ext\mail.jar;C:\jdk1.3jre\lib\ext\activation.jar;C:\Netscape\Servers\java\ldapjdk.jar
    I am running this on win2000. I have done several years of servlet work and now am needing to do JSP stuff. I can not get the examples to run... so any of my test stuff does not work either.
    Error: 500
    Location: /examples/jsp/dates/date.jsp
    Internal Servlet Error:
    javax.servlet.ServletException: sun/tools/javac/Main
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:508)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
         at org.apache.tomcat.core.Handler.service(Handler.java:287)
         at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
         at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
         at java.lang.Thread.run(Thread.java:484)
    Root cause:
    java.lang.NoClassDefFoundError: sun/tools/javac/Main
         at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:136)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
         at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
         at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
         at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:258)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:268)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
         at org.apache.tomcat.core.Handler.service(Handler.java:287)
         at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
         at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
         at java.lang.Thread.run(Thread.java:484)

    I don't get it... I have been using jdk 1.3.x for sometime... a year now. All seems fine with servlets and java applications I have created. What could be not there if all of this works?
    If reinstall the jdk over top of where is is now, would that be of any help? I will copy my /ext jar files to a temp area first so I can keep my jar files.
    Dean-O

  • SIGSEGV, JRE : 6.0_22-b04, libc_psr.so.1+0x1040: running Apache Tomcat

    Am encountering the following JVM problem on Solaris running Apache Tomcat with Atlassian Confluence. This problem DOES NOT occur on Windows XP or Windows Vista platforms running the same version of the JDK and same version of Apache Tomcat & Atlassian Confluence.
    Any thoughts on what is causing this?
    # A fatal error has been detected by the Java Runtime Environment:
    # SIGSEGV (0xb) at pc=0xff391040, pid=16575, tid=7
    # JRE version: 6.0_22-b04
    # Java VM: Java HotSpot(TM) Server VM (17.1-b03 mixed mode solaris-sparc )
    # Problematic frame:
    # C [libc_psr.so.1+0x1040] memset+0x140
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    --------------- T H R E A D ---------------
    Current thread (0x000c6800): JavaThread "CompilerThread0" daemon [_thread_in_native, id=7, stack(0]
    siginfo:si_signo=SIGSEGV: si_errno=0, si_code=1 (SEGV_MAPERR), si_addr=0x83000000
    Registers:
    O0=0x82c72170 O1=0x00000000 O2=0x7ffffff0 O3=0x00000030
    O4=0x7fc72140 O5=0x83000000 O6=0xab4fdb28 O7=0xfe602bec
    G1=0x00000004 G2=0x000000a0 G3=0x000000a0 G4=0x00e76a68
    G5=0x82c72170 G6=0x00000000 G7=0xfeeb2a00 Y=0x00000000
    PC=0xff391040 nPC=0xff391044
    Top of Stack: (sp=0xab4fdb28)
    0xab4fdb28: 82c72170 00000000 10000000 17fff400
    0xab4fdb38: 00000011 00000000 00000000 80000007
    0xab4fdb48: ab4fef50 00000010 80000000 0c000000
    0xab4fdb58: 0bfff400 42c72170 ab4fdb88 fe4f8128
    0xab4fdb68: 00000002 00000000 00007fff 00000000
    0xab4fdb78: 01cef6a0 0000000c 00915ee8 00000001
    0xab4fdb88: 0000007d 03626a11 fee554b8 00000003
    0xab4fdb98: 42c72170 06c4d421 0c000000 0c000000
    Instructions: (pc=0xff391040)
    0xff391030: 91 a0 00 40 95 a0 00 40 99 a0 00 40 9d a0 00 40
    0xff391040: c1 bb 5e 00 98 a3 20 40 18 4f ff fd 9a 03 60 40
    Stack: [0xab480000,0xab500000], sp=0xab4fdb28, free space=1f6ff391040k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    C [libc_psr.so.1+0x1040] memset+0x140
    V [libjvm.so+0xf8130]
    V [libjvm.so+0xfb60c]
    V [libjvm.so+0x183a44]
    V [libjvm.so+0x1cb89c]
    V [libjvm.so+0x41ba80]
    V [libjvm.so+0x1c5e80]
    V [libjvm.so+0x1c6d0c]
    V [libjvm.so+0x23c5b0]
    V [libjvm.so+0x825c28]
    V [libjvm.so+0x753a08]
    Current CompileTask:
    C2:5692 ! org.apache.velocity.runtime.directive.Foreach.render(Lorg/apache/velocity/context/Inte)
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    0x01875400 JavaThread "http-8080-32" daemon [_thread_blocked, id=80, stack(0xa7380000,0xa7400000)]
    0x0061f400 JavaThread "http-8080-31" daemon [_thread_blocked, id=79, stack(0xa7480000,0xa7500000)]
    0x0061c400 JavaThread "http-8080-30" daemon [_thread_blocked, id=78, stack(0xa7580000,0xa7600000)]
    0x019cf000 JavaThread "http-8080-29" daemon [_thread_blocked, id=77, stack(0xa7680000,0xa7700000)]
    0x0061c000 JavaThread "http-8080-28" daemon [_thread_blocked, id=76, stack(0xa7780000,0xa7800000)]
    0x00683000 JavaThread "http-8080-27" daemon [_thread_blocked, id=75, stack(0xa7880000,0xa7900000)]
    0x01e41000 JavaThread "http-8080-26" daemon [_thread_blocked, id=74, stack(0xa7980000,0xa7a00000)]
    0x019d0400 JavaThread "http-8080-25" daemon [_thread_blocked, id=73, stack(0xa7a80000,0xa7b00000)]
    0x00aec000 JavaThread "http-8080-24" daemon [_thread_blocked, id=72, stack(0xa7b80000,0xa7c00000)]
    0x00727000 JavaThread "http-8080-23" daemon [_thread_blocked, id=71, stack(0xa7c80000,0xa7d00000)]
    0x00756400 JavaThread "http-8080-22" daemon [_thread_blocked, id=70, stack(0xa7d80000,0xa7e00000)]
    0x0129e400 JavaThread "MultiThreadedHttpConnectionManager cleanup" daemon [_thread_blocked, id=69]
    0x002aec00 JavaThread "http-8080-21" daemon [_thread_blocked, id=68, stack(0xa7f80000,0xa8000000)]
    0x017abc00 JavaThread "http-8080-20" daemon [_thread_blocked, id=67, stack(0xa8080000,0xa8100000)]
    0x0146e000 JavaThread "http-8080-19" daemon [_thread_blocked, id=66, stack(0xa8180000,0xa8200000)]
    0x006f1400 JavaThread "http-8080-18" daemon [_thread_blocked, id=65, stack(0xa8280000,0xa8300000)]
    0x006ef400 JavaThread "http-8080-17" daemon [_thread_blocked, id=64, stack(0xa8380000,0xa8400000)]
    0x00a86000 JavaThread "http-8080-16" daemon [_thread_blocked, id=63, stack(0xa8480000,0xa8500000)]
    0x01aaac00 JavaThread "http-8080-15" daemon [_thread_blocked, id=62, stack(0xa8580000,0xa8600000)]
    0x0054b800 JavaThread "DefaultSlideCacheManager:thread-1" [_thread_blocked, id=61, stack(0xa86800]
    0x0009d800 JavaThread "http-8080-14" daemon [_thread_blocked, id=60, stack(0xa8780000,0xa8800000)]
    0x01bc4800 JavaThread "http-8080-13" daemon [_thread_blocked, id=59, stack(0xa8880000,0xa8900000)]
    0x0264f000 JavaThread "http-8080-12" daemon [_thread_blocked, id=58, stack(0xa8980000,0xa8a00000)]
    0x0032b400 JavaThread "http-8080-11" daemon [_thread_blocked, id=57, stack(0xa8a80000,0xa8b00000)]
    0x01aa9400 JavaThread "http-8080-10" daemon [_thread_blocked, id=56, stack(0xa8b80000,0xa8c00000)]
    0x0167b000 JavaThread "http-8080-9" daemon [_thread_blocked, id=55, stack(0xa8c80000,0xa8d00000)]
    0x007aec00 JavaThread "http-8080-8" daemon [_thread_blocked, id=54, stack(0xa8e80000,0xa8f00000)]
    0x01d63400 JavaThread "http-8080-7" daemon [_thread_blocked, id=53, stack(0xa8f80000,0xa9000000)]
    0x007dd400 JavaThread "http-8080-6" daemon [_thread_blocked, id=52, stack(0xa9280000,0xa9300000)]
    0x023b2800 JavaThread "http-8080-5" daemon [_thread_blocked, id=51, stack(0xa9e80000,0xa9f00000)]
    0x0028e800 JavaThread "http-8080-4" daemon [_thread_blocked, id=50, stack(0xa9180000,0xa9200000)]
    0x00e32800 JavaThread "http-8080-3" daemon [_thread_blocked, id=49, stack(0xa9780000,0xa9800000)]
    0x029c0000 JavaThread "http-8080-2" daemon [_thread_blocked, id=48, stack(0xa9080000,0xa9100000)]
    0x0083f800 JavaThread "http-8080-1" daemon [_thread_blocked, id=47, stack(0xa9680000,0xa9700000)]
    0x0143c800 JavaThread "http-8080-Acceptor-0" daemon [_thread_in_native, id=46, stack(0xa9380000,0]
    0x01d86c00 JavaThread "ContainerBackgroundProcessor[StandardEngine[Standalone]]" daemon [_thread_]
    0x01244400 JavaThread "com.google.common.base.internal.Finalizer" daemon [_thread_blocked, id=40,]
    0x01d98400 JavaThread "Timer-2" daemon [_thread_blocked, id=29, stack(0xa9980000,0xa9a00000)]
    0x0019f000 JavaThread "Timer-1" daemon [_thread_blocked, id=28, stack(0xa9a80000,0xa9b00000)]
    0x01762800 JavaThread "FelixPackageAdmin" daemon [_thread_blocked, id=27, stack(0xa9b80000,0xa9c0]
    0x01f2d000 JavaThread "FelixStartLevel" daemon [_thread_blocked, id=26, stack(0xa9c80000,0xa9d000]
    0x01f2d800 JavaThread "FelixDispatchQueue" daemon [_thread_blocked, id=25, stack(0xa9d80000,0xa9e]
    0x01da5800 JavaThread "Timer-0" daemon [_thread_blocked, id=23, stack(0xa9f80000,0xaa000000)]
    0x00ab6c00 JavaThread "DefaultQuartzScheduler_QuartzSchedulerThread" [_thread_blocked, id=22, sta]
    0x01576c00 JavaThread "DefaultQuartzScheduler_Worker-10" [_thread_blocked, id=21, stack(0xaa18000]
    0x01575800 JavaThread "DefaultQuartzScheduler_Worker-9" [_thread_blocked, id=20, stack(0xaa280000]
    0x01a26800 JavaThread "DefaultQuartzScheduler_Worker-8" [_thread_blocked, id=19, stack(0xaa380000]
    0x0042ac00 JavaThread "DefaultQuartzScheduler_Worker-7" [_thread_blocked, id=18, stack(0xaa480000]
    0x00cd3c00 JavaThread "DefaultQuartzScheduler_Worker-6" [_thread_blocked, id=17, stack(0xaa580000]
    0x0030e400 JavaThread "DefaultQuartzScheduler_Worker-5" [_thread_blocked, id=16, stack(0xaa680000]
    0x0096c800 JavaThread "DefaultQuartzScheduler_Worker-4" [_thread_blocked, id=15, stack(0xaa780000]
    0x01d41800 JavaThread "DefaultQuartzScheduler_Worker-3" [_thread_blocked, id=14, stack(0xaa880000]
    0x017e2400 JavaThread "DefaultQuartzScheduler_Worker-2" [_thread_blocked, id=13, stack(0xaa980000]
    0x0139ac00 JavaThread "DefaultQuartzScheduler_Worker-1" [_thread_blocked, id=12, stack(0xaaa80000]
    0x01719400 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=11, stack(0xaab80000,0xaac000]
    0x000d3c00 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=9, stack(0xab280000,0xab3]
    0x000d1800 JavaThread "CompilerThread1" daemon [_thread_blocked, id=8, stack(0xab380000,0xab40000]
    =>0x000c6800 JavaThread "CompilerThread0" daemon [_thread_in_native, id=7, stack(0xab480000,0xab500]
    0x000c5000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=6, stack(0xab580000,0xab600]
    0x000afc00 JavaThread "Finalizer" daemon [_thread_blocked, id=5, stack(0xab680000,0xab700000)]
    0x000ae400 JavaThread "Reference Handler" daemon [_thread_blocked, id=4, stack(0xab780000,0xab800]
    0x00030800 JavaThread "main" [_thread_in_native, id=2, stack(0xfe300000,0xfe380000)]
    Other Threads:
    0x000ab800 VMThread [stack: 0xab880000,0xab900000] [id=3]
    0x000d5c00 WatcherThread [stack: 0xab180000,0xab200000] [id=10]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    def new generation total 314560K, used 250160K [0xabc00000, 0xc1150000, 0xc1150000)
    eden space 279616K, 83% used [0xabc00000, 0xba030b60, 0xbcd10000)
    from space 34944K, 47% used [0xbcd10000, 0xbdd2b760, 0xbef30000)
    to space 34944K, 0% used [0xbef30000, 0xbef30000, 0xc1150000)
    tenured generation total 699072K, used 326662K [0xc1150000, 0xebc00000, 0xebc00000)
    the space 699072K, 46% used [0xc1150000, 0xd5051b68, 0xd5051c00, 0xebc00000)
    compacting perm gen total 95744K, used 95657K [0xebc00000, 0xf1980000, 0xfbc00000)
    the space 95744K, 99% used [0xebc00000, 0xf196a7a8, 0xf196a800, 0xf1980000)
    No shared spaces configured.
    Dynamic libraries:
    0x00010000 /usr/jdk/instances/jdk1.6.0/bin/java
    0xff3a0000 /lib/libthread.so.1
    0xff370000 /usr/jdk/instances/jdk1.6.0/bin/../jre/lib/sparc/jli/libjli.so
    0xff350000 /lib/libdl.so.1
    0xff200000 /lib/libc.so.1
    0xff390000 /platform/SUNW,Sun-Fire-V210/lib/libc_psr.so.1
    0xfe400000 /usr/jdk/instances/jdk1.6.0/jre/lib/sparc/server/libjvm.so
    0xff1d0000 /lib/libsocket.so.1
    0xff1f0000 /usr/lib/libsched.so.1
    0xff1b0000 /lib/libm.so.1
    0xff180000 /usr/lib/libCrun.so.1
    0xff160000 /lib/libdoor.so.1
    0xff080000 /lib/libnsl.so.1
    0xfef80000 /lib/libm.so.2
    0xff050000 /lib/libscf.so.1
    0xff140000 /lib/libuutil.so.1
    0xff030000 /lib/libgen.so.1
    0xfef50000 /lib/libmd.so.1
    0xfef30000 /platform/SUNW,Sun-Fire-V210/lib/libmd_psr.so.1
    0xfef10000 /lib/libmp.so.2
    0xfe3d0000 /usr/jdk/instances/jdk1.6.0/jre/lib/sparc/libverify.so
    0xfe390000 /usr/jdk/instances/jdk1.6.0/jre/lib/sparc/libjava.so
    0xfe2e0000 /usr/jdk/instances/jdk1.6.0/jre/lib/sparc/native_threads/libhpi.so
    0xfe290000 /usr/jdk/instances/jdk1.6.0/jre/lib/sparc/libzip.so
    0xfe1e0000 /usr/lib/locale/en_US.ISO8859-1/en_US.ISO8859-1.so.3
    0xfe040000 /usr/jdk/instances/jdk1.6.0/jre/lib/sparc/libmanagement.so
    0xfbfa0000 /usr/jdk/instances/jdk1.6.0/jre/lib/sparc/libnet.so
    0xaaff0000 /usr/jdk/instances/jdk1.6.0/jre/lib/sparc/libj2pkcs11.so
    0xaafb0000 /usr/lib/libpkcs11.so
    0xaaf90000 /usr/lib/libcryptoutil.so.1
    0xaaf30000 /usr/lib/security/pkcs11_softtoken_extra.so
    0xaad80000 /usr/jdk/instances/jdk1.6.0/jre/lib/sparc/libawt.so
    0xaad60000 /usr/jdk/instances/jdk1.6.0/jre/lib/sparc/headless/libmawt.so
    0xaac80000 /usr/jdk/instances/jdk1.6.0/jre/lib/sparc/libfontmanager.so
    0xaad40000 /usr/jdk/instances/jdk1.6.0/jre/lib/sparc/libnio.so
    0xaad20000 /lib/librt.so.1
    0xaac60000 /lib/libaio.so.1
    0xaac40000 /usr/lib/libsendfile.so.1
    0xa9830000 /usr/jdk/instances/jdk1.6.0/jre/lib/sparc/libjpeg.so
    0xa9740000 /usr/jdk/instances/jdk1.6.0/jre/lib/sparc/libdcpr.so
    0xa9310000 /usr/jdk/instances/jdk1.6.0/jre/lib/sparc/libcmm.so
    VM Arguments:
    jvm_args: -Djava.util.logging.config.file=/apps/atlassian/confluence-3.4-std/conf/logging.propertie
    java_command: org.apache.catalina.startup.Bootstrap start
    Launcher Type: SUN_STANDARD
    Environment Variables:
    JAVA_HOME=/usr/java
    PATH=/apps/oracle/product/11.2.0/bin:/usr/java/bin:/usr/sbin:/usr/local/bin:/usr/bin
    LD_LIBRARY_PATH=/usr/jdk/instances/jdk1.6.0/jre/lib/sparc/server:/usr/jdk/instances/jdk1.6.0/jre/lic
    SHELL=/bin/bash
    Signal Handlers:
    SIGSEGV: [libjvm.so+0x87b414], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
    SIGBUS: [libjvm.so+0x87b414], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
    SIGFPE: [libjvm.so+0x1c4234], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
    SIGPIPE: [libjvm.so+0x1c4234], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
    SIGXFSZ: [libjvm.so+0x1c4234], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
    SIGILL: [libjvm.so+0x1c4234], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
    SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
    SIGUSR2: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
    SIGQUIT: [libjvm.so+0x75619c], sa_mask[0]=0xffbffeff, sa_flags=0x00000004
    SIGHUP: [libjvm.so+0x75619c], sa_mask[0]=0xffbffeff, sa_flags=0x00000004
    SIGINT: SIG_IGN, sa_mask[0]=0x00000000, sa_flags=0x00000000
    SIGTERM: [libjvm.so+0x75619c], sa_mask[0]=0xffbffeff, sa_flags=0x00000004
    SIG39: [libjvm.so+0x759bc8], sa_mask[0]=0x00000000, sa_flags=0x00000008
    SIG40: [libjvm.so+0x1c4234], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
    --------------- S Y S T E M ---------------
    OS: Oracle Solaris 10 9/10 s10s_u9wos_14a SPARC
    Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
    Assembled 11 August 2010
    uname:SunOS 5.10 Generic_142909-17 sun4u (T2 libthread)
    rlimit: STACK 8192k, CORE infinity, NOFILE 65536, AS infinity
    load average:1.82 1.81 1.30
    CPU:total 1 has_v8, has_v9, has_vis1, has_vis2, is_ultra3
    Memory: 8k page, physical 8388608k(1512208k free)
    vm_info: Java HotSpot(TM) Server VM (17.1-b03) for solaris-sparc JRE (1.6.0_22-b04), built on Sep 18
    time: Mon Nov 15 10:40:11 2010
    elapsed time: 310607 seconds

    If you are using JNI or using a third party library that uses JNi then that would likely be the problem.
    If not then it is a VM bug.

  • Integration of a web application running on tomcat

    Hi all experts,
    I want to integrate a web application running Apache Tomcat/5.5.20.
    it's login page(jsp  page) have two input box uid and pwd.Login Application
    calls a servlet in Apache Tomcat/5.5.20 web.xml.
    For Accessing the loging page url is http://2.2.3.2:8080/uportal/Login
    I tried with app integrator
    URL Template  <System.protocol>://<System.server>:<System.port><System.uri>?<Authentication>
    URL Template fragment for User Mapping is
    login=<MappedUser>&passwd=<MappedPassword>
    But its giving error
    description The server encountered an internal error () that prevented it from fulfilling this request.
    java.lang.NullPointerException
         ubq.base.UEncryptionService.encrypt(UEncryptionService.java:29)
         ubq.base.UUserManager.loginUser(UUserManager.java:25)
         ubq.base.ULoginServlet.doPost(ULoginServlet.java:106)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    Can any body help me ,My problem is that i cant change any code in backend application.
    Thanks in advance.
    Regd,
    Sanjay

    Hi Sanjay,
    Does the Tomcat is in the local System?
    If it is in local system try to run the application using
    <serverhost>://localhost:8080/......
    else for remote server
    Its always safe to add an entry (alias name) in drivers/hosts file with the ip address of the server like
    2.2.3.2     myLocalServer
    Now try to run and see.
    Thanks,
    Swathi
    PS:points are welcome:-)

  • Problem launching a jsp page with eclipse and tomcat

    Hi,
    I have just started using eclipse and tomcat for creating dynamic web pages. I tried to launch a jsp page after starting the tomcat server with the URL: http://locahost:8080/HelloWorld/, an error page was displayed as below:
    HTTP Status 404 -/
    type Status report
    message /_
    description The requested resource (-) is not available
    Apache Tomcat/5.5.17
    I didn't get any error at the console and when i just typed http://localhost, a pop up menu saying that the connection was refused when attempting to contact localhost.
    I'm not sure what is the problem here. Could it be the permssion to the localhost is not granted by the system as the eclipse IDE is running using linux?
    Hope someone can help.
    Thanks.

    http://www-128.ibm.com/developerworks/library/os-ectom/

  • JSP codes for running a JAVA program

    hello...
    does anyone know the JSP codes for running a Java program from my web page?? i mean i already have my java program compiled... and i just want this java program to run in the background when I click on a button or a link...
    Any idea about this?
    plz advice..
    avi

    yes... u r somewhat right... but this runs on Jakarta Tomcat...
    i'm using the Apache Http Server together with the ServletExec AS which enable the Apache server to run JSP..
    I've created a package where i've put my classes...
    WEB-INF/classes/tbd(package name)/my classes
    and i've added.. package name.. in my java program..
    and then in jsp... i've written..
    <%@ page import="tdb.*"%>
    <jsp:useBean id="exec" class="tdb.textdb" />
    <%exec.convert_data();%>
    but when i run the page it says the package does not exist...
    can anyone tell where to place the folder WEB-INF so that it can run fine?
    thx
    avi

  • EJB3 persistence in a Tomcat webapp (ThreadLocal pattern)

    When you only want to use EJB3 persistence, and not the whole EJB3 stack).
    First posted to http://forum.hibernate.org/viewtopic.php?t=963478 without an answer!
    In the document "Using Hibernate with Tomcat" (http://www.hibernate.org/114.html), it is suggested that you create a ServletContextListener - like the one below - where the listener initializes and closes Hibernate on deployment and undeployment of your webapp.
    public class HibernateListener implements ServletContextListener {
        public void contextInitialized(ServletContextEvent event) {
            HibernateUtil.getSessionFactory(); // Just call the static initializer of that class  
        public void contextDestroyed(ServletContextEvent event) {
            HibernateUtil.getSessionFactory().close(); // Free all resources
    }My question is: If I want to use Hibernate as an EJB3 persistence engine in a Webapp running in Tomcat, do I make a similar ServletContextListener like this:
    public class EntityManagerListener implements ServletContextListener {
        public void contextInitialized(ServletContextEvent event) {
            EntityManagerUtil.getEntityManagerFactory(); // Just call the static initializer of that class  
        public void contextDestroyed(ServletContextEvent event) {
            EntityManagerUtil.getEntityManagerFactory().close(); // Free all resources
    public class EntityManagerUtil {
        private static EntityManagerFactory emf;
        public static final ThreadLocal<EntityManager> entitymanager = new ThreadLocal<EntityManager>();
        public static EntityManagerFactory getEntityManagerFactory() {
            if (emf == null) {
                // Create the EntityManagerFactory
                emf = Persistence.createEntityManagerFactory("example");
            return emf;
        public static EntityManager getEntityManager() {
            EntityManager em = entitymanager.get();
            // Create a new EntityManager
            if (em == null) {
                em = emf.createEntityManager();
                entitymanager.set(em);
            return em;
        public static void closeEntityManager() {
            EntityManager em = entitymanager.get();
            entitymanager.set(null);
            if (em != null) em.close();
    }And then in my webapp use the following code:
    public Person findByName(String name) {
        EntityManager em = EntityManagerUtil.getEntityManager();
        Query q = em.createQuery("select person from Person as person where name=:param");
        q.setParameter("param", name);
        Person p = (Person) q.getSingleResult();
        em.close();
        return p;
    }Would that be the right way to do it?

    Sun's reference JPA implementation (= EJB3 persistence) can be obtained from
    https://glassfish.dev.java.net/downloads/persistence/JavaPersistence.html

  • How do I run two tomcat on one webserver

    How Do I configure webserver to run two tomcat server.
    thanks

    make sure u have two seperate directories for tomcat.
    then edit one of the server.xml file and change the following port numbers 8080,8443,8009,8082 and 8081 to which ever port number u wish the second tomcat to run.
    For load balancing and fail safe settings, u will have to look at the documentation as this involves further settings to take care of
    good luck

  • Getting list of applications in tomcat webapps

    Hi,
    I want to get the list of applications deployed in tomcat webapps in my java program.
    can anyone tell me how to do this
    thanks

    similar issue: since adobe reader was installed on IOS 5, I can not anymore "open in..." good reader!
    I feel like if my iPad file system had been removed!
    Removing one app (stanza) helped: confirming there is alimit of 4 "open in..." links for PDF file! Now, I have back good reader in the list.
    Just 4!? puzzling. Other had report a limit of 10.

Maybe you are looking for

  • How can I connect an old external FDD Model# M0130 ?

    I have an original Macintosh 128k with an external FDD DB-19 connection. Now I have 400k diskettes and I would like to get the files from these diskettes. Is there a way to connect this old External FDD that has an db-19 connection to a Quadra 650 or

  • Trying PhoneGap in Dreamweaver CS5.5

    I have been trying out PhoneGap in Dreamweaver CS5.5. I've written up my experiences here: http://www.itwriting.com/blog/4261-hands-on-building-a-phonegap-app-with-dreamweaver-5-5.h tml http://www.itwriting.com/blog/4284-building-a-phonegap-app-for-i

  • Changed provider and now fake table no longer works

    Dear all, I have moved to a new provider and uploaded all my exsisting files. Now I see that mail() and fakeRecordset no longer works. I am thinking that this maid be php version related I run at this stage 4.4.9 kindly advice on how to resolve this

  • Field BSEG-ZLSPR in a posting key 50

    Hello, I have a doubt, Is it possible to display the lock field (BSEG-ZLSPR) as a posting key 50? And after post are able to change? Thanks.

  • Link button in grid column to UDO

    Hi, I read through the posts regarding linking to user-defined objects, but I found it very confusing.  Some posts say that it is not possible to create a link button to a UDO; others say you need to use the extended-object property.  Does anyone hav