Datasource Configuration problem with Tomcat-4.0.3

Hi All !
When I trying to open connection to my DB2 database in tomcat -4.0.3,
I have put db2java.jar in /usr/local/jakartha-tomcat-4.03/common/lib directory
when I am trying to connect Database through my servlet getting expections
java.lang.NullPointerException: at DataSource ds = (DataSource)envContext.lookup("jdbc/SmsDBDS");
here is my dbconnection class
package com.ebizon.util.jdbc;
import java.sql.*;
import java.util.*;
import javax.naming.*;
import javax.sql.*;
public class DBUtil {
/* Ebizon DB Connection for Tomcat */
public static Connection getEbizDBConnection() throws NamingException, SQLException {
Connection conn = null;
try {
InitialContext initCtx = new InitialContext();
Context envContext = (Context)initContext.lookup("java:/comp/env");
DataSource ds = (DataSource)envContext.lookup("jdbc/SmsDBDS");
conn = ds.getConnection();
} catch (NamingException ne) {
throw ne;
} catch (SQLException se) {
throw se;
return conn;
And my resource definition in server.xml (/usr/local/jakartha-tomcat-4.0.3/conf/server.xml)
<Context path="/DBTest" docBase="DBTest"
debug="5" reloadable="true" crossContext="true">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="localhost_DBTest_log." suffix=".txt"
timestamp="true"/>
<Resource name="jdbc/SmsDBDS"
auth="Container"
type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/SmsDBDS">
<parameter>
<name>factory</name>
<value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
</parameter>
<parameter>
<name>maxActive</name>
<value>100</value>
</parameter>
<parameter>
<name>maxIdle</name>
<value>30</value>
</parameter>
<parameter>
<name>maxWait</name>
<value>10000</value>
</parameter>
<!-- DB2 dB username and password for dB connections -->
<parameter>
<name>username</name>
<value>smsdb</value>
</parameter>
<parameter>
<name>password</name>
<value>smsdb</value>
</parameter>
<!-- Class name for mm.mysql JDBC driver -->
<parameter>
<name>driverClassName</name>
<value>COM.ibm.db2.jdbc.app.DB2Driver</value>
</parameter>
<parameter>
<name>url</name>
<value>jdbc:db2:smsdb</value>
</parameter>
</ResourceParams>
</Context>
this is my Web Application descriptor /WEB-INF/web.xml
<resource-ref>
<description>
Resource reference to a factory for java.sql.Connection
instances that may be used for talking to a particular
database that is configured in the server.xml file.
</description>
<res-ref-name>
jdbc/EmployeDB
</res-ref-name>
<res-type>
javax.sql.DataSource
</res-type>
<res-auth>
Container
</res-auth>
</resource-ref>
Please look at once above , Do i missing any thing?
Anyhelp is greatly appreciate
Many thanks in advance
With Regards
Madhu Reddy

I don't see any problem with your files, so unfortunately I can't help. Since this forum is about the J2EE SDK, people may not have that much experience with standalone Tomcat. You may want to try the Tomcat user mailing list for a question about Tomcat: http://jakarta.apache.org/site/mail2.html

Similar Messages

  • DB2 Configuration problem with Tomcat-4.0.3

    When I trying to open connection to my DB2 database in tomcat -4.0.3,
    I have put db2java.jar in /usr/local/jakartha-tomcat-4.03/common/lib directory
    when I am trying to connect Database through my servlet getting expections
    java.lang.NullPointerException: at DataSource ds = (DataSource)envContext.lookup("jdbc/SmsDBDS");
    here is my dbconnection class
    package com.ebizon.util.jdbc;
    import java.sql.*;
    import java.util.*;
    import javax.naming.*;
    import javax.sql.*;
    public class DBUtil {
    /* Ebizon DB Connection for Tomcat */
    public static Connection getEbizDBConnection() throws NamingException, SQLException {
    Connection conn = null;
    try {
    InitialContext initCtx = new InitialContext();
    Context envContext = (Context)initContext.lookup("java:/comp/env");
    DataSource ds = (DataSource)envContext.lookup("jdbc/SmsDBDS");
    conn = ds.getConnection();
    } catch (NamingException ne) {
    throw ne;
    } catch (SQLException se) {
    throw se;
    return conn;
    And my resource definition in server.xml (/usr/local/jakartha-tomcat-4.0.3/conf/server.xml)
    <Context path="/DBTest" docBase="DBTest"
    debug="5" reloadable="true" crossContext="true">
    <Logger className="org.apache.catalina.logger.FileLogger"
    prefix="localhost_DBTest_log." suffix=".txt"
    timestamp="true"/>
    <Resource name="jdbc/SmsDBDS"
    auth="Container"
    type="javax.sql.DataSource"/>
    <ResourceParams name="jdbc/SmsDBDS">
    <parameter>
    <name>factory</name>
    <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
    </parameter>
    <parameter>
    <name>maxActive</name>
    <value>100</value>
    </parameter>
    <parameter>
    <name>maxIdle</name>
    <value>30</value>
    </parameter>
    <parameter>
    <name>maxWait</name>
    <value>10000</value>
    </parameter>
    <!-- DB2 dB username and password for dB connections -->
    <parameter>
    <name>username</name>
    <value>smsdb</value>
    </parameter>
    <parameter>
    <name>password</name>
    <value>smsdb</value>
    </parameter>
    <!-- Class name for mm.mysql JDBC driver -->
    <parameter>
    <name>driverClassName</name>
    <value>COM.ibm.db2.jdbc.app.DB2Driver</value>
    </parameter>
    <parameter>
    <name>url</name>
    <value>jdbc:db2:smsdb</value>
    </parameter>
    </ResourceParams>
    </Context>
    this is my Web Application descriptor /WEB-INF/web.xml
    <resource-ref>
    <description>
    Resource reference to a factory for java.sql.Connection
    instances that may be used for talking to a particular
    database that is configured in the server.xml file.
    </description>
    <res-ref-name>
    jdbc/EmployeDB
    </res-ref-name>
    <res-type>
    javax.sql.DataSource
    </res-type>
    <res-auth>
    Container
    </res-auth>
    </resource-ref>
    Please look at once above , Do i missing any thing?
    Anyhelp is greatly appreciate
    Many thanks in advance
    With Regards
    Madhu Reddy

    Hi,
    I have same problem. But unfortunately there does not exist a solution.
    You can read the explanation of this topic at http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html#Non%20DBCP%20Solutions
    Non DBCP Solutions. I understand Tomcat supports only MySQL, PostgreSQL, and Oracle 8i but not DB2.
    DataSource ds = (DataSource)envContext.lookup("jdbc/SmsDBDS");
    Up to now everything is fine, ds is not null, but inside ds (password, url, username...) all of them are null
    So when you execute conn = ds.getConnection(); there will be exception.
    If you find any solution please inform me.
    [email protected]

  • J2SE 1.4 Logger configuration problems with Tomcat 4.0

    I'm using Tomcat 4.0 as a servlet container and I'm trying out the new J2SE 1.4 logging API.
    Its working fine with the standard settings, which sets the level to INFO on the console handler.
    I would like to set the level to FINER to show some debugging info, but can't seem to get it going.
    I have tried setting the default level in my %JAVA_HOME%\jre\lib\logging.properties file, but it doesn't want to display log records of level FINER.
    I have also change the console handler to FINER by setting java.util.logging.ConsoleHandler.level = FINER
    I have also specified the config file parameter to point to a config file explicitly using the -Djava.util.logging.config.file=%CATALINA_HOME%\conf\logging.properties parameter in the catalina.bat script.
    Anyone got this working?
    --Kim

    Solved it. Isn't that always the way, you get frustrated enough to post a message, then you solve it 5 minutes later.
    It was a simple problem of the higher level overriding the lower levels.
    --Kim

  • Problems with Tomcat & Eclipse on MacOSX

    Hi everybody. I have a problem with Tomcat and Eclipse. I must make an application with JSF for my dissertation and i even become a new Mac user so i have some problems. I have installed Eclipse 3,3 Europe on Mac OSX 10,4, also I have installed Tomcat 5,5 setting up environment variable and users of Tomcat. Well, when I try to connect them creating a new server in Eclipse and select Tomcat as server and relative folder of origin, the problems begin. When I try to run on server a JSF project(naturally I have imported all the necessary libraries) it give this error to me: Could not load the Tomcat incomplete serveur configuration at /Servers/Tomcat v5.5 serveur at localhost-config.The configurator mau be corrupt or. Reason: Could not load the Tomcat incomplete serveur configuration at /Servers/Tomcat v5.5 serveur at localhost-config.The configurator mau be corrupt or incomplete. On what it can depend? It is possible that is a JRE problem? I do not find the folder jre on my file system(are novice with the mac). Thanks to all.

    This seems like a question that would be better put to an Eclipse forum.

  • Configuration problem with external Western Digital My Book 2 TB drive

    How do I fix a configuration problem with my external Western Digital My Book 2 TB drive which used to both read and write. Something has happened so that the drive is now read only? There is 600 GB of data on the drive that I cannot lose, thus am very concerned about messing around with formatting the drive which is raid 1 and filled with data.

    may not like to hear, but I'd skip on MyBook cases, nice looking as they are.
    Get a 2nd drive case to recover to.
    http://www.macsales.com/firewire
    may need to play with the demo Data Rescue 3 from Prosoft
    Backup/recover before repair is usually in order
    never have one backup set. THREE sets of your data, minimum.
    3rd party disk maintenance and repair should be a must and given rather than rely solely on Apple Disk Utility.
    Data and system maintenance and recovery plan - should be like practice for sports, arts, military with practice and making sure you will know how and the tools you need - ahead of time
    Resetting USB/FW ports, try another if one won't work. When 10.6 came out there was a lot of grinding teeth with external drives not working or mounting.

  • Problems configuring XSQL with Tomcat

    Having a lot of trouble getting this to work with tomcat standalone, apache with tomcat, and even apache with resin. (I have successfully gotten this to work with resin as both web and appserver.)
    I have tried to be meticulous in following the directions, but one thing that is throwing me is that I can't find the web.xml file in my xdk distribution (neither in xdk8i nor xdk9i); I've attempted to create the .xsql extension-to-servlet mapping myself in Tomcat's web.xml file, but maybe I got this wrong.
    The main symptom is that my xsql pages are basically being returned to me in the browser. Any help would be appreciated.

    Bacically you need to create yourself, and here is an example:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!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>
    <servlet>
    <servlet-name>
    WebCounter
    </servlet-name>
    <servlet-class>
    FAQAnswerServlet
    </servlet-class>
    </servlet>
    <servlet>
    <servlet-name>
    oraclexsql
    </servlet-name>
    <servlet-class>
    oracle.xml.xsql.XSQLServlet
    </servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>
    oraclexsql
    </servlet-name>
    <url-pattern>
    *.xsql
    </url-pattern>
    </servlet-mapping>
    </web-app>
    null

  • Configuration problem with param or code problem

    Hi,
    Im new to this jsp. Currently, i have some some Q here. Im trying on the jsp-tutorial with
    <%@ taglib prefix="my"
    uri="./jsp2/jsp2-example-taglib.tld" %>
    <HEAD>
    <TITLE>Functions</TITLE>
    </HEAD>
    <BODY>
    <H3>Add Numbers</H3>
    <P>
    <FORM action="./compute.jsp" method="GET">
    X = <input type="text" name="x" value="${param["x"]}">
    <BR>
    Y = <input type="text" name="y" value="${param["y"]}">
    <input type="submit" value="Add Numbers">
    </FORM>
    <P>
    The sum is: ${my:add(param["x"],param["y"])}
    </BODY>
    </HTML>
    inside the text box it appear the text with ${param[[/i], may i know is it a configuration problem?
    Thx for reply

    Probably yes it is a configuration problem.
    You have a JSP2.0 container? (eg Tomcat 5)
    If your web.xml starts with this:
    <?xml version="1.0" encoding="UTF-8"?>
    <!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>
    Replace it with 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
    ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
    version="2.4">
    That should fix it.
    http://forum.java.sun.com/thread.jspa?threadID=629437&
    tstart=0Sorry,
    I already hav
    <?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">
    originaly.

  • Problem with Tomcat 6

    Hi guys,
    I am with a very strange problem with my job here.
    We had a server working with Tomcat 5 and it didn't have problem, but wanted to changed to Tomcat 6.
    So.. we changed and it ran normal and well.
    The problem is when we stress the server with one or more big queries, execptions is showed that didn't show with Tomcat 5:
    java.lang.Exception: [Microsoft][SQLServer 2000 Driver for JDBC]Object has been closed
    Using SQL Server 2000
    java.lang.Exception: The connection is closed.
    Using SQL Server 2005
    java.lang.Exception: I/O Error: socket closed.
    Using SQL Server 2005 with jTDS driver
    It happens with Oracle too.
    Can anybody help me?
    Thanks!

    hi i'm having a similar problem launching a servlet in eclipse. I did the above changes and still nothing:
    instead i keep getting :
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Wrapper cannot find servlet class DataServlet or a class it depends on

  • Problems with tomcat 4.0.1

    hello,
    i�ve written some servlets using forte 3.0 with tomcat 3.2.
    everything works fine as long as I don�t run the servlets with tomcat 4.0.1.
    i use the request dispatcher / forward method - which dosn�t work reliable.
    it�s a list on which the user has to select one topic. the strange thing about it is that it works when you choose "back" after the error (dispatcher = null) has occured and select a different topic on that list - only the first choice makes en error.
    running on tomcat 3.2 with forte it works fine. but i get the following message in the tomcat output window:
    java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key dispatcher.forwardException
    and
    2002-01-13 11:40:05 - Ctx( /lg002234 ): Exception in: R( /lg002234 + /eingaben + null) - javax.servlet.ServletException: cannot find message associated with key : dispatcher.forwardException
    can somebody help?
    is use the dispatcher three times in that post-method - ist that a problem?

    ...sorry
    it�s not a problem with the requestdispatcher,
    problem is, that with tomcat 4.0.1 a parameter
    sometimes gets lost - but not with tomcat 3.2
    critical code is:
    String tierartAuswahl = request.getParameter("tierartAuswahl");
    is that a known bug of tomcat 4.0.1??

  • Problems with Tomcat 4.0 and jdk 1.3.1 (jsp:include) Help Gurus...

    Im running examples of the include:
    <jsp:include page="xxx.jsp" flush="true">
    and received error:
    org.apache.jasper.JasperException: No se puede compilar la clase para JSP
    An error occurred at line: 17 in the jsp file: /jsp/include/include.jsp
    Generated servlet error:
    /Programas/Tomcat4/work/localhost/examples/jsp/include/include$jsp.java:79: Method include(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, javax.servlet.jsp.JspWriter, boolean) not found in class org.apache.jasper.runtime.JspRuntimeLibrary.
    JspRuntimeLibrary.include(request, response, "/jsp/include/foo.html" + jspxqStr, out, true);
    ^
    Please Help me Im running this equal with:
    <%@ include file="xxx.jsp" %>
    and runnig fine....

    The two means of including files are different in their approach.
    Using <jsp:include .../> compilation of the included jsp is done at run -time not during compilation.
    Using <%@ include .../> compiles at compile time.
    Looking at the error it seems that the method JspRuntimeLibrary.include is not being found which suggests that you may have a classpath problem. Check that there is not a servlet.jar in the classpath that is from a earlier spec than the one provided with Tomcat.
    Dave

  • Problem with Tomcat server

    Hi,
    I'm just writing to inform you about a problem with the Oracle 9i database I found out.
    I have downloaded and installed the release 2 enterprise/standard/personal edition for Windows NT/2000/XP.
    After doing that I could not start my Tomcat server any more. Although I have tested the situation with many different releases of the Apache Tomcat server it did not work.
    Then I've deleted the Oracle database and just installed the client release. And now it works!
    I'd be grateful if one of you could tell me what's the problem and how I can solve it.
    Thanks for your help.
    Best regards,
    Steffi

    the localhost.log file shows
    02-Jun-2008 13:57:36 org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: contextInitialized()
    02-Jun-2008 13:57:36 org.apache.catalina.core.ApplicationContext log
    INFO: SessionListener: contextInitialized()
    02-Jun-2008 13:58:23 org.apache.catalina.core.ApplicationContext log
    INFO: SessionListener: contextDestroyed()
    02-Jun-2008 13:58:23 org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: contextDestroyed()
    and the catalina.log file shows..
    02-Jun-2008 13:58:24 org.apache.coyote.http11.Http11Protocol destroy
    INFO: Stopping Coyote HTTP/1.1 on http-8080
    i couldnot understand anything..how to rectify that..
    thanks in advance

  • Configuring problem in tomcat

    i am trying to implement hibernate through tomcat. but cant able to do it...I am using hibernate3.0.3 and tomcat 4.1...can anyone suggest a solution.
    thanks
    Tapan

    i am trying to install hibernate and want to use it with tomcat....and my problem is this that i am refrerring the document "quickstart with tomcat" that i found on the hibernate site. i use this document and it is mentioned the use of ANT and i dont want to use ANT..and also i think i cant use hibernate with MS Access database.
    so can u suggest me that how can i proceed?
    thanks
    Tapan

  • Eclipse problem with Tomcat when running jsp

    when I start tomcat from CMD, it starts normally and display http://localhost:8080/ properly
    but when I start tomcat from Eclipse, it starts the server normally,
    but it can't display http://localhost:8080/ properly,
    I guess that the problem with the java classpath isn't defined correctly in Eclipse
    but but I've tried it before, and it doesn't work
    here the error msg from Eclipse console:
    [INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on http-8080
    Starting service Tomcat-Standalone
    Apache Tomcat/4.1.31
    [INFO] PropertyMessageResources - -Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
    [INFO] PropertyMessageResources - -Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
    [INFO] PropertyMessageResources - -Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=true
    [INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on http-8080
    [INFO] ChannelSocket - -JK2: ajp13 listening on /0.0.0.0:8009
    [INFO] JkMain - -Jk running ID=0 time=0/120 config=C:\jakarta-tomcat-4.1.31\conf\jk2.properties
    Error compiling file: C:\jakarta-tomcat-4.1.31\work\Standalone\localhost\_\/index_jsp.java [javac] Compiling 1 source file
    [javac] Modern compiler not found - looking for classic compiler
    Info: Compile: javaFileName=C:\jakarta-tomcat-4.1.31\work\Standalone\localhost\_\/index_jsp.java
    classpath=C:/jakarta-tomcat-4.1.31/shared/classes/;C:/jakarta-tomcat-4.1.31/common/classes/;C:/jakarta-tomcat-4.1.31/common/endorsed/xercesImpl.jar;C:/jakarta-tomcat-4.1.31/common/endorsed/xmlParserAPIs.jar;C:/jakarta-tomcat-4.1.31/common/lib/activation.jar;C:/jakarta-tomcat-4.1.31/common/lib/ant-launcher.jar;C:/jakarta-tomcat-4.1.31/common/lib/ant.jar;C:/jakarta-tomcat-4.1.31/common/lib/commons-collections.jar;C:/jakarta-tomcat-4.1.31/common/lib/commons-dbcp-1.1.jar;C:/jakarta-tomcat-4.1.31/common/lib/commons-logging-api.jar;C:/jakarta-tomcat-4.1.31/common/lib/commons-pool-1.1.jar;C:/jakarta-tomcat-4.1.31/common/lib/jasper-compiler.jar;C:/jakarta-tomcat-4.1.31/common/lib/jasper-runtime.jar;C:/jakarta-tomcat-4.1.31/common/lib/jdbc2_0-stdext.jar;C:/jakarta-tomcat-4.1.31/common/lib/jndi.jar;C:/jakarta-tomcat-4.1.31/common/lib/jta.jar;C:/jakarta-tomcat-4.1.31/common/lib/mail.jar;C:/jakarta-tomcat-4.1.31/common/lib/naming-common.jar;C:/jakarta-tomcat-4.1.31/common/lib/naming-factory.jar;C:/jakarta-tomcat-4.1.31/common/lib/naming-resources.jar;C:/jakarta-tomcat-4.1.31/common/lib/servlet.jar
    cp=C:\jakarta-tomcat-4.1.31\shared\classes
    cp=C:\jakarta-tomcat-4.1.31\common\classes
    cp=C:\jakarta-tomcat-4.1.31\common\endorsed\xercesImpl.jar
    cp=C:\jakarta-tomcat-4.1.31\common\endorsed\xmlParserAPIs.jar
    cp=C:\jakarta-tomcat-4.1.31\common\lib\activation.jar
    cp=C:\jakarta-tomcat-4.1.31\common\lib\ant-launcher.jar
    cp=C:\jakarta-tomcat-4.1.31\common\lib\ant.jar
    cp=C:\jakarta-tomcat-4.1.31\common\lib\commons-collections.jar
    cp=C:\jakarta-tomcat-4.1.31\common\lib\commons-dbcp-1.1.jar
    cp=C:\jakarta-tomcat-4.1.31\common\lib\commons-logging-api.jar
    cp=C:\jakarta-tomcat-4.1.31\common\lib\commons-pool-1.1.jar
    cp=C:\jakarta-tomcat-4.1.31\common\lib\jasper-compiler.jar
    cp=C:\jakarta-tomcat-4.1.31\common\lib\jasper-runtime.jar
    cp=C:\jakarta-tomcat-4.1.31\common\lib\jdbc2_0-stdext.jar
    cp=C:\jakarta-tomcat-4.1.31\common\lib\jndi.jar
    cp=C:\jakarta-tomcat-4.1.31\common\lib\jta.jar
    cp=C:\jakarta-tomcat-4.1.31\common\lib\mail.jar
    cp=C:\jakarta-tomcat-4.1.31\common\lib\naming-common.jar
    cp=C:\jakarta-tomcat-4.1.31\common\lib\naming-factory.jar
    cp=C:\jakarta-tomcat-4.1.31\common\lib\naming-resources.jar
    cp=C:\jakarta-tomcat-4.1.31\common\lib\servlet.jar
    work dir=C:\jakarta-tomcat-4.1.31\work\Standalone\localhost\_
    srcDir=C:\jakarta-tomcat-4.1.31\work\Standalone\localhost\_
    include=index_jsp.java
    Exception compiling Cannot use classic compiler, as it is not available. A common solution is to set the environment variable JAVA_HOME to your jdk directory.
    Exception:
    Cannot use classic compiler, as it is not available. A common solution is to set the environment variable JAVA_HOME to your jdk directory.
         at org.apache.tools.ant.taskdefs.compilers.Javac12.execute(Javac12.java:72)
         at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:942)
         at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
         at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:282)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:328)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:427)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:142)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         at java.lang.Thread.run(Thread.java:479)
    Cannot use classic compiler, as it is not available. A common solution is to set the environment variable JAVA_HOME to your jdk directory.
         at org.apache.tools.ant.taskdefs.compilers.Javac12.execute(Javac12.java:72)
         at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:942)
         at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
         at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:282)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:328)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:427)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:142)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         at java.lang.Thread.run(Thread.java:479)
    Here are my system settings :
    Eclipse 2.1.3
    plugin : tomcatPluginV21, lomboz.213
    Jakarta-tomcat-4.1.31
    JAVA_HOME      : C:\jdk1.3.1_15
    CATALINA_HOME : C:\jakarta-tomcat-4.1.31
    Here are my Eclipse settings :
    http://server2.uploadit.org/files/marvelousgame-01.JPG
    http://server3.uploadit.org/files/marvelousgame-02.JPG
    http://server2.uploadit.org/files/marvelousgame-03.JPG
    http://server3.uploadit.org/files/marvelousgame-04.JPG
    http://server2.uploadit.org/files/marvelousgame-05.JPG
    http://server3.uploadit.org/files/marvelousgame-06.JPG
    thx!!!

    I would suggest updating your software to the latest versions - java 1.4.2 or higher, tomcat 5 or higher, Eclipse 3. That should fix any incompatibilities you are experiencing.
    As to your problem, it seems the tomcat you are trying to run from Eclipse wants a newer Java version (1.4.2 most likely).

  • J2ee agent 2.2 configuration problem with Websphere Portal 5.1

    Hi,
    I am trying to configure j2ee agent 2.2 with Websphere Portal server.
    I have followed the document "Sun Java SystemAccess Manager
    PolicyAgent 2.2 Guide for IBM WebSphere Portal Server 5.1.0.2"
    Please see the thread "Problem with Sun's SSO system and Websphere Portal Server integration" for environment related information.
    Also the security on app server has been enabled and is talking to LDAP.
    My aim here is to enable application server (portal server) to autheticate requests.
    I am getting following error when I log into the portal application.
    07/03/2007 06:32:16:062 PM IST: Thread[Servlet.Engine.Transports : 1,5,main]
    AmFilter: now processing: SSO Task Handler
    07/03/2007 06:32:16:062 PM IST: Thread[Servlet.Engine.Transports : 1,5,main]
    SSOTaskHandler: SSO Validation failed for null
    07/03/2007 06:32:16:062 PM IST: Thread[Servlet.Engine.Transports : 1,5,main]
    URLFailoverHelper: Checking if https://apollo.maxnewyorklife.com:443/amserver/UI/Login is available
    07/03/2007 06:32:16:078 PM IST: Thread[Servlet.Engine.Transports : 1,5,main]
    WARNING: URLFailoverHelper: the url https://apollo.maxnewyorklife.com:443/amserver/UI/Login is not available
    javax.net.ssl.SSLHandshakeException: unknown certificate
         at com.ibm.jsse.bs.a(Unknown Source)
         at com.ibm.jsse.bs.startHandshake(Unknown Source)
         at com.ibm.net.ssl.www.protocol.https.b.o(Unknown Source)
         at com.ibm.net.ssl.www.protocol.https.q.connect(Unknown Source)
         at com.ibm.net.ssl.internal.www.protocol.https.HttpsURLConnection.connect(Unknown Source)
         at com.sun.identity.agents.common.URLFailoverHelper.isAvailable(URLFailoverHelper.java:190)
         at com.sun.identity.agents.common.URLFailoverHelper.getAvailableURL(URLFailoverHelper.java:129)
         at com.sun.identity.agents.filter.AmFilterRequestContext.getLoginURL(AmFilterRequestContext.java:757)
         at com.sun.identity.agents.filter.AmFilterRequestContext.getAuthRedirectURL(AmFilterRequestContext.java:285)
         at com.sun.identity.agents.filter.AmFilterRequestContext.getAuthRedirectURL(AmFilterRequestContext.java:258)
         at com.sun.identity.agents.filter.AmFilterRequestContext.getAuthRedirectResult(AmFilterRequestContext.java:363)
         at com.sun.identity.agents.filter.AmFilterRequestContext.getAuthRedirectResult(AmFilterRequestContext.java:345)
         at com.sun.identity.agents.filter.SSOTaskHandler.doSSOLogin(SSOTaskHandler.java:210)
         at com.sun.identity.agents.filter.SSOTaskHandler.process(SSOTaskHandler.java:98)
         at com.sun.identity.agents.filter.AmFilter.processTaskHandlers(AmFilter.java:189)
         at com.sun.identity.agents.filter.AmFilter.isAccessAllowed(AmFilter.java:152)
         at com.sun.identity.agents.websphere.AmIdentityAsserterBase.processRequest(AmIdentityAsserterBase.java:195)
         at com.sun.identity.agents.websphere.AmTrustAssociationInterceptor.negotiateValidateandEstablishTrust(AmTrustAssociationInterceptor.java:91)
         at com.ibm.ws.security.web.TAIWrapper.negotiateAndValidateEstablishedTrust(TAIWrapper.java:101)
         at com.ibm.ws.security.web.WebAuthenticator.handleTrustAssociation(WebAuthenticator.java:191)
         at com.ibm.ws.security.web.WebAuthenticator.authenticate(WebAuthenticator.java:928)
         at com.ibm.ws.security.web.WebCollaborator.authorize(WebCollaborator.java:531)
         at com.ibm.ws.security.web.EJSWebCollaborator.preInvoke(EJSWebCollaborator.java:262)
         at com.ibm.ws.webcontainer.webapp.WebAppSecurityCollaborator.preInvoke(WebAppSecurityCollaborator.java:132)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:506)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:208)
         at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:134)
         at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:321)
         at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
         at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:246)
         at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
         at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
         at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:652)
         at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:448)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:936)
    07/03/2007 06:32:16:078 PM IST: Thread[Servlet.Engine.Transports : 1,5,main]
    URLFailoverHelper: disconnected the connection for availability check
    07/03/2007 06:32:16:078 PM IST: Thread[Servlet.Engine.Transports : 1,5,main]
    ERROR: URLFailoverHelper: No URL is available at this time
    07/03/2007 06:32:16:078 PM IST: Thread[Servlet.Engine.Transports : 1,5,main]
    ERROR: AmFilter: Error while delegating to inbound handler: SSO Task Handler, access will be denied
    [AgentException Stack]
    com.sun.identity.agents.arch.AgentException: No URL is available at this time
         at com.sun.identity.agents.common.URLFailoverHelper.getAvailableURL(URLFailoverHelper.java:133)
         at com.sun.identity.agents.filter.AmFilterRequestContext.getLoginURL(AmFilterRequestContext.java:757)
         at com.sun.identity.agents.filter.AmFilterRequestContext.getAuthRedirectURL(AmFilterRequestContext.java:285)
         at com.sun.identity.agents.filter.AmFilterRequestContext.getAuthRedirectURL(AmFilterRequestContext.java:258)
         at com.sun.identity.agents.filter.AmFilterRequestContext.getAuthRedirectResult(AmFilterRequestContext.java:363)
         at com.sun.identity.agents.filter.AmFilterRequestContext.getAuthRedirectResult(AmFilterRequestContext.java:345)
         at com.sun.identity.agents.filter.SSOTaskHandler.doSSOLogin(SSOTaskHandler.java:210)
         at com.sun.identity.agents.filter.SSOTaskHandler.process(SSOTaskHandler.java:98)
         at com.sun.identity.agents.filter.AmFilter.processTaskHandlers(AmFilter.java:189)
         at com.sun.identity.agents.filter.AmFilter.isAccessAllowed(AmFilter.java:152)
         at com.sun.identity.agents.websphere.AmIdentityAsserterBase.processRequest(AmIdentityAsserterBase.java:195)
         at com.sun.identity.agents.websphere.AmTrustAssociationInterceptor.negotiateValidateandEstablishTrust(AmTrustAssociationInterceptor.java:91)
         at com.ibm.ws.security.web.TAIWrapper.negotiateAndValidateEstablishedTrust(TAIWrapper.java:101)
         at com.ibm.ws.security.web.WebAuthenticator.handleTrustAssociation(WebAuthenticator.java:191)
         at com.ibm.ws.security.web.WebAuthenticator.authenticate(WebAuthenticator.java:928)
         at com.ibm.ws.security.web.WebCollaborator.authorize(WebCollaborator.java:531)
         at com.ibm.ws.security.web.EJSWebCollaborator.preInvoke(EJSWebCollaborator.java:262)
         at com.ibm.ws.webcontainer.webapp.WebAppSecurityCollaborator.preInvoke(WebAppSecurityCollaborator.java:132)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:506)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:208)
         at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:134)
         at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:321)
         at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
         at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:246)
         at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
         at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
         at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:652)
         at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:448)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:936)
    07/03/2007 06:32:16:078 PM IST: Thread[Servlet.Engine.Transports : 1,5,main]
    AmFilter: result =>
    FilterResult:
         Status      : FORBIDDEN
         RedirectURL     : null
         RequestHelper:
              null
         Data:
              null
    07/03/2007 06:32:16:078 PM IST: Thread[Servlet.Engine.Transports : 1,5,main]
    AmIdentityAsserter: result => TAIResult: status: 403, principal: null, subject: null
    From whatever analysis I have done so far, I believe this issue is related to the personal certificate for sun one webserver (on which access manager & LDAP are installed) not registered with the application server (portal server).
    I am not sure about the way I go by solving the issue.
    Please can anybody help me out.
    Thanks,
    Yaseer
    Message was edited by:
    yazee
    Message was edited by:
    yazee

    Ankush,
    I am getting error as follows in the webserver error log:-
    Error receiving request from 172.23.213.75 (SSL_ERROR_CERTIFICATE_UNKNOWN_ALERT: SSL peer had some unspecified issue with the certificate it received)
    Although I can get into am console but with https://apollo.maxnewyorklife.com/amconsole
    Tried the same thing, but couldnt resolve it. I will give it another go.
    Generally I am getting same error again and again.
    In my amWebsphere log file of j2ee agent (under root\am_wps_agent\agent_001\logs\debug) error I get.....
    07/15/2007 04:19:11:656 PM IST: Thread[Servlet.Engine.Transports : 0,5,main]
    AmFilter: now processing: SSO Task Handler
    07/15/2007 04:19:11:766 PM IST: Thread[Servlet.Engine.Transports : 0,5,main]
    SSOTokenValidator.validate(): Exception caught
    com.iplanet.sso.SSOException: Invalid sessionid formatjava.lang.IllegalArgumentException: Invalid server id in session id com.iplanet.services.naming.ServerEntryNotFoundException: Naming Service is not available.
         at com.iplanet.sso.providers.dpro.SSOProviderImpl.createSSOToken(SSOProviderImpl.java:205)
         at com.iplanet.sso.SSOTokenManager.createSSOToken(SSOTokenManager.java:325)
         at com.sun.identity.agents.common.SSOTokenValidator.validateInternal(SSOTokenValidator.java:252)
         at com.sun.identity.agents.common.SSOTokenValidator.validate(SSOTokenValidator.java:157)
         at com.sun.identity.agents.filter.SSOTaskHandler.process(SSOTaskHandler.java:88)
         at com.sun.identity.agents.filter.AmFilter.processTaskHandlers(AmFilter.java:189)
         at com.sun.identity.agents.filter.AmFilter.isAccessAllowed(AmFilter.java:152)
         at com.sun.identity.agents.websphere.AmIdentityAsserterBase.processRequest(AmIdentityAsserterBase.java:195)
         at com.sun.identity.agents.websphere.AmTrustAssociationInterceptor.negotiateValidateandEstablishTrust(AmTrustAssociationInterceptor.java:91)
         at com.ibm.ws.security.web.TAIWrapper.negotiateAndValidateEstablishedTrust(TAIWrapper.java:101)
         at com.ibm.ws.security.web.WebAuthenticator.handleTrustAssociation(WebAuthenticator.java:191)
         at com.ibm.ws.security.web.WebAuthenticator.authenticate(WebAuthenticator.java:928)
         at com.ibm.ws.security.web.WebCollaborator.authorize(WebCollaborator.java:531)
         at com.ibm.ws.security.web.EJSWebCollaborator.preInvoke(EJSWebCollaborator.java:262)
         at com.ibm.ws.webcontainer.webapp.WebAppSecurityCollaborator.preInvoke(WebAppSecurityCollaborator.java:132)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:506)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:208)
         at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:134)
         at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:321)
         at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
         at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:246)
         at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
         at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
         at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:652)
         at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:448)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:936)
    07/15/2007 04:19:11:766 PM IST: Thread[Servlet.Engine.Transports : 0,5,main]
    SSOTaskHandler: SSO Validation failed for AQIC5wM2LY4SfcwoaNKFd01DvjYeNPbR3wXaa9sMVjcKtwo=@AAJTSQACMDE=#
    07/15/2007 04:19:11:766 PM IST: Thread[Servlet.Engine.Transports : 0,5,main]
    URLFailoverHelper: Checking if https://apollo.maxnewyorklife.com:443/amserver/UI/Login is available
    07/15/2007 04:19:11:797 PM IST: Thread[Servlet.Engine.Transports : 0,5,main]
    WARNING: URLFailoverHelper: the url https://apollo.maxnewyorklife.com:443/amserver/UI/Login is not available
    javax.net.ssl.SSLHandshakeException: com.ibm.jsse2.util.g: No trusted certificate found
         at com.ibm.jsse2.bw.a(Unknown Source)
         at com.ibm.jsse2.bx.a(Unknown Source)
         at com.ibm.jsse2.bx.a(Unknown Source)
         at com.ibm.jsse2.v.a(Unknown Source)
         at com.ibm.jsse2.v.a(Unknown Source)
         at com.ibm.jsse2.u.a(Unknown Source)
         at com.ibm.jsse2.bx.a(Unknown Source)
         at com.ibm.jsse2.bx.l(Unknown Source)
         at com.ibm.jsse2.bx.startHandshake(Unknown Source)
         at com.ibm.net.ssl.www.protocol.https.b.o(Unknown Source)
         at com.ibm.net.ssl.www.protocol.https.q.connect(Unknown Source)
         at com.ibm.net.ssl.internal.www.protocol.https.HttpsURLConnection.connect(Unknown Source)
         at com.sun.identity.agents.common.URLFailoverHelper.isAvailable(URLFailoverHelper.java:190)
         at com.sun.identity.agents.common.URLFailoverHelper.getAvailableURL(URLFailoverHelper.java:129)
         at com.sun.identity.agents.filter.AmFilterRequestContext.getLoginURL(AmFilterRequestContext.java:757)
         at com.sun.identity.agents.filter.AmFilterRequestContext.getAuthRedirectURL(AmFilterRequestContext.java:285)
         at com.sun.identity.agents.filter.AmFilterRequestContext.getAuthRedirectURL(AmFilterRequestContext.java:258)
         at com.sun.identity.agents.filter.AmFilterRequestContext.getAuthRedirectResult(AmFilterRequestContext.java:363)
         at com.sun.identity.agents.filter.AmFilterRequestContext.getAuthRedirectResult(AmFilterRequestContext.java:345)
         at com.sun.identity.agents.filter.SSOTaskHandler.doSSOLogin(SSOTaskHandler.java:210)
         at com.sun.identity.agents.filter.SSOTaskHandler.process(SSOTaskHandler.java:98)
         at com.sun.identity.agents.filter.AmFilter.processTaskHandlers(AmFilter.java:189)
         at com.sun.identity.agents.filter.AmFilter.isAccessAllowed(AmFilter.java:152)
         at com.sun.identity.agents.websphere.AmIdentityAsserterBase.processRequest(AmIdentityAsserterBase.java:195)
         at com.sun.identity.agents.websphere.AmTrustAssociationInterceptor.negotiateValidateandEstablishTrust(AmTrustAssociationInterceptor.java:91)
         at com.ibm.ws.security.web.TAIWrapper.negotiateAndValidateEstablishedTrust(TAIWrapper.java:101)
         at com.ibm.ws.security.web.WebAuthenticator.handleTrustAssociation(WebAuthenticator.java:191)
         at com.ibm.ws.security.web.WebAuthenticator.authenticate(WebAuthenticator.java:928)
         at com.ibm.ws.security.web.WebCollaborator.authorize(WebCollaborator.java:531)
         at com.ibm.ws.security.web.EJSWebCollaborator.preInvoke(EJSWebCollaborator.java:262)
         at com.ibm.ws.webcontainer.webapp.WebAppSecurityCollaborator.preInvoke(WebAppSecurityCollaborator.java:132)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:506)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:208)
         at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:134)
         at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:321)
         at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
         at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:246)
         at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
         at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
         at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:652)
         at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:448)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:936)
    Caused by: com.ibm.jsse2.util.g: No trusted certificate found
         at com.ibm.jsse2.util.f.b(Unknown Source)
         at com.ibm.jsse2.util.f.b(Unknown Source)
         at com.ibm.jsse2.util.d.a(Unknown Source)
         at com.ibm.jsse2.bn.checkServerTrusted(Unknown Source)
         at com.ibm.jsse2.z.checkServerTrusted(Unknown Source)
         ... 39 more
    07/15/2007 04:19:11:797 PM IST: Thread[Servlet.Engine.Transports : 0,5,main]
    URLFailoverHelper: disconnected the connection for availability check
    07/15/2007 04:19:11:797 PM IST: Thread[Servlet.Engine.Transports : 0,5,main]
    ERROR: URLFailoverHelper: No URL is available at this time
    07/15/2007 04:19:11:797 PM IST: Thread[Servlet.Engine.Transports : 0,5,main]
    ERROR: AmFilter: Error while delegating to inbound handler: SSO Task Handler, access will be denied
    [AgentException Stack]
    com.sun.identity.agents.arch.AgentException: No URL is available at this time
         at com.sun.identity.agents.common.URLFailoverHelper.getAvailableURL(URLFailoverHelper.java:133)
         at com.sun.identity.agents.filter.AmFilterRequestContext.getLoginURL(AmFilterRequestContext.java:757)
         at com.sun.identity.agents.filter.AmFilterRequestContext.getAuthRedirectURL(AmFilterRequestContext.java:285)
         at com.sun.identity.agents.filter.AmFilterRequestContext.getAuthRedirectURL(AmFilterRequestContext.java:258)
         at com.sun.identity.agents.filter.AmFilterRequestContext.getAuthRedirectResult(AmFilterRequestContext.java:363)
         at com.sun.identity.agents.filter.AmFilterRequestContext.getAuthRedirectResult(AmFilterRequestContext.java:345)
         at com.sun.identity.agents.filter.SSOTaskHandler.doSSOLogin(SSOTaskHandler.java:210)
         at com.sun.identity.agents.filter.SSOTaskHandler.process(SSOTaskHandler.java:98)
         at com.sun.identity.agents.filter.AmFilter.processTaskHandlers(AmFilter.java:189)
         at com.sun.identity.agents.filter.AmFilter.isAccessAllowed(AmFilter.java:152)
         at com.sun.identity.agents.websphere.AmIdentityAsserterBase.processRequest(AmIdentityAsserterBase.java:195)
         at com.sun.identity.agents.websphere.AmTrustAssociationInterceptor.negotiateValidateandEstablishTrust(AmTrustAssociationInterceptor.java:91)
         at com.ibm.ws.security.web.TAIWrapper.negotiateAndValidateEstablishedTrust(TAIWrapper.java:101)
         at com.ibm.ws.security.web.WebAuthenticator.handleTrustAssociation(WebAuthenticator.java:191)
         at com.ibm.ws.security.web.WebAuthenticator.authenticate(WebAuthenticator.java:928)
         at com.ibm.ws.security.web.WebCollaborator.authorize(WebCollaborator.java:531)
         at com.ibm.ws.security.web.EJSWebCollaborator.preInvoke(EJSWebCollaborator.java:262)
         at com.ibm.ws.webcontainer.webapp.WebAppSecurityCollaborator.preInvoke(WebAppSecurityCollaborator.java:132)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:506)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:208)
         at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:134)
         at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:321)
         at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
         at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:246)
         at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
         at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
         at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:652)
         at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:448)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:936)
    Thanks,
    Yaseer

  • Problem with Tomcat 5.0

    Hi there,
    I have a .java file inside \WEB-INF\classes\ directory. This .java file has a "public static void main" method that calls al the other methods in the class.
    I want to know if its possible for me to create an JSP file to call this .java file. If so how can i do it?
    Thanks!!

    NerdVix wrote:
    Hi there,
    I have a .java file inside \WEB-INF\classes\ directory. Wrong. .java files do you no good in that directory. Only .class files belong there.
    This .java file has a "public static void main" method that calls al the other methods in the class.Fine - for testing on a command line.
    I want to know if its possible for me to create an JSP file to call this .java file. If so how can i do it?What part don't you understand? Writing JSPs? Calling methods? What is a person so ignorant doing with Tomcat anyway?
    It's possible to call main, but not a good idea.
    %

Maybe you are looking for