Where is Sun One Web Server's equivalent to Tomcat's common/lib

i'm new to sun one web server and i'm trying to set up a connection pool. i set up a resource using the server manager but when i try to run my app, it produces a
java.lang.ClassNotFoundException: oracle.jdbc.pool.OracleDataSourcei have the oracle driver jar i just dn't know where to put it.
can anyone help?

No, the jars would not be picked up unless they are explicitely added to the server.xml classpathsuffix, or put in the web server instance lib directory.
Ex 1: putting them in the instance lib dir (no need to add them to classpathsuffix):
/opt/SUNWwbsvr/https-hostname.domainname/lib/
Ex. 2: If you have a jar file in your home directory, for example:
/home/username/lib/classes12.jar
You could have to add it to the classpath prefix in server.xml:
<JAVA ... classpathsuffix="/home/username/lib/classes12.jar" ... >
In this case, you could have all three server pointing to the same jar.
The nativelibrarypathprefix is for native lib files (platform specific files, not jars)

Similar Messages

  • How do you get Sun One Web Server to read white spacing in a url

    Hi guys,
    I am currently using Sun One Web Server and this is the problem that i am currently facing.
    The url which is i am trying to read from the Sun One Web Server is http://test:8000/test/Testing%20A%20B
    The error which i am getting is java.lang.RuntimeException: java.net.URISyntaxException: Illegal character in path
    The reason why this is happening is because the original url is http://test:8000/test/Testing A B It has spacing in between the url. I cannot get rid of the spacing thru the code where its bound to a Content Management System. So the only way is to get the Sun One Web Server to be able to read this kind of url. There are about 300 to 400 of this types of url as they are dynamically generated.
    I was looking at the obj.conf and magnum.conf file to see whether i can manipulate this url to work for this situation. But with no luck.
    Can anyone please let me know if they have came across this problem.
    Thanks.

    Hi,
    This is the stack Trace:
    Error 500--Internal Server Error
    java.lang.RuntimeException: java.net.URISyntaxException: Illegal character in path at index 29: /models/Sportwagon/Sportwagon SS V-Series
         at au.com.holden.cs.assembler.FriendlyURLAssembler.getInputURI(FriendlyURLAssembler.java:329)
         at au.com.holden.web.mvc.ViewUtil.getInputModelAndView(ViewUtil.java:29)
         at au.com.holden.web.mvc.navigation.ModelNavigationController.handleNoSuchRequestHandlingMethod(ModelNavigationController.java:17)
         at org.springframework.web.servlet.mvc.multiaction.MultiActionController.handleRequestInternal(MultiActionController.java:375)
         at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
         at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:45)
         at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:820)
         at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:755)
         at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:396)
         at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:350)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: java.net.URISyntaxException: Illegal character in path at index 29: /models/Sportwagon/Sportwagon SS V-Series
         at java.net.URI$Parser.fail(URI.java:2809)
         at java.net.URI$Parser.checkChars(URI.java:2982)
         at java.net.URI$Parser.parseHierarchical(URI.java:3066)
         at java.net.URI$Parser.parse(URI.java:3024)
         at java.net.URI.(URI.java:578)
         at au.com.holden.cs.assembler.FriendlyURLAssembler.getInputURI(FriendlyURLAssembler.java:326)
         ... 26 more
    This is the path which was access by me using Sun One Web Server: http://poll:8006/models/Sportwagon/Sportwagon%20SS%20V-Series
    As you can see that Sun One Web Server dont like spacing between url.
    Does anyone know how to fix this problem thru configuration in Sun One Web Server?

  • Connecting to Oracle 9i with Sun One Web Server 6.1 SP4

    I have an application that connects to an Oracle 9i database. When I run iPlanet 4.1, I am able to login to the application and run it. Since I have migrated to Sun One Web Server 6.1 SP4, I have not been able to login. Through some built in error logging, I have been able to determine that my user validation routine is receiving a Null pointer when it trys to connect to the database. I have also determined that my login servlet is executing properly. When I receive the Null pointer error, I am redirected to a failed login page, which is what is supposed to happen in such a case. I believe that I do not have the web server configured properly to connect to the database and I am not sure how to do it! Below is an excerpt from my code where the database connection occurs and the exception is detected. Any help would be appreciated!
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
              oracleConnect = DriverManager.getConnection("jdbc:oracle:thin:@" + chost + ":" + cport + ":" + csid ,u,p);
         enable = true;
    oracleConnect.close();
    }catch(java.sql.SQLException e){processError.logError("validateUser Invalue user" + e.getMessage()); enable = false;}
    catch(java.io.FileNotFoundException e){processError.logError("validate User error" + e.getMessage());}
    catch(java.io.IOException e){processError.logError("evalidateUser rror File Error " + e.getMessage());}
    catch(java.lang.NullPointerException e){processError.logError("validateUser error Null Pointer " + e.getMessage());}

    You are not using the server's built in JDBC Connection pooling, so there is no special WebServer configuration needed to connect to a database.
    If in the other hand, you want to use the built in connection pooling, then refer to this page to see how to create a connection pool
    http://docs.sun.com/source/817-1831-10/agjava.html#wp1085593
    Samples on how to configure and use JDBC connection pooling can be found in the sample apps
    http://docs.sun.com/source/817-1833-10/pwawap.html#wp40108

  • Sun one web server 6.0 sp9. Crash occurred in function JVM_NewArray or JVM_

    We have a web page with 2 frame set (fa, and fb)
    fb has a table with a cell containing div of another table xx.
    We face the case where the result in the table xx is not completely displayed due to server crash.
    Each time this page is serviced the server crash with the following exception in server was shown from the errors log:
    Server crash detected (signal SIGBUS)
    Crash occurred in function JVM_FillInStackTrace from module /usr/j2se/jre/lib/sparc/client/libjvm.so
    Occasionally the server crash with the following exception:
    Server crash detected (signal SIGSEGV)
    Crash occurred in function JVM_NewArray from module /usr/j2se/jre/lib/sparc/client/libjvm.so
    We were not able to simulate this problem in another instance in �dev� box.
    We were also not able to simulate this problem in another instance in same �final� box.
    The following was googled for JVM_NewArray :
    bug id : 4839641 <http://developer.java.sun.com/developer/bugParade/bugs/4839641.html>
    bug id : 4720694 <http://developer.java.sun.com/developer/bugParade/bugs/4720694.html>
    The web service is in �final� box using the following:
    - Sun one web server 6.0 sp9.
    -SunFire 880
    -OS: Solaris 9
    - Using the Java HotSpot(TM) Client VM v1.4.1_01a from Sun Microsystems Inc.
    -JSP
    -Java
    Would this problem we are facing be a sunone server issue or JVM issue?
    Or would there be other issues?

    It sure sounds like a JVM bug. I think you should try
    using either a) the JVM shipped with Web Server 6.0
    SPx (as this is the JVM version that's received the
    most testing with Web Server 6.0 SPx) or b) the
    latest 1.4-series JVM (as this will include bug fixes
    made since 1.4.1_01a).Thanks for the prompt reply.
    Would have to upgrade the JVM then.
    Will get back again if the upgrade of the JVM solves this issue.

  • Sun one web server 6.0 sp9. Crash occurred in function JVM_NewArray

    We have a web page with 2 frame set (fa, and fb)
    fb has a table with a cell containing div of another table xx.
    We face the case where the result in the table xx is not completely displayed due to server crash.
    Each time this page is serviced the server crash with the following exception in server was shown from the errors log:
    Server crash detected (signal SIGBUS)
    Crash occurred in function JVM_FillInStackTrace from module /usr/j2se/jre/lib/sparc/client/libjvm.so
    Occasionally the server crash with the following exception:
    Server crash detected (signal SIGSEGV)
    Crash occurred in function JVM_NewArray from module /usr/j2se/jre/lib/sparc/client/libjvm.so
    We were not able to simulate this problem in another instance in �dev� box.
    We were also not able to simulate this problem in another instance in same �final� box.
    The following was googled for JVM_NewArray :
    bug id : 4839641 <http://developer.java.sun.com/developer/bugParade/bugs/4839641.html>
    bug id : 4720694 <http://developer.java.sun.com/developer/bugParade/bugs/4720694.html>
    The web service is in �final� box using the following:
    - Sun one web server 6.0 sp9.
    -SunFire 880
    -OS: Solaris 9
    - Using the Java HotSpot(TM) Client VM v1.4.1_01a from Sun Microsystems Inc.
    -JSP
    -Java
    Would this problem we are facing be a sunone server issue or JVM issue?
    Or would there be other issues?

    It sure sounds like a JVM bug. I think you should try
    using either a) the JVM shipped with Web Server 6.0
    SPx (as this is the JVM version that's received the
    most testing with Web Server 6.0 SPx) or b) the
    latest 1.4-series JVM (as this will include bug fixes
    made since 1.4.1_01a).Thanks for the prompt reply.
    Would have to upgrade the JVM then.
    Will get back again if the upgrade of the JVM solves this issue.

  • Directory Structures in sun one Web Server 6.1

    I am struggling to run my j2ee application on newly set up sun one web server 6.1 on my pc.
    Can somebody please help me expalining directory structure in detail for sun one web server 6.1?
    Where should I place my java beans and it's class files?
    what should WEB-INF -> lib folder contains?
    I make war file using j2ee deployment tool. Do i need to change anything in web.xml and sun-web.xml?
    Thanks in advance.

    Thanks chris.
    It looks better now. still it gives following errors in error log. I only have java beans not the EJB.
    here are the error.
    [20/Oct/2003:11:35:59] info ( 632): Internal Info: loading servlet /peoplechannel/SearchLDAPIn.jsp
    [20/Oct/2003:11:35:59] warning ( 632): Internal error: newInstance failed (servlet class=_jsps._peoplechannel._SearchLDAPIn_jsp): java.lang.IllegalAccessException: Class com.iplanet.server.http.servlet.NSServletEntity can not access a member of class jsps.peoplechannel._SearchLDAPIn_jsp with modifiers "public"
    [20/Oct/2003:11:35:59] warning ( 632): Internal error: Failed to get GenericServlet. (uri=/peoplechannel/SearchLDAPIn.jsp,SCRIPT_NAME=/peoplechannel/SearchLDAPIn.jsp)
    what's the syntax to change loading precompiled jsp to force web server to compile jsp?
    I really need urgent help.
    Thanks,
    naimesh

  • Configure Sun ONE web Server

    Hi,
    What are the mandatory steps involved in configuring Sun ONE web server.
    Regards,
    Jagadeesh Tata.

    Well, you will need to install Web Server 7 is the minimum step you need to set up a web server. at the end of installation, you will have a running web server where in you can host your web site at your document root
    what do you want to do
    - Sriram

  • Sun ONE Web Server 6.1 and Beans

    Hello,
    I am learning JSP and I have a new install of Sun ONE Web Server Enterprise Edition 6.1. I have a some java code (a class) I would like to use in my JSP page via <jsp:useBean...>.
    Where do I put my .java (or compiled .class) file?
    For example: UserData.class
    Thanks,
    Michael

    Thanks for the reply.
    Under my <appdir> I created a WEB-INF and classes directries. I copied my .class file to it but still get the message in the Sun One 6.1 error log:
    C:\Sun\WebServer6.1\https-titan\ClassCache\https-titan\default-webapp\_jsps\_apps\_bean1\_SaveName_jsp.java:66: package user does not exist
         user = (user.UserData) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "user.UserData");
         ^
    I am so new - what else can you recommend?
    Thanks again,
    Michael

  • Sun ONE Web Server 6.1 Server Parsed HTML

    I am wondering what the Sun ONE web server equivalent is for the apache ssi #set var directive. I am looking to set a variable that can later be echoed out in a given server parsed html page.

    As per [http://docs.sun.com/app/docs/doc/821-0038/abwbe?l=en] and [http://docs.sun.com/app/docs/doc/821-0038/abwbc?l=en] we have only : config, include, echo, fsize, flastmod, exec commands. Please contact Sun support and file a request for enhancement.

  • Help for Installing PHP and Sun One Web Server

    Hi
    I tried to install PHP 5.1.4 and Sun One Web Server 6.1. I am not able to complete this and got stuck. All the available materials in net seems to flow above my head.
    It will be very helpful if someone could let me know the step by step configuration a bit brief for the same.
    Thanks in advance
    Kathirvel Balakrishnan

    Hi Craig
    I am following these steps,
    1st step : Installing PHP on the WindowsNT server (NT users only)
    Copy the php files on your server
    Get the php zip file
    Copy the php files under a directory (for example : d:php4)
    (be careful don't use c:Program Filesphp because of the space between Program and Files
    copy php4ts.dll to c:winnt and msvcrt.dll if you don't already have it on your system
    Edit php.ini-dist
    rename php.ini-dist to php.ini
    Edit php.ini : Indicate in which directory you have copied youre php files. (extension_dir = d:php4extensions ; directory in which the loadable extensions (modules) reside.)
    copy php.ini in winnt directory (php.ini is parsed in my config)
    Matthias Kramer told me that he had to move php.ini to <path-to-netscape-server>/https-servername/config for it to be parsed
    Make a file association under Windows NT
    In a DOS Window, type assoc .php=PHPScript
    ftype PHPScript=d:php4php.exe %1 %*
    Test the 1st step
    Create a C:test.php file with a single line like <? echo("Nothing to write"); ?>
    Create a C:test.bat file with 2 lines test.php
    pause
    double-clic on test.bat
    If you see something like X-Powered-By: PHP/4.0.3
    Content-type: text/html
    Nothing to write
    then the NT association works!!
    2nd step : Configuring Netscape Enterprise Server or iPlanet for PHP4 with nsapi (NT & UNIX)
    Unix users only
    Compile PHP as follows: ./configure --with-nsapi=/usr/local/netscape/server4 --enable-libgcc
    make
    make install
    Add LD_LIBRARY_PATH=<libdir> to your Netscape server startup script
    where <libdir> is the full path to the directory where libstdc++.so.2.10.0 is located (usually /usr/local/lib)
    Add a mime-type to the Netscape Server
    In the Netscape Administration console chose Preferences|Mime Types
    Add a new type called magnus-internal/x-httpd-php for exts=php
    Click here for screenshot
    Stop your Web Server
    Make a copy of obj.conf located in: <path-to-netscape-server>/https-servername/config
    Modify obj.conf
    There are several section in obj.conf
    At the end of the Init section of obj.conf (necessarely after mime type init),
    place this two lines For NT users
    Init fn="load-modules" funcs="php4_init,php4_close,php4_execute,php4_auth_trans" shlib="d:/php4/sapi/php4nsapi.dll"
    Init fn="php4_init" errorString="Failed to initialise PHP!"
    For Unix users
    Init fn="load-modules" funcs="php4_init,php4_close,php4_execute,php4_auth_trans" shlib="/usr/local/netscape/server4/bin/libphp4.so"
    Init fn="php4_init" errorString="Failed to initialise PHP!"
    In The < Object name="default" > section,
    place this line (necessarely after all 'ObjectType' and before all 'AddLog' lines) Service fn="php4_execute" type="magnus-internal/x-httpd-php"
    Add a new object called x-httpd-php <Object name="x-httpd-php">
    ObjectType fn="force-type" type="magnus-internal/x-httpd-php"
    Service fn=php4_execute
    </Object>
    Restart your Web Server
    Test the 2nd step
    Put the test.php file in the document root of your server
    Then type http://server/test.php
    If you can see "nothing to write" in your browser then it works!
    AS mentioned in step 1,
    I am not getting the PHP message.
    I am installing it in my laptop, it has no IP, is that has to do something with this.
    Please guide me from here.
    Thanks in advance
    Kathirvel

  • Does Sun One Web Server support server-side javascripts?

    Hi,
    We have used Netscape iplanet web server running our server-side javascripts for a few years. We're evaluating the latest Sun One web server and see if it can run the server-side javascripts. Does Sun One support server-side javascripts? If so, where do I can find the document?
    Thanks.

    you can use JScript (a type of server side java script) if you install Sun One ASP. it also gives you VBScript support as well

  • Error while running Application on Sun One Web Server 6.1

    Can some one please explain me how can I run application on sun one web server 6.1 ?
    It is deployed .war file successfully. It only loads default.jsp and then fives following error:
    1) Package netscape.ldap not found in import.
    I imported this package to my java file.
    Thanks,

    We need to deploy the application by next week end. any suggestions please

  • Error while running sample app HelloWorld on sun one web server 6.1

    I tried to deploy and run the HelloWorld - sample application on sun one web server 6.1. It's giving me following errrors.
    (1) , root cause: java.lang.NullPointerException
    (2) info ( 924): JSP11 Log:unable to load jsp class: jsps.index_jsp
    what's the solution for that?
    Thanks
    Naimesh

    Can You please explain me how can I deploy .war file of my application on sun one web server 6.1 ?
    It is deployed successfully. It only loads default.jsp and then fives following error:
    1) Package netscape.ldap not found in import.
    I imported this package to my java file.
    Thanks,

  • Error when starting Sun ONE Web Server 6.1SP4 after successful installation

    I have installed Sun ONE Web Server 6.1SP4 on my Solaris computer and I receive the following error when I try to start the Admin server:
    Sun ONE Web Server 6.1SP4 B01/20/2005 17:43
    failure: CORE3170: Configuration initialization failed: Error running init funct
    ion load-modules: dlopen of /opt/SUNWwbsvr/bin/https/lib/libj2eeplugin.so failed
    (ld.so.1: webservd: fatal: relocation error: file /opt/SUNWwbsvr/bin/https/lib/
    libares3.so: symbol __res_state: referenced symbol not found)
    I am running Solaris 8 and I have installed Patch 108993-22 as stated in chapter 2 of the installation and migration guide. I have also installed patches 116602-01, 115827-01, 113648-03, 112396-02, 111317-05, 111310-01, 111111-04, 111023-03, 110386-03, 108987-15, and 108528-24 since they are necessary for patch 108993-22.
    I have been stumped by this error. I have tried several different ways to install this software but I always get the same error. I believe that I have the latest version of the Sun One Web Server and I received no error notifications when I installed it! Any help would be apeciated!
    Thanks!!!!!

    I think this might occur if you don't have the patch for SunAlert 46042 installed. There's more information on this critical Solaris security vulnerability, which was reported back in 2002, at http://sunsolve.central.sun.com/search/document.do?assetkey=1-26-46042-1
    Can you run the following command to check if you have patch 109326-09 installed and let us know the result?showrev -p | grep 109326If you don't have 109326-09 or higher installed, you should install it as soon as possible. You can follow the link from the SunAlert. Better yet, install the latest Solaris 8 recommended patch cluster from http://sunsolve.sun.com/pub-cgi/show.pl?target=patches/patch-access to make sure your system is fully patched and up to date.

  • Sslext NOt working Sun ONE Web Server 6.0?

    Hi,
    I have implemented the sslext tag for dynamic switching of http to https.
    I am using ATG Dynamo Server ONLY in the Development Env. (using the default Web Server of ATG) for testing this and sslext tag works fine using the Plug-In of struts which is in sslext.jar.
    but in producation the ATG Dynamo Server 6.0 is configured with Sun ONE Web Server 6.0, as forwarding request throught the Web Server to the App Server.
    But here sslext stop working?? any guss why?
    Sun ONE Server 6.0 is configured with ATG Dynamo Server 6.0 as Connection Module.
    There are three ways a Connection Module can handle requests for files whose MIME type is text/html.
    1)You can choose to have the files served by the Sun ONE Web Server,
    2)by the Dynamo server,
    3)or by the Sun ONE Web Server (but also send requests to Dynamo for logging).
    we select the 3rd option.
    any Guess why this is happening???
    regards
    DJ

    Since removing the log settings from magnus.conf failed to fix the problem, the log settings are probably not the source of the problem.
    Did anything else - e.g. ColdFusion configuration changes - occur at about the same time you changed the log settings?

Maybe you are looking for