EL fails in my JSP-files

Hello,
today i installed JSTL 1.1 using Tomcat 5.0.25 and J2SDK1.4.2_03. I noticed, that the EL-expressions are only evaluated, if the jsp-files are located in the root-directory of my web-application. My usual location for jsp-files is /WEB-INF/jsp instead. If the jsp-files are located there, the expressions are not evaluated.
Is it a bug, a feature or a configuration problem?
Below my minimal example:
test.jsp:
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
  <head>
    <title>Test</title>
  </head>
  <body>
    <c:out value="${1+1}" />
  </body>
</html>web.xml:
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
  <description>TestApp</description>
    <servlet>
      <servlet-name>TEST</servlet-name>
      <display-name>TEST</display-name>
      <jsp-file>/WEB-INF/jsp/test.jsp</jsp-file>
    </servlet>
    <servlet-mapping>
      <servlet-name>TEST</servlet-name>
      <url-pattern>/run</url-pattern>
    </servlet-mapping>
</web-app>The URL to test.jsp is http://localhost:8080/testapp/runMoving test.jsp from TOMCAT_HOME/webapps/testapp/WEB-INF/jsp to TOMCAT_HOME/webapps/testapp and calling http://localhost:8080/testapp/test.jsp works just fine instead.
Does anyone know, what's going wrong?
Thank you in advance,
Tobi :-)

I haven't seen that before, but perhaps the difference is the web.xml DTD. Try using the newest version,
so that your web.xml looks like this:
<?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">
  <description>TestApp</description>
    <servlet>
      <servlet-name>TEST</servlet-name>
      <display-name>TEST</display-name>
      <jsp-file>/WEB-INF/jsp/test.jsp</jsp-file>
    </servlet>
    <servlet-mapping>
      <servlet-name>TEST</servlet-name>
      <url-pattern>/run</url-pattern>
    </servlet-mapping>
</web-app>

