Location of class storage on Sun one

Hi all,
I am not a java programmer and I am supposed to post a questionnaire using jps files and Java classes.
The original code were delevoppped for appache and I would like to put them on a website using Sun One server.
The java classes were stored in the default location WEB-INF/classes/ directory in the file on the original setup.
But on our server, the system is not able to locate the java classes.
Does someone know where the default location are for the Sun One classes, and where this path is located ?
Thanks for your help.
Snow

Do you by any chance mean JSPs? And why don't you deploy your stuff in a WAR and stop worrying?

Similar Messages

  • Update server classes without restarting sun one web server 6.1

    hi,
    I'm facing a problem in updating server classes on sun one web server 6.1. i did not deploy any application and we are using simple jdbc+jsp approach.i write a class for db connections and now whenever i made some changes in it i must have to restart web server for changes to take effect. I also delete class files from classcache folder but it doesn't work.
    my class is placed on /opt/ and this path is also placed in web server class paths.
    i do not want to restart web server again and again. can some one tell me how to solve this problem.
    Regards,
    Kashif.

    if you just change your jsp files, you don't need to restart WebServer. WS will automatically recompile your jsps when it find the changes.
    You may also use reconfig command to reload server.

  • Classloader and Sun One Application Server 8

    Hello.
    The problem is that it is impossible to load the digester at application level. Instead of it the digester at application server (Sun One Application Server 8) level is loaded. How can I change the situation?
    Thanks.

    This is happening because generally before a class loader loads a class it lets the parent class loader to load the class.
    In Sun One App Server, only web apps can alter this behaviour. Set the delegate attibute of the class-loader element in sun-web.xml to false. This allows the web app class loader to load the class and only if the web app class loader fails to load the parent class loader is consulted.

  • Sun ONE Studio 4 aka Forte: How to set the output path for classes ?

    Help !
    Beginner's question:
    Sun ONE Studio 4 aka Forte:
    How to set the output path for classes ?
    As default, the class files are created in the same directory as the
    sources.
    In opposite, both JBuilder and Together support that there is a tree
    with the sources and another tree with the classes.
    The first answer I got was "not possible with Forte, but just if you write your own "ANT Build script" !
    a) Please point me to a ready-to-use ANT script for this purpose, if such is available
    b) Is using ANT instead of the MAKE as comfortable ? Besides the separation of sourcecode and classes, I would like to keep everything else to be the same, i.e. I don�t want to edit the ANT file if I enlarge the project by directories or files.
    Tia
    Sincerely
    Rolf

    You can set S1S's options to place newly created .class files in a specific location.
    Identify the compiler that is being used - Open the S1S's Tools/Options window, expand Editing and select Java Sources. Note the Default Compiler value. (If it's one if the Ant options, you use Ant to specify this option, not S1S.)
    Open the S1S's Tools/Options window, expand Building/Compiler Types and select the appropriate compiler.
    The Properties tab of the compiler has the property Target, which sets the filesystem where the compiler output is directed. If you choose <not set>, the .class files are written to their source directory.
    When you set the Target, your change affects all classes that use this compiler.
    Very few options can't be set in S1S; the challenge is finding out where they're set!

  • Sun ONE not seeing classes?

    Hello all,
    I recently installed Sun ONE as a programming environment on my machine. I am currently doing an assignment for school and I have three .java files in a directory called A1. I have compiled the files successfully before with Sun ONE but now I've made a few changes to one of the files and it doesn't seem to recognize one of the other classes in the directory. The class that is not being recognized is a pretty simple class called "Time" and this is a sample of the errors I get when trying to compile:
    A1/TimeInterval.java [11:1] cannot resolve symbol
    symbol : class Time
    location: class TimeInterval
    private Time start;
    ^
    The Time class was provided by my school so I don't think it's an issue with that. There's now a little "IOIOIOIII" icon by my changed java file. Any information on this would be greatly appreciated as I'm sure it's something simple that I'm overlooking =]
    Thanks
    Tyler

    I downloaded and installed the j2sdk1-4-1/S1 exe.....I
    figured that's all I would need to do?No, you need to complete the installation instructions to be able to use Java the way most people learn it. I think you have done everything up till step 5:
    http://java.sun.com/j2se/1.4.1/install-windows.html
    I'm sure S1 is a great tool but now it seems to get on the way a little and when a tool gets on the way you should try to use another tool.

  • Help needed in Finding Download location for Sun One Portal 7

    Hi,
    help needed for finding download location for Sun ONE Portal 7. I tried to find in Oracle Download page ,
    http://www.oracle.com/us/sun/sun-products-map-075562.html, But unable to find.
    Please share the link for download location.
    I am totally new in Sun ONE Portal.
    Thanks,
    Edited by: 945439 on Oct 5, 2012 3:41 AM

    try edelivery.oracle.com under sun products.

  • Transfer material from one storage location to another storage location

    Is there any bapi  to transfer material from one storage location to another storage location

    Hi,
    You need to use the below BAPI
    BAPI_GOODSMVT_CREATE
    Regards
    Sudheer

  • Q: How to setting the Sun ONE Studio JDK and Class(and file) Path.

    1.I'll use two JDK version.
    2.I'll add the Oracle JDBC driver.
    3.In my city, I'm didn't find the Sun ONE Studio book.(Forte for Java 4).
    need help.
    Thank you.

    Dear javaunter20000,
    I'm used the Windows XP Professional(SP1),
    I'm use the
    Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
    String url="jdbc:oracle:thin:@127.0.0.1:1521:netcob";
    String user="***"; String password="***";
    Connection conn= DriverManager.getConnection(url,user,password);
    connect Orcale, compiler return:
    ***[34:1] unreported exception java.lang.ClassNotFoundException; must be caught or declared to be thrown
    Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
    ^
    ***[34:1] unreported exception java.lang.InstantiationException; must be caught or declared to be thrown
    Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
    ^

  • Mysql CLASS on Sun ONE, need help!

    I am trying to set the classpath for Mysql on my computer, to develop a application in hava with mysql.
    And I did exactly that:
    "Put mysql-connector-j-2.0.14-bin.jar in your classpath, either by adding the FULL path to it to your CLASSPATH enviornment variable, or putting it in $JAVA_HOME/jre/lib/ext."
    I putted in the $JAVA_HOME/jre/lib/ext. directory.
    I got that from the readme file that comes with the mysql file that I downloaded from the mysql.com website.
    But wherener I type "import[space]" it shows the list of the possibles packeges to import, but it does not shows the mysql packeges. I am using SUN ONE 4 CE. PLEASE somebody help!!!
    I am on windows XP.
    Thanks in advanced...

    Connection connection = null;
        try {
            // Load the JDBC driver
            String driverName = "org.gjt.mm.mysql.Driver"; // MySQL MM JDBC driver
            Class.forName(driverName);
            // Create a connection to the database
            String serverName = "localhost";
            String mydatabase = "mydatabase";
            String url = "jdbc:mysql://" + serverName +  "/" + mydatabase; // a JDBC url
            String username = "username";
            String password = "password";
            connection = DriverManager.getConnection(url, username, password);
        } catch (ClassNotFoundException e) {
            // Could not find the database driver
        } catch (SQLException e) {
            // Could not connect to the database
        }This will give you your connection, and from there do you know how
    to execute queries??

  • Crystal Reports XI and Sun One 6.1 web server SP 5 Error finding JNDI name

    I am trying to create a Crystal Reports XI report in a JSP using Sun One 6.1 Web server sp 5.
    At this point I am getting the error �Error finding JNDI name� on Sun One
    The application will run on Netbeans/Tomcat
    I have done the following:
    I edited CRConfig.xml
    <?xml version="1.0" encoding="utf-8"?>
    <CrystalReportEngine-configuration>

    <DataDriverCommon>
         <JavaDir>C:\Program Files\Java\j2re1.4.2_10\bin</JavaDir>
    <Classpath>C:\oracle\product\10.2.0\client_1\jdbc\lib\ojdbc14.jar;�</Classpath>

    <JDBC>
         <CacheRowSetSize>100</CacheRowSetSize>
         <JDBCURL>jdbc:oracle:thin:@10.10.10.10:1521:dev</JDBCURL>
         <JDBCClassName>oracle.jdbc.driver.OracleDriver</JDBCClassName>
         <JDBCUserName>lab_ro</JDBCUserName>
         <JNDIURL></JNDIURL>

    </JDBC>
    I created a report using JDBC (JNDI) connection and have the JNDI Connection set to the name of DATA.
    The report works just fine in Crystal Reports.
    Then in Netbeans I created an application and it runs in the Tomcat part of Netbeans
    In context.xml I have:
    <Context path="/BOEnterpriseTest3">
    <Resource name="jdbc/dev" auth="Container" type="javax.sql.DataSource"
    driverClassName="oracle.jdbc.driver.OracleDriver" url="jdbc:oracle:thin:@10.10.10.10:1521:dev"
    username="theuserid" password="thepassword" maxActive="20" maxIdle="10" maxWait="-1"/>
    </Context>
    In web.xml I have
    <web-app>
    <context-param>
    <param-name>crystal_image_uri</param-name>
    <param-value>crystalreportviewers11</param-value>
    </context-param>

    <taglib>
    <taglib-uri>/crystal-tags-reportviewer.tld</taglib-uri>
    <taglib-location>/WEB-INF/crystal-tags-reportviewer.tld</taglib-location>
    </taglib>
    <resource-ref>
    <description>jdbc:oracle:thin:@10.10.10.10:1521:dev</description>
    <res-ref-name>jdbc/dev10g</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Application</res-auth>
    <res-sharing-scope>Shareable</res-sharing-scope>
    </resource-ref>
    <resource-ref>
    <description>jdbc:oracle:thin:@10.10.10.10:1521:dev</description>
    <res-ref-name>Data</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Application</res-auth>
    <res-sharing-scope>Shareable</res-sharing-scope>
    </resource-ref>
    </web-app>
    in web-inf\sun-web.xml I have
    <sun-web-app>
    <resource-ref>
    <res-ref-name>jdbc/dev10g</res-ref-name>
    <jndi-name>Data</jndi-name>
    </resource-ref>
    </sun-web-app>
    I have copied all of Common Files\Business Objects\3.0\java\lib and Common Files\Business Objects\3.0\java\lib\external to the lib folder
    I have copied crystalreportviewers11 to the root of my web application
    I have tried to load the JNDI information and display the report
    <%@page pageEncoding="UTF-8"
    import="com.crystaldecisions.reports.reportengineinterface.*,
    com.crystaldecisions.report.web.viewer.*,
    javax.naming.*,
    javax.sql.*,
    java.sql.*"%>
    <%
    InitialContext initContext = new InitialContext();
    DataSource source = (DataSource) initContext.lookup("java:comp/env/jdbc/dev10g");
    Context initCtx = new InitialContext();
    Context envCtx = (Context) initCtx.lookup("java:comp/env");
    try{
         // Look up our data source
    DataSource ds = (DataSource)initCtx.lookup("Data");
    out.println("found ds under jdbc/Data");
    catch ( NamingException e ){
    // Look up our data source
    DataSource ds = (DataSource) initContext.lookup("java:comp/env/jdbc/dev10g");
    initCtx.bind("Data", ds);     
    out.println("found ds under java:com/env:jdbc/Data - bound into root initial context for Crystal to find");
    %>
    <%
    //Use the relative path to the report; the physical or full qualified URL cannot be used.
    String reportName = "useridincluded.rpt";
    //Database username and password
    String userName = "theuserid";
    String password = "thepassword";
    //check to see if the Report Source Session Variable already exist
    Object reportSource = session.getAttribute("Report1");
    // Create a new ConnectionInfos and ConnectionInfo object
    com.crystaldecisions.sdk.occa.report.data.ConnectionInfos connectionInfos = new com.crystaldecisions.sdk.occa.report.data.ConnectionInfos();
    com.crystaldecisions.sdk.occa.report.data.ConnectionInfo connectionInfo = new com.crystaldecisions.sdk.occa.report.data.ConnectionInfo();
    //Set username and password for the report's database
    connectionInfo.setUserName(userName);
    connectionInfo.setPassword(password);
    //Add object to collection
    connectionInfos.add(connectionInfo);
    //---------- Create a ReportClientDocument -------------
    com.crystaldecisions.reports.sdk.ReportClientDocument reportClientDocument = new com.crystaldecisions.reports.sdk.ReportClientDocument();
    //---------- Set the path to the location of the report soruce -------------
    //Open report.
    reportClientDocument.open(reportName, 0);
    //Get the report source
    reportSource = reportClientDocument.getReportSource();
    //---------- Create the viewer and render the report -------------
    //create the CrystalReportViewer object
    com.crystaldecisions.report.web.viewer.CrystalReportViewer crystalReportViewer = new com.crystaldecisions.report.web.viewer.CrystalReportViewer();
    //set the reportsource property of the viewer
    crystalReportViewer.setReportSource(reportSource);
    //set the DB logon into the viewer
    crystalReportViewer.setDatabaseLogonInfos(connectionInfos);
    //set viewer attributes
    crystalReportViewer.setOwnPage(true);
    crystalReportViewer.setOwnForm(true);
    crystalReportViewer.refresh();
    //set the CrystalReportViewer print mode
    //crystalReportViewer.setPrintMode(com.crystaldecisions.report.web.viewer.CrPrintMode.ACTIVEX);
    crystalReportViewer.setPrintMode(com.crystaldecisions.report.web.viewer.CrPrintMode.PDF);
    //process the report
    crystalReportViewer.processHttpRequest(request, response, getServletConfig().getServletContext(), null);
    %>
    On the Sun One Web server
    On the Java Tab
    JDBC Connection Pools
    Pool Name = dev10g
    Class name = oracle.jdbc.pool.OracleDataSource
    User id = theuserid
    url = 10.10.10.10
    password=thepassword
    JDBC Resources
    JNDI Name=dev10g
    Pool = dev10g
    I get the error finding JNDI name � how do I tell Sun One where the JNDI is to make Crystal Reports work?

    I tried the following to test the JNDI
    I am trying to do JNDI in Sun One Web server 6.1 sp 5 but I seem to be missing an important part. I get two different errors based on the JSP code, �Cannot retrieve data source: javax.naming.NamingException: Cannot create resource instance� or �Cannot retrieve data source: javax.naming.NamingException: Cannot create resource instance�.
    Context.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <Context path="/BOTest">
      <Resource name="jdbc/dev10g" auth="Container" type="javax.sql.DataSource"
    driverClassName="oracle.jdbc.driver.OracleDriver" url="jdbc:oracle:thin:@10.10.10.10:1521:dev10g"
    username="userid" password="password" maxActive="20" maxIdle="10" maxWait="-1"/>
      <Resource name="Data" auth="Container" type="javax.sql.DataSource"
    driverClassName="oracle.jdbc.driver.OracleDriver" url="jdbc:oracle:thin:@10.10.10.10:1521:dev10g"
    username="userid" password="password" maxActive="20" maxIdle="10" maxWait="-1"/>
    </Context>Sun-one.xml:
    <sun-web-app>
    <context-root>BOTest</context-root>
    <resource-ref>
    <res-ref-name>jdbc/dev10g</res-ref-name>
    <jndi-name>jdbc/dev10g</jndi-name>
    </resource-ref>
    </sun-web-app>web.xml:
    <?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>
        <session-config>
            <session-timeout>
                30
            </session-timeout>
        </session-config>
        <welcome-file-list>
         <welcome-file>
                index.jsp
            </welcome-file>
        </welcome-file-list>
        <resource-ref>
            <description>jdbc:oracle:thin:@10.10.10.10:1521:dev10g</description>
            <res-ref-name>jdbc/dev10g</res-ref-name>
            <res-type>javax.sql.DataSource</res-type>
            <res-auth>Application</res-auth>
            <res-sharing-scope>Shareable</res-sharing-scope>
        </resource-ref>
        <resource-ref>
            <description>jdbc:oracle:thin:@10.10.10.10:1521:dev10g</description>
            <res-ref-name>Data</res-ref-name>
            <res-type>javax.sql.DataSource</res-type>
            <res-auth>Application</res-auth>
            <res-sharing-scope>Shareable</res-sharing-scope>
        </resource-ref>
    </web-app>server.xml has:
    <RESOURCES>
    - <JDBCCONNECTIONPOOL name="dev10g" datasourceclassname="oracle.jdbc.pool.OracleDataSource" steadypoolsize="8" maxpoolsize="32" poolresizequantity="2" idletimeout="300" maxwaittime="60000" connectionvalidationrequired="off" connectionvalidationmethod="auto-commit" validationtablename="" failallconnections="off" transactionisolationlevel="read-uncommitted" isolationlevelguaranteed="off">
      <PROPERTY name="URL" value="jdbc:oracle:thin:@10.45.3.197:1521:dev10g" />
      <PROPERTY name="User" value="lab_ro" />
      <PROPERTY name="Password" value="0asphalt1" />
      </JDBCCONNECTIONPOOL>
      <JDBCRESOURCE jndiname="jdbc/dev10g" poolname="dev10g" enabled="on" />
      <JDBCRESOURCE jndiname="Data" poolname="dev10g" enabled="on" />
    - <JDBCCONNECTIONPOOL name="Data" datasourceclassname="oracle.jdbc.pool.OracleDataSource" steadypoolsize="8" maxpoolsize="32" poolresizequantity="2" idletimeout="300" maxwaittime="60000" connectionvalidationrequired="off" connectionvalidationmethod="auto-commit" validationtablename="" failallconnections="off" transactionisolationlevel="read-uncommitted" isolationlevelguaranteed="off">
      <PROPERTY name="User" value="lab_ro" />
      <PROPERTY name="URL" value="jdbc:oracle:thin:@10.45.3.197:1521:dev10g" />
      <PROPERTY name="Password" value="0asphalt1" />
      </JDBCCONNECTIONPOOL>
      <JDBCRESOURCE jndiname="jdbc/Data" poolname="Data" enabled="on" />
      <JDBCRESOURCE jndiname="dev10g" poolname="dev10g" enabled="on" />
      </RESOURCES>I am getting the following error: �Cannot retrieve data source: javax.naming.NamingException: Cannot create resource instance�
    With the following code:
    <%@page
       import="java.io.*,
               javax.sql.*,
               javax.naming.*,
               java.sql.*,
               java.util.*"%>
    <%
    Context init;
    Context ctx;
    DataSource datasource;
    Connection con;
    try
    init = new InitialContext();
    Context envCtx = (Context) init.lookup("java:comp/env");
    datasource = (DataSource)  envCtx.lookup("jdbc/dev10g");
    catch(NamingException ex)
        out.print("Cannot retrieve data source: " + ex.toString(true));
        return;
    try
        con = datasource.getConnection();
    catch (Exception e)
      out.print("Cannot retrieve connection: " + e.toString());
      return;
    try
        PreparedStatement pstmt = con.prepareStatement("SELECT PROJNO FROM MATERIALSLAB.VW_ASPHALTHEADERINFO");
        ResultSet results = pstmt.executeQuery();
        while (results.next())
        out.println(results.getString(1));
    catch(Exception ex)
    out.print("Got connection, can't execute query: " + ex.toString());
    return;
    %>I get the following error: Cannot retrieve data source: javax.naming.NamingException: Cannot create resource instance
    With the following code:
    <%@page
       import="java.io.*,
               javax.sql.*,
               javax.naming.*,
               java.sql.*,
               java.util.*"%>
    <%
    Context init;
    Context ctx;
    DataSource datasource;
    Connection con;
    try
        init = new InitialContext();
        ctx = (Context) init.lookup("java:comp/env");
        datasource = (DataSource) ctx.lookup("jdbc/dev10g");
    catch(NamingException ex)
        out.print("Cannot retrieve data source: " + ex.toString(true));
        return;
    try
        con = datasource.getConnection();
    catch (Exception e)
      out.print("Cannot retrieve connection: " + e.toString());
      return;
    try
        PreparedStatement pstmt = con.prepareStatement("SELECT PROJNO FROM MATERIALSLAB.VW_ASPHALTHEADERINFO");
        ResultSet results = pstmt.executeQuery();
        while (results.next())
        out.println(results.getString(1));
    catch(Exception ex)
    out.print("Got connection, can't execute query: " + ex.toString());
    return;
    %>

  • Creating a connection pool using SQL Server 2000, Sun ONE Application Serve

    Has any one succesfully configured SQL Server 2000 to work with Sun ONE Application Server 7 on Windows 2000 server service pack 4? I am embarking on a new J2EE project and I need to configure it as soon as possible.
    The problem I am having is that, when I ping the data souce name, there is a connection error.
    I have set the data source name and other details as follows:
    Under JDBC, I have set the parameters for the connection pool as follows:
    Data Source Name:      com.microsoft.jdbc.sqlserver.SQLServerDriver
    Database Name:          jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=Test
    User:               test
    Password:          test
    In the JVM settings page, I have set the prefix class path as follows for the location of the Microsoft JDBC
    drivers that I downloaded as follows:
    c:\microsoft\drivers/lib/msbase.jar
    c:\microsoft\drivers/lib/msutil.jar
    c:\microsoft\drivers/lib/mssqlserver.jar
    Under JVM Options, there is a strange setting which I don't understand: perhaps this is the cause of the
    connction error?
    -Djdbc.drivers=com.pointbase.jdbc.jdbcUniversalDriver
    Please help????

    I'm in a similar boat...
    Trying to setup AS7 JDBC and followed the instructions on the link you provided and get the following exception. I kept the case the same, thinking 'setpassword" was incorrect, so I tried changing the property to "Password", but get the same exception but it points to "setPassword" instead.
    SEVERE: RAR5041:Cannot get jdbc connection
    com.sun.enterprise.repository.J2EEResourceException
    java.lang.NoSuchMethodException: setpassword
    at com.sun.enterprise.repository.JdbcConnectionPool.createDataSource(JdbcConnectionPool.java:243)
    at com.sun.enterprise.resource.JdbcUrlAllocator.createResource(JdbcUrlAllocator.java:80)
    at com.sun.enterprise.resource.IASNonSharedResourcePool.createSteadyResources(IASNonSharedResourcePool.java:856)
    at com.sun.enterprise.resource.IASNonSharedResourcePool.initPool(IASNonSharedResourcePool.java:416)
    at com.sun.enterprise.resource.IASNonSharedResourcePool.internalGetResource(IASNonSharedResourcePool.java:625)
    at com.sun.enterprise.resource.IASNonSharedResourcePool.getResource(IASNonSharedResourcePool.java:520)
    at com.sun.enterprise.resource.PoolManagerImpl.getResourceFromPool(PoolManagerImpl.java:263)
    at com.sun.enterprise.resource.JdbcXAConnection.<init>(JdbcXAConnection.java:74)
    at com.sun.enterprise.resource.Jdbc10XaAllocator.createResource(Jdbc10XaAllocator.java:94)
    at com.sun.enterprise.resource.IASNonSharedResourcePool.createSteadyResources(IASNonSharedResourcePool.java:856)
    at com.sun.enterprise.resource.IASNonSharedResourcePool.initPool(IASNonSharedResourcePool.java:416)
    at com.sun.enterprise.resource.IASNonSharedResourcePool.internalGetResource(IASNonSharedResourcePool.java:625)
    at com.sun.enterprise.resource.IASNonSharedResourcePool.getResource(IASNonSharedResourcePool.java:520)
    at com.sun.enterprise.resource.PoolManagerImpl.getResourceFromPool(PoolManagerImpl.java:263)
    at com.sun.enterprise.resource.PoolManagerImpl.getResource(PoolManagerImpl.java:170)
    at com.sun.enterprise.resource.JdbcDataSource.internalGetConnection(JdbcDataSource.java:241)
    at com.sun.enterprise.resource.JdbcDataSource.getConnection(JdbcDataSource.java:98)
    at com.rvi.database.jdbcConnection.getConnection(jdbcConnection.java:93)
    at com.webapp.database.ArticlesDAO.selectByYear(ArticlesDAO.java:102)
    at com.webapp.actions.ArticleAction.list(ArticleAction.java:96)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:280)
    at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:216)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
    at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
    at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
    at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:278)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
    at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:157)
    at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)

  • Help??? Logging in to Sun ONE Instant Messenger problem

    Hi all,
    I have just install Sun One Web server 6.1, Sun One Directory 5.2 and Sun One Instant Messaging 6.1 together on Win2K advance server. And I have successful launch Sun� ONE Instant Messenger.
    But I can not know, how to create LDAP user ID and password to Login to Sun ONE Instant Messenger???
    Could anyone help me to solve this problem?
    I'm looking forward to receive your reply soon.
    Thanks

    Thanks for your reply, I've read you suggest. And I also know that, I must do some thing as you talk above. But I'm sorry because, I'm only a beginner of Sun ONE application so I do not know how to step by step to do this. I list content of my iim.conf file below. Could you tell me, how can I create IM user and password on LDAP? and what Configuration Parameters I must change? And what is this value? I hope that you will help me. I�m stuck in this problem for five days. And I have know light to solve it.
    Here is content of my iim.conf file:
    ! iim.conf : IIM Configuration file
    ! General configuration options
    ! =============================
    ! Options that are common to all modules.
    ! Modules configured - server & multiplexor or only multiplexor?
    iim.comm.modules = "iim_server,iim_mux"
    ! SMTP server to contact to send email messages.
    iim.smtpserver = "VIETTEL.z78.z78.com"
    ! Instance directory
    iim.instancedir = "C:/Program Files/Sun/Instant Messaging"
    ! Instance directory
    iim.instancevardir = "C:/Program Files/Sun/Instant Messaging"
    ! User the IM processes should run as
    iim.user = ""
    ! Group under which the IM processes should run
    iim.group = ""
    ! config file version
    iim.config.version = "1.1"
    ! Java command
    iim.jvm.command = "java/jre/bin/java"
    ! Policy specific options
    ! =======================
    ! This section contains options specific to user sources
    ! and other policy stuff.
    ! The ldap server name and port.
    iim_ldap.host = "VIETTEL.z78.z78.com:389"
    ! The string to be used as base to do searches on this LDAP server.
    iim_ldap.searchbase = "o=z78.z78.com"
    ! Search filter for user login.
    iim_ldap.loginfilter = "(&(objectclass=inetorgperson)(uid={0}))"
    !The search filter used to search for users and groups in the directory by id.
    iim_ldap.usergroupbyidsearchfilter = "(|(&(objectclass=groupofuniquenames)(dn={0}))(&(objectclass=inetorgperson)(uid={0})))"
    !The search filter used to search for users and groups in the directory by name.
    iim_ldap.usergroupbynamesearchfilter = "(|(&(objectclass=groupofuniquenames)(cn={0}))(&(objectclass=inetorgperson)(cn={0})))"
    ! Determine whether wildcard searches should be allowed with uids
    iim_ldap.allowwildcardinuid = "False"
    ! The ldap class that indicates that an entry belongs to a user.
    iim_ldap.userclass = "inetOrgPerson"
    ! The ldap class that indicates that an entry belongs to a group.
    iim_ldap.groupclass = "groupOfUniqueNames"
    ! The search filter used to browse all groups in the directory
    ! under given base.
    iim_ldap.groupbrowsefilter = "(objectclass=groupofuniquenames)"
    ! Maximum number of entries to be returned by a search.
    ! 0 indicates unlimited search and -1 disables all search.
    iim_ldap.searchlimit = "40"
    ! Ldap attribute to use for display name of users.
    iim_ldap.userdisplay = "cn"
    ! Ldap attribute to use for display name of groups.
    iim_ldap.groupdisplay = "cn"
    ! Ldap attribute used as user uid.
    iim_ldap.useruidattr = "uid"
    ! Ldap attribute that gives the list of members of a group.
    iim_ldap.groupmemberattr = "uniquemember"
    ! Ldap attribute where user's email address is
    iim_ldap.usermailattr = "mail"
    ! The frequency at which the in memory user and group information
    ! is updated from LDAP, in minutes.
    iim_ldap.resynctime = "720"
    ! Ldap user id used for binding to the directory server
    !*************Tuan Anh change 02/07
    !iim_ldap.usergroupbinddn = ""
    iim_ldap.usergroupbinddn = <bind dn>
    ! Ldap password for binding to the directory server
    !*************Tuan Anh change 02/07
    ! iim_ldap.usergroupbindcred = ""
    iim_ldap.usergroupbindcred =<credentials for bind dn>
    ! Logging
    ! =======
    ! Logging configuration for all modules
    ! There are 6 severity levels for logs.
    !     DEBUG     debug/trace information
    !     INFO     log important information not indicative of a problem.
    !     WARNING     user error. The sofware is behaving properly but is not
    !          used properly.
    !     NOTICE report status of the various software components.
    !     ERROR     recoverable software or system error. The software or
    !          system is not behaving as expected, however the error
    ! can be recovered from.
    !     FATAL     unrecoverable error forcing the software to
    !          stop functioning.
    ! Log severity for the server component.
    iim.log.iim_server.severity = "NOTICE"
    ! Log severity for the multiplexor component.
    iim.log.iim_mux.severity = "ERROR"
    ! Server log file.
    iim.log.iim_server.url = "C:/Program Files/Sun/Instant Messaging/log/server.log"
    ! Multiplexor log file.
    iim.log.iim_mux.url = "C:/Program Files/Sun/Instant Messaging/log/mux.log"
    ! IIM server configuration
    ! ========================
    ! IIM server specific configuration options
    ! Name of the domain supported by this server.
    iim_server.domainname = "z78.z78.com"
    ! Should the server listen on the server to server communication port?
    iim_server.useport = "True"
    ! Server to server communication port.
    iim_server.port = "49919"
    ! Should the server to server ssl communication be enabled?
    iim_server.usesslport = "False"
    ! Should the server be enabled
    iim_server.enable = "true"
    ! Time the server will let a client be idle before disconnecting it,
    ! in minutes.
    iim_server.clienttimeout = "15"
    ! whether to use SSO
    iim_server.usesso = "0"
    ! user properties storage, can be file or ldap
    !iim.userprops.store = "file"
    ! Tuan Anh change 05/07/2004
    iim.userprops.store = "ldap"
    ! IIM multiplexor configuration
    ! =============================
    ! Multiplexor specific options
    ! IP address and listening port for the multiplexor.
    ! WARNING: If this value is changed, the port value of '-server' argument
    ! in the client's iim.html and iim.jnlp files should also be changed to match this.
    iim_mux.listenport = "VIETTEL.z78.z78.com:49909"
    ! The IIM server and port the multiplexor talks to.
    iim_mux.serverport = "VIETTEL.z78.z78.com:49999"
    ! Should the multiplexor be enabled
    iim_mux.enable = "true"
    ! Number of instances of the multiplexor.
    iim_mux.numinstances = "1"
    ! Maximum number of threads per instance
    iim_mux.maxthreads = "20"
    ! Maximum number of concurrent connections per multiplexor process
    iim_mux.maxsessions = "1000"

  • HTTP transport  and Sun ONE Message Queue

    How do I get the HTTP transport to work? The docs don't seem to be correct.

    There are a couple of errors in the Sun ONE Message Queue docs that shipped with
    the product.
    The following are corrections for those errors.
    Servlet configuration
    Please note the following correction in the Sun ONE Message Queue 2.0
    Administration Guide, Appendix B -
    The class name of the HTTP Servlet in Step 4 of the "Configuring the Tunnel Servlet"
    section is given as:
    com.sun.messging.jmq.transport.httptunnel.servlet.HTTPTunnelServlet
    The correct class name is :
    com.sun.messaging.jmq.transport.httptunnel.servlet.HttpTunnelServlet
    Client setup for HTTP support
    1.The following connection factory attributes must be specified to use the HTTP
    tunnel connection support.
    JMQConnectionType :
    Set this attribute to "HTTP".
    JMQConnectionURL :
    Set this attribute to the URL that will be used to connect to the Sun ONE
    Message Queue message service (i.e. the URL for the HTTP tunnel servlet).
    Note that there is no need to specify the JMQConnectionHandler attribute as
    mentioned in the Sun ONE Message Queue 2.0 Administration Guide -
    Appendix B.
    2.Before running the client application, set the CLASSPATH variable to include
    jmqutil.jar in addition to the standard Sun ONE Message Queue jar files.
    This file is located at "/opt/SUNWjmq/lib/jmqutil.jar".
    If the "jmqutil.jar" file is not included in the CLASSPATH, the client will get a
    "java.lang.NoClassDefFoundError" exception for the class
    "com/sun/messaging/jmq/util/JMQTimerTask".
    3.If you are using an HTTP proxy, set "http.proxyHost" to the proxy server host
    name, and "http.proxyPort" to the proxy server port number using the -D
    command line option.
    An example command line would look like this:
    java -classpath
    /opt/SUNWjmq/lib/jms.jar:/opt/SUNWjmq/lib/jmq.jar:
    /opt/SUNWjmq/lib/jndi.jar:.:/opt/SUNWjmq/lib/jmqutil.jar
    -DJMQConnectionType=HTTP
    -DJMQConnectionURL=http://webserver:80/imq/servlet ClientApplicaiton

  • Error during Sun ONE App server 7 startup

    hi
    i am getting the following error when i try to start my app server. given below is the error messages that i am getting. can some one help me with this
    [12/Apr/2003:16:55:49] INFO ( 1688): CORE1116: Sun ONE Application Server 7.0
    [12/Apr/2003:16:55:51] INFO ( 1688): CORE5076: Using [Java HotSpot(TM) Server VM, Version 1.4.0_02] from [Sun Microsystems Inc.]
    [12/Apr/2003:16:55:53] INFO ( 1688): ADM0002:System MBean initialized:[ias:type=controller]
    [12/Apr/2003:16:55:53] INFO ( 1688): ADM0002:System MBean initialized:[ias:type=configurator]
    [12/Apr/2003:16:55:53] INFO ( 1688): ADM0001:MBeanServer initialized successfully
    [12/Apr/2003:16:55:53] INFO ( 1688): ADM0005:Timestamp files for configuration created for:[admin-server]
    [12/Apr/2003:16:55:54] INFO ( 1688): ADM0005:Timestamp files for configuration created for:[server1]
    [12/Apr/2003:16:55:54] INFO ( 1688): ADM0102: Starting a thread for tracking manual changes
    [12/Apr/2003:16:55:57] INFO ( 1688): IOP5053: Received a locate request on a disabled connection. Locate requests are permitted.
    [12/Apr/2003:16:55:58] INFO ( 1688): JTS5014: Recoverable JTS instance, serverId = [100]
    [12/Apr/2003:16:55:59] INFO ( 1688): RAR5060: Install JDBC Datasources ...
    [12/Apr/2003:16:55:59] INFO ( 1688): JMS5015: Install JMS resources ...
    [12/Apr/2003:16:55:59] SEVERE ( 1688): CORE4007: Internal error: Unexpected Java exception thrown (unknown exception, no description), stack: java.lang.ExceptionInInitializerError
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:130)
         at com.iplanet.ias.jms.IASJmsUtil.getJMSAdminFactory(IASJmsUtil.java:96)
         at com.iplanet.ias.jms.IASJmsUtil.getJMSAdmin(IASJmsUtil.java:107)
         at com.iplanet.ias.jms.IASJmsConfig.getJmsAdmin(IASJmsConfig.java:196)
         at com.iplanet.ias.jms.IASJmsConfig.<init>(IASJmsConfig.java:71)
         at com.iplanet.ias.jms.IASJmsUtil.installJMSResources(IASJmsUtil.java:168)
         at com.sun.enterprise.resource.ResourceInstaller.installJMSResources(ResourceInstaller.java:1383)
         at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:418)
         at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:1415)
         at com.iplanet.ias.server.ApplicationServer.onInitialization(ApplicationServer.java:212)
         at com.iplanet.ias.server.J2EERunner.confPreInit(J2EERunner.java:114)
    Caused by: java.util.MissingResourceException: Can't find bundle for base name com.sun.messaging.jmq.admin.resources.AdminResources, locale en_US
         at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:804)
         at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:773)
         at java.util.ResourceBundle.getBundle(ResourceBundle.java:538)
         at com.sun.messaging.jmq.admin.util.Globals.getAdminResources(Globals.java:75)
         at com.sun.messaging.jmq.admin.jmsspi.JMSAdminFactoryImpl.<clinit>(JMSAdminFactoryImpl.java:25)
         ... 12 more
    [12/Apr/2003:16:55:59] SEVERE ( 1688): CORE3186: Failed to set configuration

    hi
    i was able to solve the error :-).
    I was trying to migrate an application from iAS 6.5 to 7.0. During the deployment of the application (using ant scripts) a few jar files required for the application to run were copied to the jdk\jre\lib\ext folder. Those files were the cause of the problem. Once i removed those files i was able to start up the application server..
    Thanks
    Narayan

  • Using precompiled JSPs on Sun ONE 6.1 SP5

    I"m using precompiled JSPs on Sun ONE 6.1 SP5. I have created a virtual server which has one web application deployed as the default web application located at <server-instance>/webapps/myapp. So in the server.xml it appears as :
    <webapp uri="/" path="<server-instnce/webapps/myapp"
    I have precompiled the JSPs using the jspc tool and created the directory containing the class files and have put them under WEB-INF/classes directory. I also generated the web.xml file with mappings for all jsps.
    My problem is that in my web.xml I have specified the <welcome-file> as index.jsp which used to reside under the <server-instance>/webapps/myapp directory. but now since i'm using precompiled versions i have physically removed that file. And now when i point my browser to the app's URL in the browser, i get the app's directory structure and only when i explicitly point my browser to https://<ip>:port/index.jsp then only the index.jsp page is invoked. I'm confused with this behavior. Do I need to change my docsroot directory to point to where the jsp class files are stored? I dont know what else can be going wrong...
    Any help appreciated :D
    Thanks

    Okkay i'll make my question easier.. if i'm using precompiled JSPs i.e. all compiled JSP files (.class files) including index.jsp is in the WEB-INF/classes directory then what is our docroot property supposed to be. Since if I give the document root as <server-instance>/webapps/myapp then it doesnt show the index.jsp that its supposed to when i point my browser to https://<host>:port. Only when I do https://<host>:port/index.jsp the index.jsp servlet is called and the index.jsp page is rendered.... I removed all the jsps physically from my apps folder but when I put only index.jsp there then it does work properly.... so any thoughts on this anyone...

Maybe you are looking for