Sun Java System Web Server 6.1 SP3 service-j2ee threads problem

Hi,
Sorry my english.
I'm an intermediate Java programmer and a newbie in
the Sun's web servers world.
I'm doing an evaluation of an web applicaction
written in Java Servlets that is
supposed to have a leaking threads problem. We use
SunOS 5.9 (... sun4u sparc SUNW,UltraAX-i2) and
JVM 1.5 Update 4 (the problem is presented too
in SunOS 5.8 and JVM 1.4.2_04).
We have seen, thanks to 'prstat' (PROCESS/NLWP) a
increasing thread's growing in one of the process
that correspond to our web server instance (I'm sure I'm
looking the right process). I have checkout the source
code and it seems like the app doesn't have threads
problems. I have used the Netbeans Profiler and I see a
high number of threads called service-j2ee-x that grows
in congestion moments and never disappear.
Anybody could help me with suggestions?
Thank you very much.

Elvin,
Thankyou, yes I am unfamiliar with debugging Java apps. I got the web server Java stack trace and I have passed this on to the developer.
The web server finally closes the socket connection after the total connections queued exceeds 4096.
There are several hundred entries like this... waiting for monitor entry.. could be a deadlock somewhere?
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: "service-j2ee-506" prio=5 tid=0x04b62a08 nid=0x17a waiting for monitor entry [dd74e000..dd74f770]
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at com.verity.search.util.JSDispenser.getConnResource(Unknown Source)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: - waiting to lock <0xe979b2b0> (a com.verity.search.util.JSDispenser)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at com.verity.search.DocRead.getDoc(Unknown Source)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at com.verity.search.DocRead.getDoc(Unknown Source)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at com.verity.search.DocRead.docViewIntern(Unknown Source)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at com.verity.search.DocRead.docView(Unknown Source)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at au.com.relevance.viewDoc.PdfXmlServlet.performRequest(PdfXmlServlet.java:120)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at au.com.relevance.viewDoc.PdfXmlServlet.doGet(PdfXmlServlet.java:141)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at javax.servlet.http.HttpServlet.service(HttpServlet.java:787)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:771)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:322)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:209)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:161)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at com.iplanet.ias.web.WebContainer.service(WebContainer.java:580)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at com.iplanet.ias.web.WebContainer.service(WebContainer.java:580)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: "StandardManager[highlight]" daemon prio=5 tid=0x000f3530 nid=0x1e waiting on condition [e15ff000..e15ffc28]
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at java.lang.Thread.sleep(Native Method)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at org.apache.catalina.session.StandardManager.threadSleep(StandardManager.java:800)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at org.apache.catalina.session.StandardManager.run(StandardManager.java:859)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at java.lang.Thread.run(Thread.java:534)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: "WebappLoader[highlight]" daemon prio=5 tid=0x000f3328 nid=0x1d waiting on condition [e16ff000..e16ffc28]
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at java.lang.Thread.sleep(Native Method)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at org.apache.catalina.loader.WebappLoader.threadSleep(WebappLoader.java:1214)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at org.apache.catalina.loader.WebappLoader.run(WebappLoader.java:1341)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at java.lang.Thread.run(Thread.java:534)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: "StandardManager[]" daemon prio=5 tid=0x000f2b08 nid=0x1c waiting on condition [e1b7f000..e1b7fc28]
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at java.lang.Thread.sleep(Native Method)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at org.apache.catalina.session.StandardManager.threadSleep(StandardManager.java:800)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at org.apache.catalina.session.StandardManager.run(StandardManager.java:859)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at java.lang.Thread.run(Thread.java:534)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: "WebappLoader[]" daemon prio=5 tid=0x000f2900 nid=0x1b waiting on condition [e1c7f000..e1c7fc28]
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at java.lang.Thread.sleep(Native Method)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at org.apache.catalina.loader.WebappLoader.threadSleep(WebappLoader.java:1214)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at org.apache.catalina.loader.WebappLoader.run(WebappLoader.java:1341)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at java.lang.Thread.run(Thread.java:534)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: "StandardManager[sitesearch]" daemon prio=5 tid=0x000f1cd0 nid=0x1a waiting on condition [e23ff000..e23ffc28]
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at java.lang.Thread.sleep(Native Method)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at org.apache.catalina.session.StandardManager.threadSleep(StandardManager.java:800)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at org.apache.catalina.session.StandardManager.run(StandardManager.java:859)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at java.lang.Thread.run(Thread.java:534)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: "WebappLoader[sitesearch]" daemon prio=5 tid=0x000f1ac8 nid=0x19 waiting on condition [e24ff000..e24ffc28]
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at java.lang.Thread.sleep(Native Method)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at org.apache.catalina.loader.WebappLoader.threadSleep(WebappLoader.java:1214)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at org.apache.catalina.loader.WebappLoader.run(WebappLoader.java:1341)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at java.lang.Thread.run(Thread.java:534)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: "StandardManager[search]" daemon prio=5 tid=0x000f0a88 nid=0x18 waiting on condition [e317f000..e317fc28]
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at java.lang.Thread.sleep(Native Method)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at org.apache.catalina.session.StandardManager.threadSleep(StandardManager.java:800)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at org.apache.catalina.session.StandardManager.run(StandardManager.java:859)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at java.lang.Thread.run(Thread.java:534)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: "Signal Dispatcher" daemon prio=10 tid=0x000ef840 nid=0x12 waiting on condition [0..0]
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: "Finalizer" daemon prio=8 tid=0x000ef638 nid=0x10 in Object.wait() [fa27f000..fa27fc28]
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at java.lang.Object.wait(Native Method)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: - waiting on <0xe917fb10> (a java.lang.ref.ReferenceQueue$Lock)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:111)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: - locked <0xe917fb10> (a java.lang.ref.ReferenceQueue$Lock)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: "Reference Handler" daemon prio=10 tid=0x000ef430 nid=0xf in Object.wait() [fa37f000..fa37fc28]
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at java.lang.Object.wait(Native Method)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: - waiting on <0xe917fb78> (a java.lang.ref.Reference$Lock)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at java.lang.Object.wait(Object.java:429)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:115)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: - locked <0xe917fb78> (a java.lang.ref.Reference$Lock)
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: "main" prio=5 tid=0x000ee3f0 nid=0x1 runnable [0..ffbff200]
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: "VM Thread" prio=5 tid=0x004ee328 nid=0xe runnable
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: "VM Periodic Task Thread" prio=10 tid=0x004ee5d0 nid=0x16 waiting on condition
[15/May/2006:22:01:51] warning ( 3196): CORE3283: stderr: "Suspend Checker Thread" prio=10 tid=0x004ee548 nid=0x11 runnable
[15/May/2006:22:15:10] failure ( 3196): HTTP3287: connection limit (4096) exceeded, closing socket