Similar Messages

  • Parsing of JSP File failed

              I have many Jsp files already used at WLS51,
              when I move to WLS6.0 I get the following error:
              Parsing of JSP File '/Ticket/Reservation/ImmigrationSeqNbr.jsp' failed:
              /Ticket/Reservation/ImmigrationSeqNbr.jsp(353): scriptlet close brace '}' unbalanced
              at line 353 which breaks scope '_base_service_scope_'
              probably occurred due to an error in /Ticket/Reservation/ImmigrationSeqNbr.jsp
              line 353:
              finally{
              Can you help me what is the mean of the errro message?
              And how to solve that?
              Thx
              

              It's telling you there is a syntax error in your JSP. Which would be strange if
              it worked fine in 5.1. Please post the JSP.
              Mike
              "Samuel Pun" <[email protected]> wrote:
              >
              >I have many Jsp files already used at WLS51,
              >when I move to WLS6.0 I get the following error:
              >
              >Parsing of JSP File '/Ticket/Reservation/ImmigrationSeqNbr.jsp' failed:
              >--------------------------------------------------------------------------------
              > /Ticket/Reservation/ImmigrationSeqNbr.jsp(353): scriptlet close brace
              >'}' unbalanced
              >at line 353 which breaks scope '_base_service_scope_'
              >probably occurred due to an error in /Ticket/Reservation/ImmigrationSeqNbr.jsp
              >line 353:
              >finally{
              >
              >Can you help me what is the mean of the errro message?
              >And how to solve that?
              >Thx
              

  • Weblogic 10.3 & AIX -- Compilation of JSP File Failed!!!!

    Hi,
    We try to deploy an war to the weblogic 10.3 server. Error happed under AIX.
    The War can be deployed successfully but JSP compile under AIX? I verify that Solaris 9&10, Red hat, HP IA, the war works well after deployed.
    Is there any special  setting for AIX? Both 5.3 and 6.1 have the problem.
    Here is my jsp:
    <%@ page import="com.acta.webapp.mdreport.*" contentType="text/html" language="java" pageEncoding="UTF-8"%>
    <%@ taglib uri="/WEB-INF/mdreport.tld" prefix="md" %>
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
    <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
    <%
         AwWebMetaDataContext ctxt = new AwWebMetaDataContext (request,response);
         String logonButton = ctxt.getMessage(DIMetaDataResource.IDS_LOGON_LABEL);
    %>
    <html>
    <head>
    Here is the error message:
    logon.jsp:2:5: Invalid tag library.
    <%@ taglib uri="WEB-INF/mdreport.tld" prefix="md" %>
    ^----^
    logon.jsp:2:5: No tag library could be found with this URI. Possible causes could be that the URI is incorrect, or that there were errors during parsing of the .tld file.
    <%@ taglib uri="WEB-INF/mdreport.tld" prefix="md" %>
    ^----^
    logon.jsp:2:5: Invalid tag library.
    <%@ taglib uri="WEB-INF/mdreport.tld" prefix="md" %>
    ^----^
    logon.jsp:2:5: No tag library could be found with this URI. Possible causes could be that the URI is incorrect, or that there were errors during parsing of the .tld file.
    <%@ taglib uri="WEB-INF/mdreport.tld" prefix="md" %>
    ^----^
    logon.jsp:3:5: Invalid tag library.
    <%@ taglib uri="WEB-INF/struts-html.tld" prefix="html" %>
    ^----^
    logon.jsp:3:5: No tag library could be found with this URI. Possible causes could be that the URI is incorrect, or that there were errors during parsing of the .tld file.
    <%@ taglib uri="WEB-INF/struts-html.tld" prefix="html" %>
    ^----^
    logon.jsp:3:5: Invalid tag library.
    <%@ taglib uri="WEB-INF/struts-html.tld" prefix="html" %>
    Here is the stack trace from the log:
    at weblogic.servlet.jsp.JavelinxJSPStub.compilePage(JavelinxJSPStub.java:328)
         at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:237)
         at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:182)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:235)
         at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:408)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:318)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
         at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:502)
         at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:251)
         at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1063)
         at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3495)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Here is the JDK information.
    Java(TM) SE Runtime Environment (build pap6460sr4-20090219_01(SR4))
    IBM J9 VM (build 2.4, J2RE 1.6.0 IBM J9 2.4 AIX ppc64-64 jvmap6460-20090215_29883 (JIT enabled, AOT enabled)

    I am having a similar error but with a different tld...
    From my home-framed.jsp:
    <?xml version="1.0" encoding="iso-8859-1"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <%@ taglib prefix='tiles' uri='struts-tiles'%>
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    From my web.xml:
    <jsp-config>
         <taglib>
              <taglib-uri>struts-tiles</taglib-uri>
              <taglib-location>WEB-INF/struts-tiles.tld</taglib-location>
         </taglib>
    </jsp-config>
    Trace from server log:
    ####<Oct 6, 2009 3:20:46 PM EDT> <Error> <HTTP> <aixtd3> <appdev_cinciview_aixtd3> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1254856846253> <BEA-101017> <[weblogic.servlet.internal.WebAppServletContext@6fc66fc6 - appName: 'cinciview', name: 'cinciview.war', context-path: '/cinciview'] Root cause of ServletException.
    weblogic.servlet.jsp.CompilationException: Failed to compile JSP /jsp/home-framed.jsp
    home-framed.jsp:3:5: No tag library could be found with this URI. Possible causes could be that the URI is incorrect, or that there were errors during parsing of the .tld file.
    <%@ taglib prefix='tiles' uri='struts-tiles'%>
    ^----^
    home-framed.jsp:3:5: No tag library could be found with this URI. Possible causes could be that the URI is incorrect, or that there were errors during parsing of the .tld file.
    <%@ taglib prefix='tiles' uri='struts-tiles'%>
    ^----^
         at weblogic.servlet.jsp.JavelinxJSPStub.compilePage(JavelinxJSPStub.java:298)
         at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:216)
         at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:165)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:235)
         at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:394)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:309)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
         at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:528)
         at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:261)
         at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:145)
         at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:251)
         at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1144)
         at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:880)
         at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:793)
         at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:476)
         at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:431)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3395)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2140)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2046)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
    This code works on WLS 10.0 MP 1 on Windows but not on AIX.
    I've tried the suggested fix to add a library reference in the weblogic xml without success.
    Has anyone discovered a fix for this yet?

  • Activation of the activity fails u0096 no source files in the active workspace

    Dear All,
    I’m working on a NWDI installation since last month. The NWDI server (NW2004s) has been installed and configured with the following parameters:
    Some Details:
    -     Java Stack on SPS 12
    -     No complete Developer Workplace, we only use the Studio (SPS 12)
    -     OS: WIN 2003
    -     DB: Oracle 10g
    -     SDK: 2 SDK, Standard Edition x64 1.4.2_15
    Installation Usages Types: DI, AS Java, EP Core, EP (EP for the Visual Composer)
    Performed configuration steps:
    -     adaptation of VM parameter in the Visual Admin
    -     patched the NWDI Server and the Studio from SPS 9 to support package stack 12 + available single patches
    -     run the template installer => NWA with type “DI Allinone – run all post installation Steps for DI, CBS, CMS, DTR”
    -     Oracle Parameters changed, User and Authorizations created and assigned (UME, J2EE Security roles, DTR => ACL List), SLD (Creation of a new Landscape), Configuration of the CBS with the VA
    -     Configuration of the Studio (SAP J2EE Engine (fill in the NWDI engine), Proxy Settings, Development Configuration Pool)
    Development Steps for an example:
    -     Creation of a new software product (SLD)
    -     Namespace reservation on SLD => Application Context Root, Development Component Name
    -     Created a Domain and a Track on CMS
    -     Attached all Software components to the track (my own dc, SAP-JEE, SAP_Buildt, SAP_JTechs)
    -     Check-In the Software Components on Transport studio => CMS
    -     Moved the development configuration into Studio
    -     Created a ear- and a web-project => Display a JSP File (It’s the same example like in the SAP Course TADM10)
    -     Check-in the activity under “Open activities” => Activate
    My problem appears during the check-in phase in the studio. I was able to check-In the source files in to the inactive Workspace on the DTR, but the activation of the activity fails. (I thought that the build process runs automatically after the activation - also the movement from the source files from the inactive to the active workspace?).
    I received no error message, but I can’t find any source files in active workspace. The activity seems to be pending. I locate the request in the CBS, the request state is “failed” regarding the request type “activate”.
    At the moment there is no separate runtime system assigned to the NWDI System.
    Questions:
    1.     Have I forgotten an important configuration step?
    2.     Can I use the NWDI Server also as a runtime environment (DEV System)?
    Please let me know if somebody has an idea.
    Thanks.
    Christoph

    Hello Michael,
    thanks a lot for your answer.
    I found the following error messages in the <b>request log</b>:
    <i>Calculate all combinations of components and variants to be built...
         "xxxtest.com/math/calc/webdc01" variant "default"
              "xxxtest.com/math/calc/webdc01" variant "default" cannot be built. Activation will fail.
              INVALID dependency is declared to public part: default.
              [DC 247 variant "default"][SC 65 "xxxtest.com_TASCHENRECHNER_1"] using [PP default of DC 6 at Build-Time Dependency]
         "xxxtest.com/math/calc/eardc03" variant "default"
              "xxxtest.com/math/calc/eardc03" variant "default" cannot be built. Activation will fail.
              The required Build Plugin "sap.com/tc/bi/bp/enterpriseApplication/enterpriseApplication" IS UNKNOWN. None of the compatments contains a suitable plugin for this component.
              [DC 248 variant "default"][SC 65 "sanofitest.com_TASCHENRECHNER_1"] using [BP sap.com/tc/bi/bp/enterpriseApplication/enterpriseApplication]
    Prepare build environment in the file system... started at 2007-09-04 06:13:54.316 GMT
    Prepare build environment in the file system... finished at 2007-09-04 06:13:54.316 GMT and took 0 ms
    ===== Pre-Processing =====  finished at 2007-09-04 06:13:54.332 GMT and took 406 ms
    Change request state from PROCESSING to FAILED
    ERROR! The following problem(s) occurred  during request processing:
    ERROR! The following error occurred during request processing:Activation failed due to component "xxxtest.com/math/calc/webdc01" variant "default". The component is BROKEN.
    ERROR! The following error occurred during request processing:Activation failed due to component "xxxtest.com/math/calc/eardc03" variant "default". The component is BROKEN.
    REQUEST PROCESSING finished at 2007-09-04 06:13:54.332 GMT and took 422 ms</i>
    The <b>Build Log</b> was empty.
    Thank you in advance.
    Best regards
    Christoph

  • Refreshing included JSP file

    Hi,
    I've created a simple word-verification login system to stop robots from trying out various password combo's on a user's account.
    I've created a separate JSP page that randomly chooses an image from a database, sets a session variable to the word that is spelt in the image. Then when the user types in the word it simply checks that the word the user typed matches the session variable.
    Here's a snipet from this file: -
    login_image.jsp
    String [] sImageText = {
    "flusessn",
    "mises",
    "appalli",
    "encirs",
    "peromm"
    // create random number between 0-5
    Random rand = new Random();
    int nImageNumber = rand.nextInt(6);
    session.setAttribute( "imageword", sImageText[nImageNumber] );
    response.sendRedirect( "images/login/Captcha" + nImageNumber + ".jpg" );The image is displayed in the login page as follows:
    login.jsp
    <img src="login_image.jsp" />Whe the user enters their username, password and word verification it is processed in a separate JSP file: -
    process_login.jsp
         String sWordVerification = request.getParameter("securitycode");
         String sTheWordVerification = (String)session.getAttribute( "imageword" );
         if ( !sTheWordVerification.equalsIgnoreCase( sWordVerification ) ) {                response.sendRedirect( "login.jsp?worderror=true" );
         } else {     
    .The system works ok. My problem arises if the user enters the wrong word, they are shown an error message on the login.jsp page. However, the login image doesn't change. Any idea how I can make the image refresh each time the login.jsp page is loaded?
    Many thanks

    Thanks.
    I've managed to sort it using javascript. It's a bit messy, but it works. All the changes are made to login.jsp: -
    <script language="JavaScript">
    <!--
    var sURL = unescape(window.location.pathname);
    function doLoad()
        setTimeout( "refresh()", 1 );
    function refresh()
        window.location.href = sURL + "?worderror2=true";
    //-->
    </script>
    <%                                   
    String sError = request.getParameter("worderror");
    if ( sError != null ) {                    
    %>
    <meta http-equiv="refresh" content="1" >
    <script>
         doLoad();
    </script>
    <%
    String sError2 = request.getParameter("worderror2");
    if ( sError2 != null ) {               
         out.println( "<div class=\"redtext\" align=\"center\"><p>The word verification failed.  Please try again.</p></div>" );                              
    %>Here's how it works: -
    - User enters word verification in login.jsp
    - Posted to process_login.jsp
    - If the words don't match then redirect to login.jsp?worderror=true
    - login.jsp detects the worderror=true and runs the following script
    <meta http-equiv="refresh" content="1" >
    <script>
         doLoad();
    </script>
    - The doLoad() method refreshes the login page, including the login image using the refresh method
    - It redirects to window.location.href = sURL + "?worderror2=true";
    posting worderror2=true prevents login.jsp from entering an infinate loop.
    aaaaaaaand relax.....

  • How can I use a applet in a JSP file?

    hi
    I failed to use applet in a jsp file.My workspace is a BC4J type. I put the applet's source file in business component project.the jsp is in JSP project.
    The jsp file calls applet by <jsp:plugin></jsp:plugin> style.
    The error is can't find the applet class.
    why? Thank someone for give me help.

    Actually using jsp applet tags does not mean that it is taking care of that the classes are available. It simply renders the Applet tag tothe JSP page. If e.g. teh codebase is specified as /java/, then there should be a mapping to the Java class location with thename of /java/. If codebase is not provided, then the Java class must be in the classpath of the JSp servlet.
    Frank

  • Calling applet in jsp file

    Hi al,
    When we try to invoke an applet from jsp, applet class is not able to initialize (not able to load the class)
    Exception got in java console as follows :
    Load: class SignedAppletDemo.class not found.
    java.lang.ClassNotFoundException: SignedAppletDemo.class
    at sun.applet.AppletClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.applet.AppletClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.applet.AppletClassLoader.loadCode(Unknown Source)
    at sun.applet.AppletPanel.createApplet(Unknown Source)
    at sun.plugin.AppletViewer.createApplet(Unknown Source)
    at sun.applet.AppletPanel.runLoader(Unknown Source)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection failed.
    at sun.applet.AppletClassLoader.getBytes(Unknown Source)
    at sun.applet.AppletClassLoader.access$100(Unknown Source)
    at sun.applet.AppletClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    ... 10 more
    We are using <jsp:plugin> tag for access applet from jsp in Oracle Appserver.(OC4J).
    If anyone have any idea on the above,please let us know. Please pass on steps to follow for access applet from jsp file.
    Thanks,
    Rajkumar

    Review
    URL.openConnection()
    and HttpURLConnection

  • Newbie - Error when trying to view .jsp file on newly running server.

    Hello, I'm new and trying to view a .jsp file on my webserver and get this error:
    java.io.IOException: CreateProcess: javac -d C:\Blazix\jspdir -classpath C:\Blazix\blazix.jar;C:\Blazix\classes; C:\Blazix\jspdir\desisoft_jsp_intro_jsp1152122045640.java error=2
    *The .jsp file I want to view is in the correct folder, and I can view the same file if it is renamed as an .html extension.  Plz Help!!!   Thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    What does the JSP contain? Have you tried a simple JSP without any special functions? Does that work? How about catching the exception within the JSP. Will the JSP run and display correctly (of course, without the excepted content)?
    Here is an example of how you can catch the exception and prevent the JSP from failing (or at least how to prod it to display despite the error):
    <body>
       <%
       // yada yada yada some code
       try{
          // Yada yada yada the code that may have the IO problem
          // Yada yada yada
       }catch(IOException io){
           System.err.println("Here is the exception: "+io.toString());
       %>Please post back and let us know.
    dailysun

  • How to reference a DatabaseHandler servlet class from a jsp file in Tomcat

    Trying to create a database connection in the jsp file in webapps\project folder by referencing the DatabaseHandler class in webapps\project\WEB-INF\classes.
    Here is the code in the jsp to make the connection:
    DatabaseHandler db = new DatabaseHandler() ;
    String sql = "SELECT password FROM cms_users WHERE user =" + userName ;
    java.sql.ResultSet rs = db . selectQuery( sql ) ;
    Here is the DatabaseHandler class:
    import java.sql.*;
    public class DatabaseHandler
         // instance variables - replace the example below with your own
    private Connection connection;
         * Constructor for objects of class DatabaseHandler
         public DatabaseHandler()
    String url = "jdbc:odbc:javadatabase";
    // Load the driver to allow connection to the database
    try
    Class.forName( "sun.jdbc.odbc.JdbcOdbcDriver" );
    connection = DriverManager.getConnection( url );
    catch ( ClassNotFoundException cnfex )
    System.err.println( "Failed to load JDBC/ODBC driver." );
    cnfex.printStackTrace();
    System.exit( 1 ); // terminate program
    catch ( SQLException sqlex )
    System.err.println( "Unable to connect" );
    sqlex.printStackTrace();
    public ResultSet selectQuery( String query )
    Statement statement;
    ResultSet resultSet = null ;
    try
    statement = connection.createStatement();
    resultSet = statement.executeQuery( query );
    catch ( SQLException sqlex )
    sqlex.printStackTrace();
    System . exit( 1 ) ;
    return resultSet ;
    Here is the error i am getting when i try to run the jsp script:
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 2 in the jsp file: /ValidateLogon.jsp
    Generated servlet error:
    [javac] Compiling 1 source file
    C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\cms\ValidateLogon_jsp.java:47: cannot find symbol
    symbol : class DatabaseHandler
    location: class org.apache.jsp.ValidateLogon_jsp
    DatabaseHandler db = new DatabaseHandler() ;
    ^

    Just like in the class file you need to import any classes that you want to access in the JSP.
    http://java.sun.com/products/jsp/tags/11/syntaxref11.fm7.html

  • Urgent ! Problem when test Application Moudule with a customer JSP FIle!!

    I got these two errors:
    oracle.jbo.common.ampool.ApplicationPoolException: JBO-30003: The application pool, ETicket_UserSystem_UserSystemAppModule, failed to checkout an application module instance.
    JBO-25002: Definition of ETicket_UserSystem_UserSystemAppModule of type......
    Here is my JSP file code:
    <%@ page language = "java" errorPage="errorpage.jsp" import = "java.util.*, oracle.jbo.*, javax.naming.*, oracle.jdeveloper.html.*, oracle.jbo.html.databeans.*" contentType="text/html;charset=ISO-8859-1" %>
    <HTML>
    <HEAD>
    <META NAME="GENERATOR" CONTENT="Oracle JDeveloper">
    <title>Business Components JSP Application</title>
    </HEAD>
    <%oracle.jbo.html.jsp.JSPApplicationRegistry.registerApplicationFromPropertyFile(session, "UserSystemJSP_ETicket_UserSystem_UserSystemAppModule");
    %>
    <BODY>
    <jsp:useBean id="viewer" class="oracle.jbo.html.databeans.ViewCurrentRecord" scope="request">
    <%
    viewer.initialize(application, session, request, response, out, "UserSystemJSP_ETicket_UserSystem_UserSystemAppModule.UserRecordView");
    RowSet rs = viewer.getRowSet ();
    Row r = null;
    rs.setCurrentRow (rs.first ());
    r = rs.getCurrentRow ();
    while (rs.hasNext ()) {
    out.println (r.getAttribute ("loginname"));
    r = rs.next ();
    viewer.setReleaseApplicationResources(true);
    %>
    </jsp:useBean>
    </BODY>
    </HTML>
    Here is the properties file UserSystemJSP_ETicket_UserSystem_UserSystemAppModule.properties
    ApplicationModuleName=ETicket.UserSystem.UserSystemAppModule
    #ConfigName=ETicket.UserSystem.UserSystemAppModule.UserSystemAppModuleEJB
    #in 8i mode this is an IIOP connection name to travel user.
    #in LOCAL mode this is a JDBC COnnection Name to travel user.
    ConnectionName=etdbcon
    # used only if password not provided by connection definition in the config
    Password=etpg1
    #CSS File Name
    CSSURL=/webapp/cabo/images/cabo_styles.css
    #Root Image Directory
    ImageBase=/webapp/jsimages
    #only used in 8i mode
    JndiPath=test/etpg1/ejb/ETicket.UserSystem.UserSystemAppModule
    #Defines if application is stateless or not
    IsStateLessRuntime=false
    Here is the bc4j.xcfg file:
    <BC4JConfig>
    <AppModuleConfigBag>
    <AppModuleConfig name="UserSystemAppModuleLocal">
    <ApplicationName>ETicket.UserSystem.UserSystemAppModule</ApplicationName>
    <DeployPlatform>LOCAL</DeployPlatform>
    <JDBCName>etdbcon</JDBCName>
    <jbo.project>UserSystem</jbo.project>
    </AppModuleConfig>
    <AppModuleConfig name="UserSystemAppModuleEJB">
    <DeployPlatform>LOCAL</DeployPlatform>
    <JDBCName>etdbcon</JDBCName>
    <IIOPName>iiopcon</IIOPName>
    <jbo.project>UserSystem</jbo.project>
    <ApplicationName>ETicket.UserSystem.UserSystemAppModule</ApplicationName>
    </AppModuleConfig>
    </AppModuleConfigBag>
    </BC4JConfig>
    Any error in above files or other place??
    I only run it in JDeveloper, no deploy and test in Application Server.

    Akira,
    Here's what I would recommend:
    1. Generate a BC4J JSP web application based on one of your view objects. This will give you the 'factory' code that we use to connect to the app module and iterate through a rowset. If this JSP works, you can compare the code generated by our wizards with the one you have included.
    2. Your properties file looks like a hybrid of 3.1 and 3.2. In 3.2, the properties file contains just an entry for the ConfigName, and the password. The JSP then looks at the BC4J.xcfg at runtime for all the other connection information.
    The error you are reporting sounds connection related, so I would recommend cleaning up your properties file to be more 3.2-like. If this is an app you have upgraded from 3.1, then see the online help topic 'About Upgrading a JSP Project in 3.2'. This topic can be found under the Creating JSP Pages folder, and then under About JSP Applications.
    null

  • How to deploy custom JSP file in reporting and analysis workspace extented services?

    Hi All,
    We are using Oracle EPM 11.2.3 Interactive reporting.  We need add on functionality on the existing workspace and developed a JAVA code for that. Now we are facing challenges with deploying JSP file with existing weblogic server. does anybody did it before? we followed oracle doc but not useful.
    The task of JSP file would get the user information from the existing session then list the file which user has access and follow.
    Do we have any doc related to this? Your help is highly appreciated.
    Thanks
    Venkatesh

    Hi,
    After deployed inside the OC4J server. Run the index page by
    Calling like http://hostname:port/earname/index.jsp
    While deploying the ear file you would have given a name for the ear file use that name in the URL.
    If so then you can see the provider displayed on the index page. Then click on the provider name it will take you to the next page where it will display all the portlet inside the provider.
    Please copy the URL and paste it while registering the Provider with the portal server.
    Because the server will try to navigate to the URL mentioned while registering if the server dint find the proper URL then registration fails.
    Try this and let me know.
    Regards,
    Vijay.B

  • Failed to load jsp with jstl 1.0 when deployed to Weblogic 11g

    The same war is successfully run on weblogic 10.X but failed to run on weblogic 11.x
    JSTL version is 1.0
    Compilation of JSP File failed:
    Exception occurred while processing '/u02/tech/product/otm620/otmapp/weblogic/domains/otm/servers/gc3-scdemo/tmp/_WL_user/ShipConsole/deg7z9/war/xxx.jsp'java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/ConditionalTagSupport
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
         at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
         at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
         at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:296)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
         at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:177)
         at weblogic.utils.classloaders.FilteringClassLoader.findClass(FilteringClassLoader.java:101)
         at weblogic.utils.classloaders.FilteringClassLoader.loadClass(FilteringClassLoader.java:86)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:296)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:296)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
         at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:177)
         at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:37)
         at weblogic.servlet.jsp.TagFileClassLoader.findClass(TagFileClassLoader.java:32)
         at weblogic.servlet.jsp.TagFileClassLoader.loadClass(TagFileClassLoader.java:24)
         at weblogic.jsp.internal.jsp.JspScriptTransform.getHandlerInfo(JspScriptTransform.java:1595)
         at weblogic.jsp.internal.jsp.JspScriptTransform.signActionAll(JspScriptTransform.java:619)
         at weblogic.jsp.internal.jsp.JspScriptTransform.addJspService(JspScriptTransform.java:218)
         at weblogic.jsp.internal.jsp.JspScriptTransform.transformPage(JspScriptTransform.java:177)
         at weblogic.jsp.internal.jsp.JspScriptTransform.<init>(JspScriptTransform.java:152)
         at weblogic.jsp.internal.jsp.JspCheckContext.check(JspCheckContext.java:82)
         at weblogic.jsp.internal.jsp.JspAnalyzer.check(JspAnalyzer.java:57)
         at weblogic.jsp.internal.ProxySourceFile._check(ProxySourceFile.java:136)
         at weblogic.jsp.internal.SourceFile.masterCheck(SourceFile.java:762)
         at weblogic.jsp.internal.SourceFile.check(SourceFile.java:314)
         at weblogic.jsp.internal.SourceFile.check(SourceFile.java:335)
         at weblogic.jsp.internal.ProxySourceFile.codeGen(ProxySourceFile.java:224)
         at weblogic.jsp.internal.SourceFile.codeGen(SourceFile.java:327)
         at weblogic.jsp.internal.client.ClientUtilsImpl$CodeGenJob.run(ClientUtilsImpl.java:599)
         at weblogic.jsp.internal.client.Job.performJob(Job.java:83)
         at weblogic.jsp.internal.client.ThreadPool$WorkerThread.run(ThreadPool.java:217)

    I don't have any weblogic.xml its a plain web application.
    i tried in all scenarios like using import command of jstl in web.xml like taglib tag.
    Irrespective of imports always showing the same error like class not found javax/servlet/jsp/jstl/core/ConditionalTagSupport
    May be the search is by some other class loader.
    How to deploy the jstl & standard jar files as shared libraries in weblogic server

  • Problem with BPM workspace - Failed to compile JSP /bpmHome.jsff

    Hi
    I have instaled SOA Suite 11gR1 (11.1.1.5.0). All console woks, except bpm workspace. I have following error after login
    Incident Id: 3
    Incident Source: SYSTEM
    Create Time: Thu Sep 22 09:21:36 CEST 2011
    Problem Key: BEA-101017 [HTTP][weblogic.servlet.jsp.CompilationException]
    Application Name: OracleBPMWorkspace
    Error Message Id: BEA-101017
    Description
    Incident detected using watch rule "UncheckedException":
    Watch time:             2011-09-22 09:21:36 CEST
    Watch ServerName:       soa_server1
    Watch RuleType:         Log
    Watch Rule:             (SEVERITY = 'Error') AND ((MSGID = 'WL-101020') OR (MSGID = 'WL-101017') OR (MSGID = 'WL-000802') OR (MSGID = 'BEA-101020') OR (MSGID = 'BEA-101017') OR (MSGID = 'BEA-000802'))
    Watch DomainName:       SOADomain
    Watch Data:
       DATE : 2011-09-22 09:21:36 CEST
       SERVER : soa_server1
       MESSAGE : [ServletContext@9413464[app:OracleBPMWorkspace module:/bpm/workspace path:/bpm/workspace spec-version:2.5], request: weblogic.servlet.internal.ServletRequestImpl@31c41d[
    GET /bpm/workspace/faces/jsf/worklist/worklist.jspx?_afrLoop=4649677285821&_afrWindowMode=0&_adf.ctrl-state=7b5s8pm1s_4 HTTP/1.1
    User-Agent: Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.9.2.13) Gecko/20101209 CentOS/3.6-2.el5.centos Firefox/3.6.13
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    Accept-Language: pl,en-us;q=0.7,en;q=0.3
    Accept-Encoding: gzip,deflate
    Accept-Charset: ISO-8859-2,utf-8;q=0.7,*;q=0.7
    Keep-Alive: 115
    Connection: keep-alive
    Referer: http://localhost:8001/bpm/workspace/faces/jsf/worklist/worklist.jspx
    Cookie: JSESSIONID=XS3VT6hZBFLPZvqGZsnjQWnhgG06NTnDHMX9QY8Wbf1FvBZ4QYTK!-276213214
    ]] Root cause of ServletException.
    weblogic.servlet.jsp.CompilationException: Failed to compile JSP /bpmHome.jsff
    Exception occurred while processing '/home/kuba/Oracle/Middleware/user_projects/domains/SOADomain/servers/soa_server1/tmp/_WL_user/OracleBPMWorkspace/jx2oeu/war/bpmHome.jsff'java.lang.NullPointerException
         at weblogic.jsp.internal.jsp.JspParser.jspParse(JspParser.java:1092)
         at weblogic.jsp.internal.jsp.JspParser._parse(JspParser.java:604)
         at weblogic.jsp.internal.jsp.JspParser.parse(JspParser.java:597)
         at weblogic.jsp.internal.jsp.JspAnalyzer.parseFile(JspAnalyzer.java:104)
         at weblogic.jsp.internal.jsp.JspAnalyzer.parse(JspAnalyzer.java:92)
         at weblogic.jsp.internal.ProxySourceFile.parse(ProxySourceFile.java:106)
         at weblogic.jsp.internal.SourceFile.getAst(SourceFile.java:559)
         at weblogic.jsp.internal.SourceFile.getAst(SourceFile.java:533)
         at weblogic.jsp.internal.SourceFile.check(SourceFile.java:335)
         at weblogic.jsp.internal.ProxySourceFile.codeGen(ProxySourceFile.java:224)
         at weblogic.jsp.internal.SourceFile.codeGen(SourceFile.java:327)
         at weblogic.jsp.internal.client.ClientUtilsImpl$CodeGenJob.run(ClientUtilsImpl.java:599)
         at weblogic.jsp.internal.client.Job.performJob(Job.java:83)
         at weblogic.jsp.internal.client.ThreadPool$WorkerThread.run(ThreadPool.java:217)
         at weblogic.servlet.jsp.JavelinxJSPStub.reportCompilationErrorIfNeccessary(JavelinxJSPStub.java:226)
         at weblogic.servlet.jsp.JavelinxJSPStub.compilePage(JavelinxJSPStub.java:162)
         at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:256)
         at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:216)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:243)
         at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:416)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:326)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:183)
         at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:523)
         at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:444)
         at weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:163)
         at weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:184)
         at oracle.adfinternal.view.faces.taglib.region.IncludeTag.__include(IncludeTag.java:442)
         at oracle.adfinternal.view.faces.taglib.region.RegionTag$1.call(RegionTag.java:153)
         at oracle.adfinternal.view.faces.taglib.region.RegionTag$1.call(RegionTag.java:128)
         at oracle.adf.view.rich.component.fragment.UIXRegion.processRegion(UIXRegion.java:503)
         at oracle.adfinternal.view.faces.taglib.region.RegionTag.doStartTag(RegionTag.java:127)
         at jsp_servlet._jsf._worklist.__worklist_jspx._jspx___tag27(__worklist_jspx.java:1265)
         at jsp_servlet._jsf._worklist.__worklist_jspx._jspx___tag26(__worklist_jspx.java:1232)
         at jsp_servlet._jsf._worklist.__worklist_jspx._jspx___tag14(__worklist_jspx.java:723)
         at jsp_servlet._jsf._worklist.__worklist_jspx._jspx___tag13(__worklist_jspx.java:673)
         at jsp_servlet._jsf._worklist.__worklist_jspx._jspService(__worklist_jspx.java:168)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:175)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:524)
         at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:253)
         at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:410)
         at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
         at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
         at oracle.adfinternal.view.faces.config.rich.RecordRequestAttributesDuringDispatch.dispatch(RecordRequestAttributesDuringDispatch.java:44)
         at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
         at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
         at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
         at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$OverrideDispatch.dispatch(FacesContextFactoryImpl.java:267)
         at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:469)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:140)
         at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189)
         at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:193)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:800)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:294)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:214)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.help.web.rich.OHWFilter.doFilter(Unknown Source)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:175)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
       SUBSYSTEM : HTTP
       USERID : <WLS Kernel>
       SEVERITY : Error
       THREAD : [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'
       MSGID : BEA-101017
       MACHINE : vm0-jpawlows.amg.net.pl
       TXID :
       CONTEXTID : 2910bfe82460a9b3:63a8fc67:1328fe13615:-8000-00000000000022a6
       TIMESTAMP : 1316676096720
    Diagnostic Dumps
    Name: jvm.threads
    Dump Files: jvm_threads13_i3.dmp
    Name: dms.metrics
    Dump Files: dms_metrics14_i3.dmp
    Name: odl.quicktrace
    Dump Files: odl_quicktrace15_i3.dmp
    Name: odl.logs
    Dump Arguments: ecid=2910bfe82460a9b3:63a8fc67:1328fe13615:-8000-00000000000022a6
    Dump Files: odl_logs16_i3.dmp
    Name: odl.logs
    Dump Arguments: timestamp=1316676096814
    Dump Files: odl_logs17_i3.dmp
    Name: wls.image
    Dump Files: diagnostic_image_soa_server1_2011_09_22_09_21_48.zipKuba

    Hi Kuba
    I guess you are getting this error in Linux Env and not Windows. Basically SOA/BPM opens lots of files (JARs and WARs) and I guess it do not close them properly. The root cause for your error is something else. Here is the fix. This should work.
    Login into the linux machine with the root user privileges. Or ask the person who have root privileges to do this. Basically you have to increase the open file limits to much bigger number like 8192.
    To change the open file limits, login as root and edit the /etc/security/limits.conf file. If the following lines are already there, just change the number to 8192. Otherwise add below 2 lines exactly. Means for all the users on this OS, the nofiles is set to 8192, instead of single user.
    * hard nofile 8192
    * soft nofile 8192
    after this, make sure to RESTART the Linux box. Otherwise changes will not get reflected.
    Login into unix box from any client and run this command and it should return 8192
    ulimit -n
    Then start the soa server and you should be all set. Let me know if this fixes your issue (I am hoping it should).
    Thanks
    Ravi Jegga

  • JSP file cannot locate beans

    I created a JSP file that calls a bean, I placed the bean in Web-inf/classes folder (I manually created classes folder because the application server didn't create it, bug). The problem is that my JSP page cannot access the bean, even when I modify setEnv.cmd file. Please HELP!!

    I have the same problem:
    I try to get the Emp bean in examples\intro from weblogic 5.1 working on WL
    6 sp1: I take the jar file and deploy it in console (either as EJB or as
    Application), and my JSP page EmpQuery.jsp miserably fails since it can't
    get to the bean classes.
    When I extract all the *.class files from the jar in the
    config\examples\serverclasses
    it works like a charm.
    BUT this defeats the idea of bean deployment !
    How can I make it work ?
    Should I modify the CLASSPATH as well ? Isn't the deployment supposed to do
    that automatically for me ?
    "Jean" <[email protected]> wrote in message
    news:3affe733$[email protected]..
    I created a JSP file that calls a bean, I placed the bean inWeb-inf/classes folder (I manually created classes folder because the
    application server didn't create it, bug). The problem is that my JSP page
    cannot access the bean, even when I modify setEnv.cmd file. Please HELP!!

  • Segregating business Logic from JSP files.

    I have an application with around 150 jsp files, out of which almost half of them are containing business logic.
    I am actually in a process of segregating the java code from the jsp files.
    Could you please guide me in finding out the best practices, dos and don'ts while engaging in such a process.
    Thanks in Advance

    I've been through this hellish experience. I’m not sure any “best practices” for this exist.
    gimbal2 idea of starting a new project would be ideal, if costly. The other extreme is “it works”, don’t touch ‘em until you need to change the functionality then work out the cost/befit of a rewrite for that slice.
    If you really want to take this route:
    How bad is the code that does not live in the JSPs? Should it be reused or avoided?
    What level of functional test coverage do you have?
    The approach my team and I took was to cut it down into slices and try to rewrite that slice as cleanly as possible. Where interactions between slices exist try to write a facade which calls the legacy code but looks like how you would want the new code to look.
    This did not work perfectly. The facades were rarely used well and we had to drop major slices of work to complete on time leaving us with large chunks of legacy code that we can’t delete.
    We started with no automated functional tests, but a goal of getting to a decent amount. We failed on this, which caused major issues - mop up lasted a month and a half after release. Drop functional slices to ensure that you end up with a solid set of automated tests. If you can not get your team to buy into this don't bother with the project.

Maybe you are looking for