Sun One Web Server 6.0 with Sun One App Server 7.0

Does Sun have a plug-in for enabling Sun One Web Server 6.0 to communicate with the Sun One Application Server 7.0? How to get this plugin?

Yes, it has, and it is shipped with the product. Look at the installation guide and you can find the plugin configuration instructions.
Regards,
Juan

Similar Messages

  • Problem with maxprocs 1 on Sun One Web server 6.1

    I am using sun one web server on Unix with maxprocs set to 3.
    This means that there are 3 jvms running my application under 1 instance. However I have certain components like an application cache that I would like to share between these 3 processes.
    Additionally is there a way to configure the server so that requests from 1 session are served by 1 process only.
    I am really stuck here. Have searched in all the documentation, but in vain. Would really help if some one of the Sun Developers could answer this.
    Thanks
    Chetan

    Elving,
    It is great to hear that there is no predefined limit on number of sessions but if that's the case why the webserver always starts with 1000 allowed by default. Are there any potential performance reasons behind it?
    I have your link open in my browser for a few days now as a reference because I am experimenting with different Session Managers. I am trying to find a solution for BheegaChicken to be able to accomodate several thousand simultaneous sessions for his application.
    We use V6.0SP2 and SP6 and for BheegaChicken's app specifically V6.1SP2...
    I have spent some time in the past looking for the answers how to handle higher then 1000 sessions capacity on one instance and that was even before V6.1 was out. I have found the following reco that talks about optimal performance for sites using threads:
    http://docs.sun.com/source/816-5690-10/perf6.htm#17580
    *** start qoute
    Multi-Process Mode
    You can configure the server to handle requests using multiple processes with multiple threads in each process. This flexibility provides optimal performance for sites using threads, and also provides backward compatibility to sites running legacy applications that are not ready to run in a threaded environment. Because applications on Windows NT generally already take advantage of multi-thread considerations, this feature applies to Unix/Linux platforms.
    The advantage of multiple processes is that legacy applications that are not thread-aware or thread safe can be run more effectively in iPlanet Web Server. However, because all the Netscape/iPlanet extensions are built to support a single-process threaded environment, they may not run in the multi-process mode, and the Search plug-ins will fail on startup if the server is in multi-process mode.
    In the multi-process mode, the server spawns multiple server processes at startup. Each process contains one or more threads (depending on the configuration) which receive incoming requests. Since each process is completely independent, each one has its own copies of global variables, caches, and other resources. Using multiple processes requires more resources from your system. Also, if you try to install an application which requires shared state, it has to synchronize that state across multiple processes. NSAPI provides no helper functions for implementing cross-process synchronization.
    If you are not running any NSAPI in your server, you should use the default settings: one process and many threads. If you are running an application which is not scalable in a threaded environment, you should use a few processes and many threads, for example, 4 or 8 processes and 128 or 512 threads per process.
    MaxProcs (Unix/Linux)
    Use this directive to set your Unix/Linux server in multi-process mode, which may allow for higher scalability on multi-processor machines. If you set the value to less than 1, it will be ignored and the default value of 1 will be used.
    Tuning
    You can set the value for MaxProcs by:
    Editing the MaxProcs parameter in magnus.conf
    Setting or changing the MaxProcs value in the Magnus Editor of the Server Manager
    Note      You will receive duplicate startup messages when running your server in MaxProcs mode.
    *** end quote
    If it is not relevant anymore please explane.
    I am still interested to understand which of the SessionManagers is recommended by Sun to have optimal performance for sites with high number of sessions and using threads. It is not really obvious from http://docs.sun.com/source/817-6251/pwasessn.html. On top of this that's documented just for V6.1. What about V6.0?
    Thank you very much for your cooperation!
    Sasha aka ttalex

  • Jdeveloper 9i with Sun ONE (iPlanet) Web Server 6.0

    Hi,
    Has any one working Jdeveloper 9i with Sun ONE (iPlanet) Web Server 6.0 ?
    When i add new application server it gives only Oracle App Server and Web Logic.
    Thanks
    Ramesh

    Currently JDeveloper provides Application server connections to Oracle9iAS and WebLogic, which can be used to deploy J2EE Modules.
    JDeveloper allows to create assemble generic J2EE archives from projects which can used to deploy to other application servers.
    Check out How-To documents on this topic
    http://otn.oracle.com/products/jdev/howtos/content.html
    raghu
    JDev Team

  • Problems with Sun One Web Server  6.1 with SP1

    I get errors while compiling my JSP files on SUN one Web Server which is deployed on Solaris 9. it states that cannot compile JSP pages. here is the stack trace that i get.
    [03/Feb/2007:19:11:17] warning (  354): CORE3283: stderr: java.lang.NoClassDefFoundError: com/sun/tools/javac/Main
    [03/Feb/2007:19:11:17] warning (  354): CORE3283: stderr:      at org.apache.jasper.compiler.SunJava14Compiler$JavacTask.run(SunJava14Compiler.java:207)
    [03/Feb/2007:19:11:17] failure (  354): for host 192.168.123.2 trying to GET /reports1/jsp/common/ClientInstall.jsp, service-j2ee reports: StandardWrapperValve[jsp]: WEB2792: Servlet.service() for servlet jsp threw exception
    org.apache.jasper.JasperException: WEB4000: Unable to compile class for JSP
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:312)
         at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.loadJSP(JspServlet.java:756)
         at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.access$000(JspServlet.java:616)
         at com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:401)
         at com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:363)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
         at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:771)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:322)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:209)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
         at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:161)
         at com.iplanet.ias.web.WebContainer.service(WebContainer.java:586)Please help. The Java version i am using is j2sdk1.4.2_08.

    It looks like the Web Server has somehow been configured to use a JRE. Web Server requires a JDK. The following message in particular indicates that a JRE, not a JDK, is being used:java.lang.NoClassDefFoundError: com/sun/tools/javac/MainAre you using the JDK that shipped with Web Server, or did you attempt to configure Web Server to use a different JDK?

  • Sun One Web Server 6.1 SP4 crashes when filters are built with CC ver. 5.6

    Hi All
    We are using NSAPI interfaces to develop the filter for Sun ONE 6.1 SP4 Web Server. Filter was working perfectly fine when it was built using Sun WorkShop 6.0, CC Compiler ver 5.2.
    After we upgarded to Sun WorkShop 9.0, CC Compiler ver. 5.6, it no longer works. The web server crashes with Core. Please see the snippet below. There was however no change of code required for the upgrade.
    Please let me know if some specific compiler/linker flags has to be used for building filters with CC Compiler ver. 5.6.
    bash-2.03$ ./start
    Sun ONE Web Server 6.1SP4 B01/20/2005 17:43
    warning: CORE3283: stderr: 6950: CSemCounter created a semaphore with ID 25 using key 990470909.
    warning: CORE3283: stderr: [10/Nov/2005:18:50:35] [Information] Agent
    warning: CORE3283: stderr: Agent is enabled.
    warning: CORE3283: stderr: 6950: Cache - created semaphore 26 using key 487154429
    warning: CORE3283: stderr: 6950: ResourceCache - created semaphore 27 using key 772367101
    warning: CORE3283: stderr: 6950: Cache - created semaphore 28 using key 503931645
    warning: CORE3283: stderr: 6950: Cache - created semaphore 29 using key 520708861
    info: CORE5076: Using [Java HotSpot(TM) Server VM, Version 1.4.2_04] from [Sun Microsystems Inc.]
    catastrophe: CORE3260: Server crash detected (signal SIGBUS)
    info: CORE3262: Crash occurred in function realloc from module /usr/lib/libc.so.1
    Back Trace of Core
    #0 0xfe042974 in t_splay () from /usr/lib/libc.so.1
    (gdb) bt
    #0 0xfe042974 in t_splay () from /usr/lib/libc.so.1
    #1 0xfe0427e0 in t_delete () from /usr/lib/libc.so.1
    #2 0xfe0423e4 in realfree () from /usr/lib/libc.so.1
    #3 0xfe041f48 in mallocunlocked () from /usr/lib/libc.so.1
    #4 0xfe041ce0 in malloc () from /usr/lib/libc.so.1
    #5 0xfe04f568 in strdup () from /usr/lib/libc.so.1
    #6 0xff1c3038 in INTsystem_strdup_perm ()
    from /home/porting/project/sunone/bin/https/lib/libns-httpd40.so
    #7 0xff1c84c8 in INTvs_get_doc_root ()
    from /home/porting/project/sunone/bin/https/lib/libns-httpd40.so
    #8 0xfdb57f4c in __1cKJ2EERunnerIcreateVS6FpkcpknNConfiguration_pnRJ2EEVirtualServer__i_ ()
    from /home/porting/project/sunone/bin/https/lib/libj2eeplugin.so
    #9 0xfdb528bc in j2ee_vs_create ()
    from /home/porting/project/sunone/bin/https/lib/libj2eeplugin.so
    #10 0xff1c9444 in __1cPNSAPIVSListenerGinitVS6MpnNVirtualServer_pk1_nIPRStatus__ () from /home/porting/project/sunone/bin/https/lib/libns-httpd40.so
    #11 0xff2273e4 in __1cXVSConfigurationListenerQsetConfiguration6MpnNConfiguration_pk1_nIPRStatus__ ()
    from /home/porting/project/sunone/bin/https/lib/libns-httpd40.so
    #12 0xff225dc8 in __1cUConfigurationManagerQsetConfiguration6FpnNConfiguration__2_ () from /home/porting/project/sunone/bin/https/lib/libns-httpd40.so
    #13 0xff245b30 in __1cJWebServerDRun6F_nIPRStatus__ ()
    ---Type <return> to continue, or q <return> to quit---
    from /home/porting/project/sunone/bin/https/lib/libns-httpd40.so
    #14 0x10ab8 in main ()
    Thanks

    I could trace down the problem to the fact that if I don't use the map file (which is passed to the linker using -M mapfile), the plugin works perfectly fine. Further to this if I comment out the local part of the mapfile, it starts working.
    mapfile :
    NSAPIPlugin.so {
    global:
    symbol1;
    symbol2;
    symbol3;
    # local:
    Is there is any specific linker flag that I have to pass along with -M mapfile with the sun studio 9. What are possibe consequencies if I go ahead with this workaround of commenting out the local directive.

  • Problems with Sun One Web Server 6.1 javax.xml.xpath package not found

    I used myeclipse to build an xml app and tested on jboss. it worked perfectly. However when i deployed it to our solaris sun one web server the app fell apart completely with the following error. I m unable to figure out what went wrong. Any help will be much appreciated.
    Thanks.
    [11/Dec/2007:22:12:37] failure (13539):      for host 121.247.233.169 trying to GET /feeds/rss.jsp, service-j2ee reports: StandardWrapperValve[jsp]: WEB2792: Servlet.service() for servlet jsp threw exception
         org.apache.jasper.JasperException: WEB4000: Unable to compile class for JSP
         /opt/SUNWwbsvr/test/ClassCache/test/_jsps/_feeds/_rss_jsp.java:8: package javax.xml.xpath does not exist
         import javax.xml.xpath.*;
         ^

    Thanks for the response. I tried to use xalan package which resolved the javax.xml.xpath package not found error (xalan.jar in WEB-INF/lib folder). However I m now getting the following error. Probably incompatible version is the reason. Please advise!
    [11/Dec/2007:23:46:28] failure (17028):      for host 121.247.233.169 trying to GET /feeds/rss.jsp, service-j2ee reports: StandardWrapperValve[jsp]: WEB2792: Servlet.service() for servlet jsp threw exception
         javax.servlet.ServletException: org.apache.xpath.XPathContext.<init>(Z)V
         at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:536)
         at _jsps._feeds._rss_jsp._jspService(_rss_new_jsp.java:627)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
         at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.service(JspServlet.java:687)
         at com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:459)
         at com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:375)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
         at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:771)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:322)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:209)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
         at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:161)
         at com.iplanet.ias.web.WebContainer.service(WebContainer.java:580)
         ----- Root Cause -----
         java.lang.NoSuchMethodError: org.apache.xpath.XPathContext.<init>(Z)V
         at org.apache.xpath.jaxp.XPathImpl.eval(XPathImpl.java:207)
         at org.apache.xpath.jaxp.XPathImpl.evaluate(XPathImpl.java:281)
         at _jsps._feeds._rss_new_jsp._jspService(_rss_jsp.java:165)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
         at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.service(JspServlet.java:687)
         at com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:459)
         at com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:375)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
         at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:771)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:322)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:209)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
         at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:161)
         at com.iplanet.ias.web.WebContainer.service(WebContainer.java:580)

  • Sun One Web Server 6.1 with MS Active Directory??

    I know this type of question has been posted a few times, but I couldnt locate any clear answer.
    Can we have Sun One WS 6.1 use MS Active Dir as its source of users and groups? I am trying to configure this using the standard base DN and bind DN params, but I get an error saying "could not connect using the binddn and password you provided". I know the bind dn and the password I provided are correct.
    Another colleague of mine who tried the same thing was able to connect, but when he tried to navigate to the users and groups page, he got an error saying "Error trying to connect to the LDAP".
    Anyone who has tried this before, what does it take to get the SUN ONE WS to talk to AD? Can this be done at all?
    Thanks,
    Vinayak

    It looks like the Web Server has somehow been configured to use a JRE. Web Server requires a JDK. The following message in particular indicates that a JRE, not a JDK, is being used:java.lang.NoClassDefFoundError: com/sun/tools/javac/MainAre you using the JDK that shipped with Web Server, or did you attempt to configure Web Server to use a different JDK?

  • Integration of Sun One Web Server 6.0 with Sun One App Server 7.0

    Is it possible to integrate Sun One Web Server 6.0 with the Sun One App Server 7.0??
    Sun One App Server 7.0 comes with the in-built HTTP listener. But we want to know if there is a way by which we can use the Sun One Web Server 6.0 with the App Server 7.0 and not the in-bulit HTTP listener?

    As suggested by you, I have used Sun ONE Application Server 7's plugin to connect the Sun ONE Web Server 6.0 with Sun ONE Application Server 7 as per the information given in Sun ONE Application Server 7 Administrator's Guide.
    I have added the plugin package to the webserver and added the following into the magnus.conf:
    Init fn="load-modules" shlib="C:/iPlanet/Servers/plugins/passthrough/passthrough.dll" funcs="init-passthrough,auth-passthrough,check-passthrough,service-passthrough" NativeThread="no"
    Init fn="init-passthrough"
    and to the obj.conf
    NameTrans fn="assign-name" from="(/A2P2Test|/A2P2Test/*)" name="passthrough"
    <Object name="passthrough">
    ObjectType fn="force-type" type="magnus-internal/passthrough"
    Service type="magnus-internal/passthrough" fn="service-passthrough" servers="http://<application server http listener>"
    Error reason="Bad Gateway" fn="send-error" uri="$docroot/badgateway.html"
    </Object>
    The webserver starts up without any errors but never forwards any requests what might I be doing wrong?

  • SunOne 6.1 HTTP4044 error with sun one web server cluster

    use sun one web server 6.1 sp4 makeup cluster,transfer configure file have HTTP 4044 error.the /opt/SUNWwbsvr/https-admin/logs/error file message are:
    failure ( 4646): for host x.x.x.x trying to POST /https-x.x.x.x/admin/clxfer, cgi_scan_headers reports: HTTP4044: the CGI program /opt/SUNWwbsvr/bin/https/admin/bin/clxfer did not produce a valid header (program terminated without a valid CGI header. Check for core dump or other abnormal termination)
    Anyone have experience with this?

    Hi, I am also getting the same error, can someone please help me on this.
    [13/Jul/2009:05:23:21] failure ( 9574): for host X.X.X.X trying to GET /https-derivmatch/admin/security, cgi_scan_headers reports: HTTP4044: the CGI program /usr2/netscape/server61/bin/https/admin/bin/security did not produce a valid header (program terminated without a valid CGI header. Check for core dump or other abnormal termination)
    [13/Jul/2009:05:24:13] failure ( 9574): for host X.X.X.X trying to GET /https-derivmatch/admin/security, cgi_scan_headers reports: HTTP4044: the CGI program /usr2/netscape/server61/bin/https/admin/bin/security did not produce a valid header (program terminated without a valid CGI header. Check for core dump or other abnormal termination)
    Thanks a lot.
    Regards,
    Mallik

  • Problems installing Sun ONE Web Server 7.0 on an x86 with Solaris 10

    I am trying to install the new Sun ONE Java Web Server 7.0 on my Solaris 10 machine. This is the error I am getting:
    |-1%--------------25%-----------------50%-----------webResources:errorCreatingLogFile
    Task Failed: java.lang.NullPointsswhereException
    java.lang.NullPointerException
    at com.sun.web.installer.web.actions.PostInstall_core.install(PostInstall_core.java:273)
    at com.sun.install.products.InstallComponent.performInstallation(InstallComponent.java:1465)
    at com.sun.install.products.InstallNode.startInstall(InstallNode.java:1086)
    at com.sun.install.products.InstallComponent.performInstallation(InstallComponent.java:1457)
    at com.sun.install.products.InstallNode.startInstall(InstallNode.java:1086)
    at com.sun.install.products.InstallComponent.performInstallation(InstallComponent.java:1457)
    at com.sun.install.products.Product.performInstallation(Product.java:651)
    at com.sun.install.tasks.ProductTask.perform(ProductTask.java:153)
    at com.sun.wizards.core.Sequence.perform(Sequence.java:343)
    at com.sun.wizards.core.SequenceManager.run(SequenceManager.java:226)
    at java.lang.Thread.run(Thread.java:595)
    This is not a permissions issue, and there are no errors in the /var/sadm/install/logs. Please keep!
    Kristie N. Howard

    Hope, you are considering Sun Web Server 6.1 (formerly known as iPlanet Enterprise Server ) for this task. Yes, it is possible to host multiple instances of web server on a same machine.
    you can create multiple instances using our GUI. here is the pointer to our docs on how to do this - http://docs.sun.com/app/docs/doc/819-6512/6n8h7gq1n?a=view#bhabr
    If you are willing to give Sun Java System Web Server 7 (our latest release - http://www.sun.com/webserver) , then you can do this by CLI as well.
    sun one portal server 3.0 - is a very old release. Are you sure, is this what you want to run ?
    hope this helps

  • Installation issue: Sun one web server 6.1 SP5 with JDK1.6 on Windows XP

    Hi,
    I am trying to install sun one webserver 6.1 SP5 on my system which has windows XP operating system for the development work. the JDK version i am using is JDK1.6.
    While installing sun one webserver at step where i can use custom java development kit i am providing path for the JDK1.6 in "JDK Path" text box as "C:\Java\jdk1.6.0_11".
    while clicking next it throws me error "The version of selected JDK is too old". i don;t have any other version of JDK installed on my system.
    Can any one tell me what can be the problem here?
    Regards,
    Nemish

    Can you try Web Server 7.0 update 6?
    BTW JDK version you are using has security vulnerabilities. Please upgrade to the latest JDK
    as per [http://sunsolve.sun.com/search/document.do?assetkey=1-66-263489-1]
    This issue is addressed in the following Java SE and Java SE for Business releases for Windows, Solaris, and Linux:
    * JDK and JRE 6 Update 15 or later
    * JDK and JRE 5.0 Update 20 or later

  • 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

  • Need help with URL Redirect in Sun Web Server 7 u5

    All I am trying to do is redirect to a static URL and for the life of me I can not get it to behave the way I would expect. I am new to Sun Web Server so I am just trying to use the Admin Console to set this up.
    Here is what I'm trying to do:
    Redirect from - http://www.oldsite.com/store/store.html?store_id=2154
    To - http://www.newsite.com/Stores/StoreFront.aspx?StoreId=2154
    Here's what I tried in the console.
    Added a new URL Redirect
    Set the Source to be Condition and set it to: '^/store_id=2154$' (quotes included)
    Then set the Target to: http://www.newsite.com/Stores/StoreFront.aspx?StoreId=2154
    Then for the URL Type I checked Fixed URL
    When I tested with: http://www.oldsite.com/store/store.html?store_id=2154 it did redirect as desired
    BUT
    When I tested with: "http://www.oldsite.com/store/store.html?store_id=5555" it too got redirected to the Target and I can't figure out how this second URL can satisfy the condition to get redirected.
    Any help is most appreciated.

    thanks for choosing sun web server 7
    it is simpler if you just edit the configuration files manually
    cd <ws7-install-root>/https-<hostname>/config/
    edit obj.conf or <hostname>-obj.conf (if there is one for you depending on your configuration so that it look something like)
    <Object name="default">
    AuthTrans..
    #add the folllowing line here
    <If defined $query>
    <If $urlhost =~ "/oldsite.com" and
    $uri =~ "/store/store.html" and
    $query =~ "store_id=2154" >
    NameTrans fn="redirect" from="/" http://www.newsite.com/Stores/StoreFront.aspx?StoreId=2154
    </If>
    </If>
    ..rest of the existing obj.conf. continues
    NameTrans...
    now, you can either do <ws7-install-root>/https-<hostname>/bin/reconfig -> to reload your configuration without any server downtime or <ws7-install-root>/https-<hostname>/bin/restart -> to restart the server
    if it did work out for your, you will need to run the following so that admin server is aware of what you just did
    <ws7-install-root>/bin/wadm pull-config user=admin config=<hostname> <hostname.domainname>
    hope this helps

  • 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;
    %>

  • Replace Quotes, Connection Pooling, and Sun Web Server with MySQL, Oracle

    This is code I use to insert data into my MySQL and Oracle databases.
    I takes care of quotes and shows use of context, i.e. when you use Sun Web Server's
    ConnectionPooling. This code works. Feel free to reply if you have questions on how to set up connection pooling using Sun Web Server 6.1SP - it took quite a long time to learn and I couldn't find much information throughout the web, so I hope this helps...
    This is not a question and I am not looking for an answer, but please post comments or suggestions.
    dailysun
    This is in one class where I have a hashtable containing the
    column name / value pairs that I want to enter into my table.
    This class simply creates the SQL string from the values in the
    hashtable. It then passes that hashtable including the database
    name to a class which executes that sql statement (second code
    portion).
    /* Insert data into sf_parts. Create the column strings from
             * the provided hash table. Be sure to parse out hash elements which
             * are used for the createTemplate process
            StringBuffer values = new StringBuffer();
            StringBuffer fields = new StringBuffer();
            Enumeration keys = fieldHash.keys();
            while(keys.hasMoreElements()){
                Object currentKey = keys.nextElement();
                    String fieldValue = (String) fieldHash.get(currentKey);
                    if(values.length() >0){
                        values.append(",");
                    values.append("'"+fieldValue.replaceAll("'","''")+"'"); // Takes care of quotes and various other special characters!
                    if(fields.length() >0){
                        fields.append(",");
                    fields.append(currentKey);
            sql = "INSERT INTO myTable (" + fields.toString() + ") VALUES (" + values.toString() + ");";
            String insertResult = caq.getInsertDelete(sql,"myDatabaseName"); // your database name is defined in web.xml and sun-web.xml when you use Sun Web Server's Connection Pooling.
            returnValue += "<br><br><b>Rows inserted into table(myTable): </b>" + insertResult + "<br>\n";
            And, like I describe above, this method executes the sql statement.
         * Takes care of insert, update and delete requests.
         * Must have set both dbName as well as the sql String.
         * Will return number of rows affected as String.
         * @return String Number of rows affected
         * @exception SQLException
         * @exception Exception
        public String getInsertDelete() {
            checkData(); // this simply checks if the variables dbName and sql are not empty ;-)
            InitialContext initContext = null;
            int rv = 0;
            try{
                // Get connection from configured pool
                initContext = new InitialContext();
                source = (DataSource) initContext.lookup("java:comp/env/jdbc/" + dbName); // I have this set up in web.xml and sun-web.xml (I use Sun Web Server 6.1SP which does connection pooling for me)
                conn = source.getConnection();
                if(conn != null){
                    stmt = conn.createStatement();
                    rv = stmt.executeUpdate(sql);
            }catch (SQLException e){
                // do something
            }catch (Exception e){
                // do something
            }finally{
                try{
                    stmt.close();
                }catch(Exception e){
                    // do something
                try{
                    conn.close();
                }catch(Exception e){
                    // do something
                try{
                    initContext.close();
                }catch(Exception e){
                    // do something
            return rv+"";
        }  

    This is code I use to insert data into my MySQL and
    Oracle databases.
    I takes care of quotes and shows use of context, i.e.
    when you use Sun Web Server's
    ConnectionPooling. This code works. Feel free to
    reply if you have questions on how to set up
    connection pooling using Sun Web Server 6.1SP - it
    took quite a long time to learn and I couldn't find
    much information throughout the web, so I hope this
    helps...
    This is not a question and I am not looking for an
    answer, but please post comments or suggestions.Using prepared statements would mean that you wouldn't have to worry about quotes.
    You should be closing the result set.
    You are handling all fields as strings. That won't work with time fields and might not work for numeric fields.
    Presumably most of your variables are member variables. They should be local variables because that is the scope of the usage.
    You must do something with the exceptions.
    Hashtables although convienent mean that problems with usage can only be resolved at run time rather than compile time.

Maybe you are looking for

  • DVCPro 50 Codec Conversion

    I am currently using Adobe Premiere CS3 at my job and have run into yet another situation where I am forced to use someone else's Final Cut Pro files to edit with. Of course, they are Quicktime files with the dreaded DVCPro 50 codec. In the past I ha

  • Having some trouble rounding decimal place

    Hello all, I am having some issues rounding a decimal in my code. My program is running and doing what I would like otherwise. Here is what I have so far: public class MortCalc2      public static void main(String [] args)           //Declare and ini

  • File Processing using Validations

    Hi, I have a scenarion in file to DB, in which i have to process the records based on condition. for example my File structure: Indicator    ID        Name   1            123      xyz   2            456      abc   1             789     fdg i would li

  • Can't get rid of incoming email and outgoing message sounds

    I have all of my settings for mail and notifications set to either vibrate only or off, yet I still get a bleep every time a new email comes in, and a little flute-like noise when sending an SMS.  How do I get rid of these?  They are really annoying!

  • How do I add the add bookmark button - the plus sign - to the safari toolbar

    The plus sign icon - to add a book ark, has disappeared after upgtading to Yosemite.    Can I get it back?