Similar Messages

  • Adding a JDBC driver in Sun Java System Web Server 7

    I'm trying to configure JDBC database connection pooling for a Microsoft SQL Server 2005 Express Edition though the Sun Java System Web Server 7 administration console. I don't want to use the MSSQL JDBC driver that comes bundled with the SJSWS 7. So I've downloaded the lastest MSSQL JDBC driver from the Microsoft website and put in the "lib" subdirectory of the SJSWS installation directory. So when I go to add a new JDBC resource through the administration console, the newly added MSSQL database driver doesn't appear in the "Driver Vendor" drop-down box.
    How do I add the downloaded JDBC driver to the server so that it appears in the "Driver Vendor" drop-down under "Create JDBC resource".

    Check this documentation from MS on using the JDBC driver with DataSource
    http://msdn2.microsoft.com/en-us/library/ms379052.aspx
    SJS Web Server 7.0 should work with any driver that has support for javax.sql.DataSource. The great majority of drivers do.
    So instead of using the driver name, use the DataSource class name:
    com.microsoft.sqlserver.jdbc.SQLServerDataSource
    The properties to add should be:
    user=username
    password=password
    servername=sql_server_hostname
    portnumber=sql_server_port
    databasename=databasename
    In general, all the setters required to get the datasource configured can be set as properties.

  • Sun Java System Web Server 7.0 available

    I am delighted to announce that Sun Java System Web Server 7.0 is now available for download, purchase, deployment, and more.
    This release builds on the highly scalable and stable heritage of Web Server. It features an entirely re-designed Administration interface designed around clusters, easy access to frequently performed tasks, simplification of frequently performed tasks., and a fully scriptable command line interface featuring functional parity with the browser-based interface.
    In addition to the administration changes this release features:
    o Full 64-bit support for Solaris SPARC and Solaris AMD64 platforms
    o Regular expression pattern matching for URL re-writing and mass hosting
    o If/Then/Else constructs within request processing
    o Advanced sed based input and output filters
    o Dynamic loading of Certificate Revocation Lists (CRLs) without requiring daemon restart
    o Elliptic Curve Cryptography (ECC)
    o Built in request mapping for protection against abnormal load patterns and Denial of Service protection
    o WebDAV ACL support
    o Out-of-box Java support for Servlets 2.4, JSP 2.0, JSF 1.1, JSTL 1.1, JWSDP 2.0 based web services
    o Java session failover and recovery within a cluster of peers
    o Integrated HTTP reverse proxy User-Agent
    o Bundled FastCGI client for use with third party scripting environments such as Perl, PHP, Ruby on Rails, etc
    o Enhancement of perfdump, stats-xml, and SNMP as well as more ability to monitor the Java container and the ACL system
    o Much more
    The software can be downloaded from:
    http://www.sun.com/download/products.xml?id=45ad781d
    The documentation is available at:
    http://docs.sun.com/app/docs/coll/1308.3

    If 7.0 was released, how come http://www.sun.com/webserver still only talks about 6.1?

  • How to make weblogic proxy to work on Sun Java system web server 7?

    Hi Every one,
    I am working on upgrade our Sun one 6.1 webserver to Sun Java system web server 7. Our website uses weblogic server to process jsp, web server only send static pages. I did all configurations as on Sun one. But somehow, the webserver does not forward "get jsp page" request to weblogic. The log record is:
    for host 10.78.124.118 trying to GET /home.jsp, send-file reports: HTTP4142: can't find /www/a/WebServer7/docs/bmd9i/home.jsp (File not found)
    home.jsp is at weblogic server.
    And redirect "NameTrans fn="redirect" from="/" url="/home.jsp"" seems does not work. when I type on IE http://32.69.253.131/ (32.69.253.131 is http listener IP), it always shows index.html page under the document root.
    Could some on can help? I am the first time to configurate web server. Thanks in advance.
    The configuration files are like:
    1. magnus.conf
    # Copyright 2006 Sun Microsystems, Inc. All rights reserved.
    # Use is subject to license terms.
    Init fn="load-modules" funcs="wl_proxy,wl_init" shlib="/www/a/WebServer7/weblogic6.1sp6/libproxy.so"
    Init fn="wl_init"
    2. obj.conf
    # Copyright 2010 Sun Microsystems, Inc. All rights reserved.
    # Use is subject to license terms.
    # You can edit this file, but comments and formatting changes
    # might be lost when you use the administration GUI or CLI.
    #<Object name="weblogic">
    #Service fn="wl_proxy" WebLogicCluster="32.69.253.86:7210" ConnectTimeoutSecs="240" ConnectRetrySecs="60"
    #</Object>
    <Object name="default">
    <Client method="TRACE">
    AuthTrans fn="set-variable" remove-headers="transfer-encoding" set-headers="content-length: -1" error="501"
    </Client>
    #AuthTrans fn="match-browser" browser="*MSIE*" ssl-unclean-shutdown="true"
    NameTrans fn="strip-params"
    NameTrans fn="redirect" from="/" url="/home.jsp"
    NameTrans fn="redirect" from="/index.jsp" url="/home.jsp"
    NameTrans fn="redirect" from="/index.html" url="/home.jsp"
    NameTrans fn="document-root" root="$docroot"
    NameTrans fn="pfx2dir" from="/mc-icons" dir="/www/a/WebServer7/lib/icons" name="es-internal"
    NameTrans fn="home-page" path="index.html"
    <If $uri =~ "/*.jsp">
    Service method="(GET|HEAD|POST|PUT)" fn="wl_proxy" WebLogicCluster="32.69.253.86:7210" ConnectTimeoutSecs="240" ConnectRetrySecs="60"
    #Service method="(GET|HEAD|POST|PUT)" type="text/jsp" fn="wl_proxy" WebLogicCluster="32.69.253.86:7210" ConnectTimeoutSecs="240" ConnectRetrySecs="60"
    </If>
    PathCheck fn="unix-uri-clean"
    PathCheck fn="check-acl" acl="default"
    PathCheck fn="find-pathinfo"
    PathCheck fn="find-compressed" check-age="off" vary="on"
    ObjectType fn="type-by-extension"
    ObjectType fn="force-type" type="text/plain" charset="iso_8859-1"
    ObjectType fn="set-default-type" charset="iso_8859-1"
    Service method="(GET|HEAD)" type="magnus-internal/directory" fn="send-error"
    Service method="(GET|HEAD)" type="*~magnus-internal/*" fn="send-file"
    AddLog fn="flex-log" name="access"
    </Object>
    <Object name="es-internal">
    PathCheck fn="check-acl" acl="es-internal"
    </Object>
    <Object name="send-precompressed">
    PathCheck fn="find-compressed"
    </Object>
    <Object name="compress-on-demand">
    Output fn="insert-filter" filter="http-compression"
    </Object>
    3.mime.types
    I add one line: type=text/jsp exts=jsp

    Quick obvious question - Are you positive you're editing the correct obj.conf? Check the config directory and see if there is a second one called something like <instance>.obj.conf (where <instance> is the name of your configured instance).
    Alternatively you can grep for object-file in the server.xml to see which obj.conf the server is using:
    # grep object-file server.xml
        <object-file>bare-php.obj.conf</object-file>Assuming that you are editing the correct obj.conf file, are you making certain to restart Web Server after making your changes?

  • Unable to install Sun Java System Web Server 6.1 Service Pack 7 on Wndows

    Dear All,
    I recently downloaded Sun Java System Web Server 6.1 Service Pack 7 and now I am trying to install it.
    The previous version of Web Server 6.1 that i installed is running successfully on Windows 2000 Prof. though it is not meant for it.
    To install SP7, i uninstalled the previous Web Server 6.1. I also removed the folder Sun and all the child folders of it. The Sun ONE Web Server services are still available and i can't able to delete them even from registry so i disabled them.
    Then I tried to install SP7. But after few steps, it gives error:
    You already have a Sun ONE Web Server installed. Install can not proceed.
    I am sure that i am able to remove completely the previous instance of webserver as i removed all the entries from registry also and also disabled the services related to it.
    Still why i am getting this error?
    Will it work on Windows 2000 Professional like its previous version?
    If not can i able to install previous version of the Web server 6.1 (without SP7) on Windows 2000 Prof?
    Please help me regarding this.
    -Sameer

    Sameer, you should have uninstalled Web Server 6.1 using the Web Server uninstallation program instead of just deleting its files and directories. Your Windows registry is now in an inconsistent state.
    If you can restore your previous Web Server 6.1 installation from a backup, you can run the uninstaller to correctly uninstall it.
    If you cannot uninstall Web Server 6.1 using its uninstallation program, you will need to manually delete the Windows services and edit the Windows registry to remove all references to the files you deleted. Note that you can render your computer inoperable by deleting services or modifying the Windows registry. Don't do this if you're not confident with what you're doing.
    To delete the services using SC.EXE:C:\>sc delete https-admserv61
    C:\>sc delete https-hostname(You can find the hostname for the Web Server 6.1 service(s) using the Services program in the Administrative Tools folder of the Control Panel.)
    To clean up the registry, use REGEDIT.EXE to delete HKEY_LOCAL_MACHINE/Software/Sun Microsystems/WebServer.

  • Java 1.5, Servlet 2.4 support in Sun Java System Web Server?

    Hi All,
    Does anyone know when the next version of Sun Java System Web Server will be released? 6.1 has been around a while and it doesn't support the latest Java releases, which is odd for a Java product from the company that owns Java. My Sun rep didn't have an answer for me and suggested posting here.
    I have seen references to people trying to use 1.5 with their server in another forum, but they were reporting problems and their questions weren't answered.
    Thanks!
    Dennis

    Hi,
    Try the new
    SAP NetWeaver Application Server, Java EE 5 Edition
    thus you will have the chance to use the latest Servlet 2.5. The download package includes also the new SAP NetWeaver Developer Studio.
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/index?rid=/library/uuid/da699d27-0b01-0010-99b0-f11458f31ef2">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/index?rid=/library/uuid/da699d27-0b01-0010-99b0-f11458f31ef2</a>
    Regards,
    Violeta

  • Any difference between Sun Java System Web Server - Update 1 and update 2

    Any configuration changes need to be made particularly for Sun Java System Web Server - Update 2 in the load balancing. because i face issue in load balancing with Sun Java System Web Server - Update 2 , but load balancing is working fine with Sun Java System Web Server - Update1

    using Sun Java System Web Server - Update 2 as forward proxy. and here is my obj.conf file entries
    # Copyright 2006 Sun Microsystems, Inc. All rights reserved.
    # Use is subject to license terms.
    # You can edit this file, but comments and formatting changes
    # might be lost when you use the administration GUI or CLI.
    <Object name="default">
    AuthTrans fn="match-browser" browser="*MSIE*" ssl-unclean-shutdown="true"
    NameTrans fn="ntrans-j2ee" name="j2ee"
    NameTrans fn="pfx2dir" from="/mc-icons" dir="C:/Program Files/Sun/WebServer7/lib/icons" name="es-internal"
    PathCheck fn="uri-clean"
    PathCheck fn="check-acl" acl="default"
    PathCheck fn="find-pathinfo"
    PathCheck fn="find-index-j2ee"
    PathCheck fn="find-index" index-names="index.html,home.html,index.jsp"
    ObjectType fn="type-j2ee"
    ObjectType fn="type-by-extension"
    ObjectType fn="force-type" type="text/plain"
    Service method="(GET|HEAD)" type="magnus-internal/directory" fn="index-common"
    Service method="(GET|HEAD|POST)" type="*~magnus-internal/*" fn="send-file"
    Service method="TRACE" fn="service-trace"
    Error fn="error-j2ee"
    AddLog fn="flex-log"
    </Object>
    #this line was added for weblogic clustering
    <Object name="webapp" ppath="*/webapp/*">
    Service fn=wl_proxy WebLogicCluster="ip:7002,ip:7003"
    </Object>
    <Object name="j2ee">
    Service fn="service-j2ee" method="*"
    </Object>
    <Object name="es-internal">
    PathCheck fn="check-acl" acl="es-internal"
    </Object>
    <Object name="cgi">
    ObjectType fn="force-type" type="magnus-internal/cgi"
    Service fn="send-cgi"
    </Object>
    <Object name="send-precompressed">
    PathCheck fn="find-compressed"
    </Object>
    <Object name="compress-on-demand">
    Output fn="insert-filter" filter="http-compression"
    </Object>
    <Object name="tunnel" ppath="*/HTTPClnt*">
    Service fn=wl_proxy WebLogicCluster="ip:7002,ip:7003"
    </Object>

  • Sun Java System Web Server support for Red Hat EL 5

    Does anyone have any information when the Sun Java System Web Server might be supported on Red Hat Enterprise Linux 5 Server?
    Thanks

    Certification of RHEL5 will likely happen with one of the upcoming Update releases.
    There is, as far as I know, no reason why Web Server won't run on RHEL5 today though (I use it on Fedora Core 7 without ill effect, and the RHEL trail the Fedora releases a bit in technology versions).

  • Sun java System Web Server 7.0 up2 session replication setting

    hi ....
    Following the standard example of reverse proxy and 2 cluster nodes with session replication
    I get the following starting message
    info ( 3355): CORE5076: Using [Java HotSpot(TM) Server VM, Version 1.5.0_12] from [Sun Microsystems Inc.]
    [07/Aug/2008:15:26:45] warning ( 3355): REPL0081: No backup instance configured for replication service. Disabling replication service
    [07/Aug/2008:15:26:47] info ( 3355): WEB0100: Loading web module in virtual server [mycluster8087] at [myweb]
    [07/Aug/2008:15:26:48] warning ( 3355): WEB9200: sun-web.xml DTD Version with public ID = [-//Sun Microsystems, Inc.//DTD Application Server 8.1 Servlet 2.5//EN] and system ID = [http://www.sun.com/software/appserver/dtds/sun-web-app_2_4-1.dtd] not found in the local respository. Using DTD version with system ID = [http://www.sun.com/software/appserver/dtds/sun-web-app_2_5-0.dtd] instead.
    [07/Aug/2008:15:26:48] warning ( 3355): WEB7204: Application [myweb] is configured with persistence-type [replicated] but Session Replication is not enabled on this instance; falling back to persistence-type [memory]
    [07/Aug/2008:15:26:49] info ( 3355): PWC3031: Security role name tomcat used in an <auth-constraint> without being defined in a <security-role> in context [myweb]
    [07/Aug/2008:15:26:49] info ( 3355): PWC3031: Security role name role1 used in an <auth-constraint> without being defined in a <security-role> in context [myweb]
    [07/Aug/2008:15:26:49] info ( 3355): HTTP3072: http-listener-1: http://mycluster8087:8087 ready to accept requests
    [07/Aug/2008:15:26:49] info ( 3355): CORE3274: successful server startup
    [07/Aug/2008:15:27:37] info ( 3355): CORE5073: Web server shutdown in progress
    ********** sun-web.xml ***************
    <!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server
    8.1 Servlet 2.5//EN" "http://www.sun.com/software/appserver/dtds/sun-web-app_2_4
    -1.dtd">
    <sun-web-app>
    <session-config>
    <session-manager persistence-type="replicated"/>
    </session-config>
    </sun-web-app>
    ** path : dir-root/https-[instance-name]/web-app/[instance-name]/myweb/WEB-INF/sun-web.xml setting ...
    Why is it a case a session replication doing not become?
    Is it a case one a mistake by a setting?

    Try this blog [http://blogs.sun.com/nsegura/entry/h2_session_replication_and_lightweight|http://blogs.sun.com/nsegura/entry/h2_session_replication_and_lightweight]
    4. Enabling Session Replication
    Now that we deployed our web application, we need to enable the session replication feature in the configuration. This will start the session replication services in each instance. We can do this using the CLI administration:
    wadm> set-session-replication-prop --config=mycluster enabled=true
    CLI201 Command 'set-session-replication-prop' ran successfully
    wadm> deploy-config mycluster
    CLI201 Command 'deploy-config' ran successfully

  • SUN Java System Web Server 7.0U1 How to install certificate chain

    I am trying to install a certificate chain using the SUN Java Web Server 7.0U1 HTTPS User interface. What I have tried so far:
    1. Created a single file using vi editor containing the four certificates in the chain by cutting an pasting each certificate (Begin Certificate ... End Certificate) where the top certificate is the server cert (associated with the private key), then the CA that signed the server cert, then the next CA, then the root CA. Call this file cert_chain.pem
    2. Go to Certificates Tab/Server Certificates
    3. Choose Install
    4. Cut and paste contents of cert_chain.pem in the certificate data box.
    5. Assign to httplistener
    6. Nickname for this chain is 'server_cert'
    7. Select httplistener and assign server_cert (for some reason, this is not automatically done after doing step 5).
    8. No errors are received.
    When I display server_cert (by clicking on it), only the first certificate of the chain is displayed and only that cert is provided to the client during the SSL handshake.
    I tried to do the same, except using the Certificate Authority Tab, since this gave the option of designating the certificate as a CA or chain during installation. When I select ed "chain," I get the same results when I review the certificate (only the first cert in the file is displayed). This tells me that entering the chain in PEM format is not acceptable. I tried this method since it worked fine with the F5 BIG-IP SSL appliance.
    My question is what format/tool do I need to use to create a certificate chain that the Web Server will accept?

    turrie wrote:
    1. Created a single file using vi editor containing the four certificates in the chain by cutting an pasting each certificate (Begin Certificate ... End Certificate) where the top certificate is the server cert (associated with the private key), then the CA that signed the server cert, then the next CA, then the root CA. Call this file cert_chain.pemIn my opinion (I may be wrong) cut and pasting multiple begin end
    --- BEGIN CERTIFICATE ---
    ... some data....
    --- END CERTIFICATE ---
    --- BEGIN CERTIFICATE ---
    ... some data....
    --- END CERTIFICATE ---is NOT the way to create a certificate chain.
    I have installed a certificated chain (it had 1 BEGIN CERTIFICATE and one END CERTIFICATE only and still had 2 certificates) and I used the same steps as you mentioned and it installed both the certificates.
    some links :
    [https://developer.mozilla.org/en/NSS_Certificate_Download_Specification|https://developer.mozilla.org/en/NSS_Certificate_Download_Specification]
    [https://wiki.mozilla.org/CA:Certificate_Download_Specification|https://wiki.mozilla.org/CA:Certificate_Download_Specification]

  • Remove and/or change password Sun Java System Web Server 7.0U3

    Running SJSWS 7.0U3 on Solaris 10 U6
    I have access to the physical box the server is running on.
    I must have set something by mistake, now trying to connect to http://ipaddres/host:80 I get prompted for a username password. This is NOT the admin password prompt.
    Things have changed significantly since the s.x days.. So,
    How do I reset and/or remove the password prompt??
    Thanks
    J.

    Actually, nothing much has changed in respect to that behaviour. ACL seems to be doing exactly what it should be for weird URL like the one you are using. Check the default.acl file.

  • Sun Java System Web Proxy Server (4.0.2) - manage server will not start

    In short here's the scenario and main problem.   
    a. Proxy admin server start - no problem
    b. Create a new manage server (no proxying - just testing it) using different port. It just won't start. No logs produced either.
    Here's the server.xml for the new manage server.
    <?xml version="1.0" encoding="UTF-8"?>
    <!--
       Copyright (c) 2003 Sun Microsystems, Inc.  All rights reserved.
       Use is subject to license terms.
    -->
    <!DOCTYPE SERVER PUBLIC "-//Sun Microsystems Inc.//DTD Sun Java System Web Proxy Server 4.0//EN" "file:///E:/Sun/ProxyServer40/bin/proxy/dtds/sun-web-proxy-server_4_0.dtd">
    <SERVER>
        <PROPERTY name="accesslog" value="E:/Sun/ProxyServer40/proxy-server3/logs/access"/>
        <LS id="ls1" port="8083" servername="cbaob-b3-csddb1.adp1.cibc.pte"/>
        <MIME id="mime1" file="mime.types"/>
        <ACLFILE id="acl1" file="E:/Sun/ProxyServer40/httpacl/generated.proxy-server3.acl"/>
        <USERDB id="default"/>
        <FILECACHE enabled="true"  maxage="30" mediumfilesizelimit="537600" mediumfilespace="10485760" smallfilesizelimit="2048" smallfilespace="1048576" transmitfile="false" maxfiles="1024" hashinitsize="0"/>
        <CACHE enabled="true" cachecapacity="2000" cachedir="E:/Sun/ProxyServer40/proxy-server3/cache">
            <PARTITION  partitionname="part1" partitiondir="E:/Sun/ProxyServer40/proxy-server3/cache" maxsize="100" minspace="5" enabled="true"/>
    <GC enabled="true" gchimargin="80" gclomargin="70" gcleavefsfull="60" gcextramargin="30"/>
        </CACHE>
        <LOG file="E:/Sun/ProxyServer40/proxy-server3/logs/errors" loglevel="finest"/>
    </SERVER>
    Nothing seems to be wrong with this. The XML format follows the specified DTD.   
    Would appreciate any help.   
    Thanks.

    Thanks for your reply. Yes. This is really odd.
    Anyway to make the whole story short, i uninstall this proxy server 4.0.2 on this server (say server1) and try to reinstall a new proxy 4.0.13 but having odd problem (i have administration rights)
    Here it goes.
    a. CMD java -version is 1.4.2_XX
    b. Double click the proxy 4.0.13 setup.exe - nothing happen.
    c. CMD setup --javahome c:\jdk1.6_XX - nothing happen
    Here retrying.
    a. Login to server2 and map conection to server1
    b. Double click the proxy 4.0.13 setup.exe on server1 (while on server2) - setup.exe runs. This proves the proxy setup.exe on server1 is good.
    c. Make a copy of proxy 4.0.13 on server2
    d. Login to server1 and map connection to server2
    e. Double click the proxy 4.0.13 setup.exe on server2 (while on server1) - setup.exe did not run.
    Both servers are on the same domain and i'm using same ID to access both servers
    Again, no logs on the windows events (security, application, system)
    This is becoming mind a boggling mystery.
    Any idea what's going on?
    Thanks.

  • Sun Java System Portal Server 6.0 FAQs

    Sun Java System Portal Server 6.0 FAQs.
    Author: Sanjeev Agarwal
    Q. How to connect to external URLs from Sun ONE Portal Server? I want to use URL Scrapper for some of external sites/URLs.
    Ans:
    You can connect to external URLs if you have a Proxy Server running.
    If you are using Web Server addition of Sun ONE the Portal Server then
    go to /opt/SUNWam/servers/https-hostname.domainname/config/ dir
    In the jvm12.conf file, enter the followings:
    http.proxyHost=proxyservername.domainname
    http.proxyPort=80 (or the appropriate proxy server port number)
    https.proxyHost=proxyservername.domainname
    https.proxyPort=80 (or the appropriate proxy server port number)
    If you are using Sun ONE AppServer addition of Sun ONE Portal Server then
    go to /var/opt/SUNWappserver/domains/domain1/<server-instance>/config dir
    In the server.xml file, enter the followings:
    <jvm-options>-Dhttp.proxyHost=proxyservername.domainname </jvm-options>
    <jvm-options>-Dhttp.proxyPort=80 (or the appropriate proxy server port number) </jvm-options>
    <jvm-options>-Dhttps.proxyHost=proxyservername.domainname </jvm-options>
    <jvm-options>-Dhttps.proxyPort=80 (or the appropriate proxy server port number) </jvm-options>
    After this modification restart the server.
    Q. Explain all the processes (solaris 8 and S1 Portal Server 6.0) which runs when I start the Sun ONE Portal Server.
    Ans.
    These are the processes that a running Portal Server installation (Sun ONE WebServer addition, without SRAP) generally has by default.
    1. Directory server processes:
    - ns-slapd (LDAP server instance)
    - uxwdog (admin server process) (parent process)
    --- ns-httpd
    ----- ns-httpd
    2. Auth Helper processes:
    - doUnix
    3. Web-Server/Identity-Server/Portal-Server processes:
    As the Portal Server and Identity Server runs as web application on the Web Server, so they share the same JVM and processes.
    - uxwdog (web server admin server process) (parent process)
    --- ns-httpd
    ----- ns-httpd
    (for each web server instance)
    - uxwdog (parent process)
    - ns-httpd
    - ns-httpd
    or (in case of MaxProc=n )
    - uxwdog (parent process)
    --- ns-httpd
    ----- ns-httpd
    ----- ns-httpd
    ----- n
    Q. I have created a custom Provider but getting this error when I access the desktop, what do I do?
    > error in the desktop.debug file:
    > ERROR: DesktopServlet.handleException()
    > java.util.MissingResourceException: Can't find bundle for base name CustomTabContainerProvider,
    Ans:
    It needs a resource bundle for the custom provider. You need to create a file CustomTabContainerProvider.properties (as mentioned in the error message) and put it into the /etc/opt/desktop/classes directory. If you are not using any properties defined in this resource file then it can be a empty file. Have a look on the properties files that bundled containerProviders uses in dir <portal-install-dir>/SUNWps/web-apps/https-<host.domain>/portal/WEB-INF/classes.
    As you are extending JSPTabContainerProvider class, you can just copy the file JSPTabContainerProvider.properties from the above directory after renaming it to the <defined-provider-name>.properties (in your case CustomTabContainerProvider.properties) and move it into /etc/opt/desktop/classes directory.
    Q. what is actually multiple instances of Portal Server means?
    Ans:
    Multiple instance of Portal Server means, you will have more http listeners for the same desktop contents and the same identity profiles stored in a single Directory Server which all the instances share.
    In simple words you can have your Portal Server listening on different http ports, but uses same configuration, desktop and identities.
    It can help you to share the load for Portal Server http requests. The alternate methods are to create more web server virtual server processes (maxProc=n, but in this case the listening port will be 1 only) or use some hardware load balancer.
    You can achieve more from multiple instances if you have a multi level organization, you can change the look and feel of all the instances, images, services, components and can assign each instance to different organization or sub-organization.
    Q. How do I check the availability of the Sun ONE Portal Server/Identity Server services.
    Ans:
    You can check the availability of Sun ONE Identity Server services from following urls.
    http://<host.domainname>:<port>/amserver/sessionservice
    http://<host.domainname>:<port>/amserver/loggingservice
    To know the availability of components of Sun ONE Portal Server like Desktop/providers/Rewriter/Netmail you have to login into desktop. These are not services, but just the programming identities which will work if your Web Server and Identity Server is running.
    Just go to URL http://<server>:<port>/portal/dt , if it shows up that means your portal server is fine, and these entities will work for sure.
    Q. I am able to add the yahoo channels to existing users. But I am getting the weather for London not for local New Jersey. My language pref is to en|en_US and also the server is the default U.S server and not europe. How do I add the cities I want to see on weather channel?
    Ans:
    A Portal user himself (after login) can select what cities he want to see in weather channel.
    Steps:
    - click the edit button of weather channel
    - click on the area you belong to from Available Sections
    - select the cities from Available Cities select box and add them to Your Choices.
    - click finished from select city page and then again click finished from select area page.
    It will come back to the Portal Desktop and you will see all the cities you have selected in the weather channel.
    Q. How to use getContent() method to use in custom jsp providers (developed by ourselves) so that it can be used to retrieve a jsp page. I have already placed the JSP file in the directory structure /etc/opt/SUNWps/desktop/default/channel_dir. But still the jsp is not being displayed.
    Ans:
    You don't have to do anything in the custom JSPProvider's getContent method except the call { return super.getContent(request,response); } . If all you want is just to show your jsp, then create a channel from the default JSPProvider, and edit the property contentPage of that channel from samplecontent.jsp to your jsp name, save the changes and login again. You should see your JSP.
    Q. I want to remove all the buttons (help/edit etc.) from all the channels/one particular channel in my desktop?
    Ans:
    You can hide any buttons you want from any channel.
    These steps show how to hide all the buttons.
    1. Create a channel say "myNetlet" from netlet provider.
    2. Set the channel title to "myNetlet"
    3. Go to the dir /etc/opt/SUNWps/desktop/default/JSPTableContainerProvider and edit the file providerCommands.jsp, and modify the last line :
    from :
    <%=minMaximizeCommand%><%=helpCommand%><%=editCommand%><%=detachAtachCommand%><%=removeCommand%>
    to:
    <% if ( !(title.equals("myNetlet"))){ %><%=minMaximizeCommand%><%=helpCommand%><%=editCommand%><%=detachAtachCommand%><%=removeCommand%><% } %>
    4. Clean the dir mentioned below which contains compiled JSPs. /var/opt/SUNWps/https-<host>.<domain>/portal/tmp/_jsps/_etc/_opt/_SUNWps/_desktop/_default_en/_JSPTableContainerProvider/_html and reload the page.
    Relogin, and you would not see any buttons on "myNetlet" channel. You can customize this logic as per your needs.
    Q. How to change the title of SampleJSP Channel. I tried to change the channel properties title value via iplanet directory Server Access Management GUI. But it is not getting reflected.
    Ans:
    Through Admin console you can change the channel property "title", and as soon as you refresh the page (Shift reload) of relogin in the portal it get's reflected.
    The reason to this problem may be due to the channel property "title" is having "propagate" value as false and you are setting the channel title in the org level display profile not in the user level display profile.
    So better you change the channel name in user's display profile also.
    For this login into admin console and go to :
    - View: "User Management" -> click on organization -> Show: Users
    - click on the blue arrow of that user
    - click on Edit in section Desktop (this will open a window)
    - then change the channel properties same way you do for Organization display profile.
    Q. Login Problem with SunOne Portal 6.0.
    I was able to download and install sun one portal 6 on Solaris 8. The sample portal page came up after installation. However whenever I try to login to the Login channel with "amadmin" and the passphrase I used during installation, it takes me to another page - iPlanet/LDAP authentication page. Here I tried using the same login, but fails every time (the same login page appears). The url that shows is "http://<hostname>/amserver/login?module=dproadmin&goto=/amconsole/base/AMAdminFrame"
    I tried registering myself as a new user as well. This too fails.
    Ans:
    Make sure you are giving fully qualifying the hostname in the url which invoked the desktop. This in fact is documented in the administration documentation. If the hostname is not fully-qualified, the login page goes into an endless mode. Again, the correct url is "http://<fully-qualified-hostname>/portal". Once you get to the desktop, the login and the new user registration works.
    Q. How to send variables/parameters from 1 app to another app deployed on Sun ONE Portal Server? It may be the apps or different JSPs of JSP provider channel.
    How to achieve inter channel communication in Sun ONE Portal Server?
    Ans:
    You can use servlet context object or session, or may be the request object itself to store the information from one channel and use that in another channel. The use of either of these 3 approaches may depend on your requirements. Using session, the information will be available to that user's channels only, using request, the information will be available for that user and that request only and by using ServletContext you can share the information across users and sessions. You can obtain DesktopServlet's ServletContext object inside JSP/JSPProvider.
    Q. I am trying to modify the default desktop JSPs in TableContainerProvider and TabCotntainerProvider dirs, but it is not picking my modified JSPs ? what do I do?
    Ans:
    One easiest way to 100% ensure that it updates all your new jsp pages is to remove all the compiled jsps so that with next request the Sun ONE Portal Server compiles all the jsps and will make sure that your modification will be taken care of in next request.
    Go to /var/opt/SUNWps/https-<instance_name>/portal/tmp/_jsp/_etc/_opt/_SUNWps/_desktop/_default_<locale>/ and remove everything. and access the Portal server, it will be little slow as it has to compile all the JSPs again. Here you will find directories in the name of Containers and Channels, so if you are modifying any particular Container/Channel you can just delete that only. This approach can help a lot during development time.
    Q. What is the location of compiled JSPs in Sun ONE portal Server and what servlet spec does it supports?
    Ans: The Portal server 6.0 runs on Sun ONE Web Server 6.0 sp2, which supports only jdk 1.3 and servlet spec 2.2 only. The Sun ONE Portal Server keeps the compiled jsps of desktop and channels in : /var/opt/SUNWps/https-<instance_name>/portal/tmp/_jsp/_etc/_opt/_SUNWps/_desktop/_default_<locale>/ dir as per the channels/container names.
    Servlet 2.3 is supported if you run the Portal Server edition that runs on Sun ONE Application Server 7.0.
    Q. How do I change jdk for Sun ONE Portal Server to another jdk? I want to change the JDK of only one of my Portal Server instances, is it possible? how?
    Ans:
    Yes you can achieve both.
    A. To change the JDK for all the server instances:
    Open <portal-install-dir>/SUNWam/servers/https-admserv/start-jvm file and modify the first line
    NSES_JDK=/usr/java_1.3.1_04; export NSES_JDK
    to
    NSES_JDK=<your-jdk-location> ; export NSES_JDK
    then open <portal-install-dir>/SUNWam/servers/https-<instance-name>/config/jvm12.conf file of all the server instances and add a line
    jvm.option=-server after the first line
    B. To change the JDK for a particular server instances:
    Make a another copy of the start-jvm file rename it and modify the jdk location in it as mentioned above.
    Open the start script from <portal-install-dir>/SUNWam/servers/https-<instance-name> dir and modify these lines :
    if test -r {SERVER_ROOT}/https-admserv/start-*
    then
    for STARTSCRIPT in {SERVER_ROOT}/https-admserv/start-*
    modify this to
    if test -r {SERVER_ROOT}/https-admserv/<changed_name_of_start-jvm-file>
    then
    for STARTSCRIPT in {SERVER_ROOT}/https-admserv/<changed_name_of_start-jvm-file>
    Note: As Portal Server 6.0 uses Web server 6.0 sp2, jdk 1.4 is not supported.
    Q. How do I create a custom login page or a link, which will just log me into the portal server.
    Ans:
    You can create a custom page in your jsp page, just add this portion of html into your web page :
    <FORM action="http://<server>:<port>/amserver/login?module=<login-module>&page=1" method=post name=login_form2 target=_top>
    Login page using <login-module><br>
    <P>Enter UserId<BR><INPUT name=TOKEN0 size=22></P>
    <P>Enter Password<BR><INPUT name=TOKEN1 size=22 type=password></P>
    <P><INPUT name=Submit type=submit value=Submit> </P>
    </FORM>
    The <login-module> can be LDAP or Unix or Membership which ever you have enabled. Or instead of this you can create a link. For example for LDAP auth module :
    "<a href="http://<server>:<port>/amserver/login?module=LDAP&page=1&TOKEN0=user&TOKEN1=password" target=_top> Login into Portal </a>"
    where user and password are the user credential for the portal server.
    Q. Can I install a portal server pointing to another Identity server? I want to install few postal servers (on different machines) pointing to same identity server, is it possible?
    Ans:
    No, right now the Sun ONE Portal Server is tightly integrated with Sun ONE Identity Server so you can't just install only Sun ONE Portal Server and point it to another Sun ONE Identity Server. You can have a common Directory server if you want.
    Q. I have an application which takes input in from anonymous user and then to complete the request the user than has to login. I am having problem in passing the taken input from anonymous page to logged in user. all the request parameters are lost when I log in. How do i get the request parameters after I log in
    Ans:
    You can create a custom login page and submit the form to "/amserver/login" with a hidden parameter "goto" through which you basically specify which url to go after you log in. So you can use this mechanism to create a query string with all your request parameters you want to pass after login. For example:
    You can create a jsp which take few inputs from user and to complete the request you have to login so it posts the input form to a login jsp and stores the parameters taken from user in a hidden field (goto) :
    <FORM action="/amserver/login?module=LDAP&page=1" method=post name=login_form2 target=_top>
    Login page using LDAP<br>
    <P>Enter UserId<BR><INPUT name=TOKEN0 size=22></P>
    <P>Enter Password<BR><INPUT name=TOKEN1 size=22 type=password></P>
    <INPUT TYPE=HIDDEN NAME="goto" VALUE="/portal/dt?param1=<%=request.getParameter("param1")%>&param2=<%=request.getParameter("param2")%>">
    <P><INPUT name=Submit type=submit value=Submit> </P>
    </FORM>
    After you login through this page both the param1 and param 2 will be available in the request object after you login and you can retrieve them in your application or jsp.
    Q. I have few System.out.println in my jsp which i am using in my JSP provider channel, but when I look at the portal server's /var/opt/SUNWam/debug/desktop.debug file, none are there. I looked at the web server's access and error logs too, but it is not there also. Can somebody tell me how do it get those ? Do we have any other mechanism to put debug logs ?
    Ans
    By default the binary which web server runs is uxwdog which eats up System.out.println output. If you want to see the System.out.println then you need to change the product binary from the start script of the portal server instance.
    - Go to <portal-install-dir>/SUNWam/servers/https-<instance-name> and open the start script
    - Change the PRODUCT_BIN=uxwdog to PRODUCT_BIN=ns-httpd , save the file
    - Run the script ./start to start the portal server
    Note : with ns-httpd ON the server will not leave that shell, and in the same window/shell you will be able to see all your System.out.println statements. To close the server you have to kill the server process with "kill -9 pids" command
    Alternate way is to use api inside your application or jsp:
    <%@page import="com.sun.portal.providers.jsp.JSPProvider, com.sun.portal.providers.*, com.sun.portal.providers.containers.*, com.sun.portal.providers.context.*" %>
    <% JSPProvider p=(JSPProvider)pageContext.getAttribute("JSPProvider");
    ProviderContext pc = p.getProviderContext(); %>
    <%-- after that you can use these lines any where in your jsp --%>
    <%
    pc.debugError("your error msg");
    pc.debugMessage("your msg");
    pc.debugWarning("your warning msg");
    %>
    The particular mgs will be shwon in /var/opt/SUNWam/debug/desktop.debug file as per your "debugLevel" parameter setting in /etc/opt/SUNWps/desktop/desktopconfig.properties file. By default the debugLevel is set to error so only pc.debugError("error msg") will be shown.
    Q. Multipart form (file upload) processing in providers? Is it supported
    Ans:
    The Sun ONE Portal Server's DesktopServlet does not have the ability to process a request with the content encoding type of multipart/form-data. DesktopServlet does not pass the input stream for the request on to the Provider.
    To accomplish handling of multipart/form-data type requests, it is necessary to create a companion servlet or JSP that process the multipart/form-data. This servlet can then pass control back to the Portal channel. The data from the file can be shared between the servlet and the provider by using static Java members or by storing the data in a back-end database and then passing a reference to the data over to the provider.
    Q. After installing the Portal Server I am trying to login as admin, but it is failing and coming back to login page every time. How do I login?
    Ans:
    The Default Admin user is 'amadmin' and the password is the PASSPHRASE you give during Portal Server installation. Try login using these credentials.
    Also in the browser give the complete URL for the Portal Server like : Http://<myhost>.<mydomain>:<port>/amserver/login or Http://<myhost>.<mydomain>:<port>/amconsole. You can't login into portal server's IDSAME console by giving IP Address or just the hostname, also your machine should be listed in the DNS server so that it can resolve the name.
    Q. I installed Sun ONE Portal Server 6.0 some time back, and now I want to know all the installation parameters and user/passwords for whole portal installation. How do I do that?
    Ans:
    The Default Admin user is 'amadmin' and the password is the PASSPHRASE you give during Portal Server installation. Also in the browser give the complete URL for the Portal Server like : Http://<myhost>.<mydomain>:<port>/amserver/login or Http://<myhost>.<mydomain>:<port>/amconsole. You can't login into portal server's IDSAME console by giving IP Address or just the hostname, also your machine should be listed in the DNS server so that it can resolve the name.
    In case you have forgotten the port numbers and PASSPHRASE that you give during installation, you still can see all the information for each component of your Portal Server Installation. The Portal server and it's components like Directory Server, Web Server and IDSAME are installed as Solaris package so the system has all the information for these packages.
    Portal Server : See file /var/sadm/pkg/SUNWps/pkginfo
    Directory Server : See files /var/sadm/pkg/SUNWamds/pkginfo and /var/sadm/pkg/SUNWamdsc/pkginfo
    Web Server : See file /var/sadm/pkg/SUNWamws/pkginfo
    Identity Server : See file /var/sadm/pkg/SUNWamsam/pkginfo
    Note: In any case you should never edit/modify these files.
    Q. Controlling the display of the help (?) button.
    Where are the links/image elements defined for the help/edit/minimize buttons? the leafWrapper.jsp pulls the hashtable out of the HttpRequest, and that hashtable is being used by providerCommands.jsp:
    Hashtable commands = (Hashtable)request.getAttribute("provider_cmds");
    Any idea where this is being set?
    Ans:
    - You can remove the help/edit button of any channel by adding the line into the Channel's properties by editing the Xml of display profile in the admin console.
    <String name="helpURL" value="" advanced="false" merge="replace" lock="false" propagate="true"/>
    <Boolean name="isEditable" value="false" advanced="false" merge="replace" lock="false" propagate="true"/>
    The Attribute 'provider_cmds' is set into /etc/opt/SUNWps/desktop/default/JSPTableContainerProvider/tablecolumn.jsp :
    <dttable:getProviderCommand id="provider_cmds" scope="request" />, and after that only the leafwrapper.jsp is included, but the Hashtable is generated by a class com.sun.portal.providers.util.ProviderCommands.java and made available through taglib classes. So you can't change the generated contents/string in the Hashtable.
    But you can change the default 'alt' text displayed and the images linked to the help/edit icons. As this modification is at Provider level, it will change the icons for all the channels in the desktop.
    Please see the file:
    /opt/SUNWps/web-apps/https-<host>.<domain>/portal/WEB-INF/classes/JSPTABLEContainerProvider.properties.
    Here you will find the mapping. The image location are given from the context root of portal server which is by default : /opt/SUNWps/web-apps/https-<host>.<domain>/portal.
    Q. I have a number of web applications needed to integrate to portal server. Any pointers or tips of what my option is?
    Ans:
    You can very well integrate all your web application with Portal server. Portal Server 6.0 has web container same as Sun ONE web server 6.0 Sp2, which runs on Jdk-1.3.
    If your web applications are just Servlets/Jsps then you can very well port them on Portal server's webserver which supports war module deployment. (infect for Web server the Portal server and Identity server is like a war module.)
    There can be two possibilities in this case, either you put the whole of your application on portal server and make the link available into the desktop via 'Application Provider Channels' or you can create a client to your web application into portal server.
    If your web application is on Sun ONE Application server 7.0 and needs authentication, you can also have SSO. If you just want to show the link of your web application into desktop then you can either use URL Scrapper to show the first page of your web application or use Bookmark channel to provide just the url.
    The easiest way to make a client of your web application is to use JSP Channel using JSPProvider and put your logic into the samplecontents.jsp file or you can create your own custom Provider extending JSPProvider. There can be a lot of different configurations, depending on the web application you want to integrate and your needs
    Q. I removed few channels from the org level display profile but still they are coming to the desktop of users, I had accessed the desktop before. why?
    Ans:
    If you still see any channel after you remove it from the display profile at organization lever, that means you have to edit the user's display profile. So go to admin console and select User from Show: menu and click on the blue arrow near the user. In the right frame under the 'Desktop' category click on the Edit link (right side). This will open user's display profile in a window. Now edit it as per your requirements.

    Unfortunately Web Server 6.0SP2 is no longer available for download.
    If you must use Web Server 6.0, you should use the most current Service Pack. It is backward compatible and contains many performance and security fixes.

  • Sun Java System Application Server  into Netbean 6.1

    Hi , I am new to Java community,
    I like to lean J2EE so I downloaded
    jdk-1_5_0_16-windows-i586-p and installed
    then I installed
    java-tools-bundle-update5-windows
    I am trying to do the initial setup and do the sample
    The Java EE 5 Tutorial
    See this tutorial for information on building and deploying Java EE 5 applications.
    When I try to register the Sun Java System Application Server into Netbean 6.1
    I could not I have warning, says
    Provide a valid server installation location
    But I gave, C:\Sun\AppServer
    If you guys can give any light on this appreciated

    It doesn't sound like you have installed a Java EE (formerly J2EE) application server. Your download of "jdk-1_5_0_16-windows-i586-p" is Java Standard Edition, which you need, but you also need an implementation of Java Enterprise Edition. The [Sun Java System Application Server|http://developers.sun.com/appserver/] is certainly a valid Java EE implementation, but I don't see in your steps where you downloaded that. There are several types of NetBeans downloads ("bundles") you can perform and I believe that one or more bundles (such as "All" and "Web & Java EE") includes GlassFish as part of the download. I recommend using the GlassFish Java EE implementation that comes with NetBeans 6.1 for learning how to use Java EE with NetBeans. Alternatively, you can download GlassFish separately at [https://glassfish.dev.java.net/|https://glassfish.dev.java.net/].

  • Sun Java System Application Server installation location on windows

    Hi there...
    I'm just doing the "Your First Cup: An Introduction to the Java EE Platform" tutorial for the first time. I'm trying to add the Sun Java System Application Server in NetBeans IDE. It's asking me to select the Platform Location, and I have no idea where that is. No help instructions I've found say where it normally gets installed, and I've found now mention of it on the web.
    Can anyone tell me the location where this is supposed to be located? I HAVE installed the Java EE SDK 5 for Windows. The location it offers as a default is "C:\Program Files\glassfish-v2ur2\", but there is a red message at the bottom of the dialog that reads "Provide a valid Application Server Installation Location for 'Sun Java System App...". The Register Local Default Domain drop-down box has not options to select, either.
    I would try and search some more, but I just don't know what to search for. If anyone can offer any insight into this, I appreciate it.
    Thanks a ton!!!
    Orion Carrier

    I`ve posted a shorter version of the question in the hopes of getting a timely answer. Thanks

Maybe you are looking for