Basics of servlets

Hi friends.....
i have all basic knowledge of servlets but I am finding difficulty in running it on servelt... my problem is with XML file where we provide Servlet-mapping information and all other information about servlet.... can any one please provide me basic tips of writing XML file or it would be better if any body could provide me any web site which can walk me through the steps. I tried searhcing everywhere on net but i found no where.
Thanks!!

the basic things needed for the container to deploy the application are
1. application structure. (comply with j2ee structure)
ie root -->WEB-INF-->web.xml
2.web.xml inside WEB-INF
write below code in web.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
</web-app>
and try again

Similar Messages

  • Basic Login Servlet

    Hi
    I have the code below, a basic login which receives a username and password (which is hardcoded) from a html form.
    However when i enter the data on the html page and hit return, to run the servlet, i get an error 405
    "Status code (405) indicating that the method specified in the Request-Line is not allowed for the resource identified by the Request-URI."
    Can anyone tell me what i'm doing wrong please
    thanks
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    public class LoginServlet extends HttpServlet {
            public void init(ServletConfig config) throws ServletException {
                    super.init(config);
            public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
                    String j_username = request.getParameter("j_username");
                    String j_password = request.getParameter("j_password");
                    String u="user";
                    String p="1234";
                    boolean loginCorrect = false;
                    if((j_username==u)&&(j_password==p)){
                        loginCorrect=true;
                    if(!loginCorrect) {
                            response.sendRedirect("/error.html");
                    } else {
                            response.sendRedirect("/index.html");

    I think this will occur if the HTML form is coded to use the POST method, since you haven't got a doPost(). Have a look at it and see.

  • Error 404 -- Not Found, when a Servlet is invoked from browser

    Obviously, I have not been able to configure my WebLogic Server 5.1.0 to run
              even the simplest servlet.
              I painstakenly went through all the steps that are listed in the WebLogic
              Server 5.1.0 documentation on the Web to enable servlets, but obviously, I
              have missed a step somewhere.
              I have modified the weblogic.properties file as per all the instrustions,
              but the server simply won't recognize any servlets, not even the SqlServlet
              that came with the server as an example.
              It would require more than 1 exchange of posts to resolve it for me, and I
              am wondering if one of you is willing to work with me on this until I have
              managed to configure the server to make a servlet work on it.
              The server does function as a Web server as I can run the index.html
              document by entering the URL: http://localhost:7001/index.html
              I am pasting the contents of weblogic.properties file below to get the
              person who is willing to help me started.
              The machine I have is a Pentium III with Windows 2000 Professional on it.
              It's a home machine and the WebLogic server is the freely downloadable
              version. I am using it to prepare for a potential contract work.
              I have managed to modify setEnv.cmd file and have managed to compile the
              SqlServlet.java, which is an example servlet. Neither this particular
              servlet nor a HelloWorld type of very basic servlet I have written are
              recognized by the server.
              As you can see from my weblogic.properties file (pasted at the end of this
              post), the SqlServlet has been registered. I have also uncommented the lines
              to allow for the following type of URL:
              http://localhost:7001/servlet/myServlet
              Thanks!
              Anjum Jaleel
              CONTENTS OF MY weblogic.properties file
              # THE WEBLOGIC PROPERTIES FILE
              # This file, which conforms to the java.util.Properties file
              # definition, configures your WebLogic products. You cannot run
              # WebLogic Server without setting required configuration properties in this
              # file. Required properties are marked and appear first in the file.
              # Details on each entry and important information about configuration
              # and security are documented on our website. Please go to:
              # http://www.weblogic.com/docs51/admindocs/properties.html
              # for full instructions on how to edit this file.
              # You do not need to include properties in this file unless you want to
              # change the default, embedded property. Some properties on the
              # AdminProps page are not listed here because the default property
              # is being used. You can change the default by adding the property and
              # its value to this file.
              # You cannot set weblogic.system.home in this file, since the WebLogic
              Server
              # must know where home is in order to retrieve this file. You can
              # change WebLogic home on the command line when you start the
              # WebLogic Server.
              # CLUSTER USERS: Note that the (shared) per-cluster properties file should
              # contain most all of the properties in this file. The only properties
              # that potentially belong in a per-server properties file for a server
              # running in a cluster are the registration (startup class) of pinned
              # RMI objects, and a few tuning properties that may be different for
              # servers in the cluster, depending upon hardware and memory. If you use
              # a per-server properties file, please REMOVE all properties except those
              # that are specifically required in the per-server properties file. You
              # can find specific notes on clusters by searching through this file for
              # "CLUSTER USERS".
              # The way this file is organized:
              # Core properties (includes REQUIRED and RECOMMENDED)
              # Core system properties
              # Core security-related properties
              # Core security-related properties for SSL
              # Core HTTPD administrative properties
              # Optional properties
              # Administrator properties
              # System properties
              # System startup files
              # System shutdown files
              # Security-related properties for Workspaces
              # Jolt for WebLogic properties
              # WebLogic Enterprise Connectivity properties
              # WebLogic File properties
              # WebLogic JMS demo properties
              # WebLogic RMI demo properties
              # WebLogic EJB demo properties
              # WebLogic XML demo properties
              # WebLogic ZAC demo properties
              # HTTPD administrative properties
              # WebLogic JDBC driver properties
              # WebLogic JDBC connection pool management
              # WebLogic demo connection pool
              # WebLogic HTTP Servlet properties
              # Proxy servlet registration
              # Classpath servlet registration
              # File servlet registration
              # ServerSideInclude servlet registration
              # PageCompileServlet (used by JHTML)
              # JSPServlet (used by JSP)
              # ServletServlet registration
              # Servlet reload properties
              # Servlet ACLs
              # WebLogic JSP properties
              # WebLogic JHTML properties
              # WebLogic RMI over IIOP properties
              # User-written and demo servlet registrations
              # CORE PROPERTIES
              # You should set these before you start the WebLogic Server the first time.
              # If you need more instructions on individual properties in this
              # section, check the same section in the Optional Properties, where
              # we've left the long explanations. Or, better yet, go to our
              # website and read all about properties, at:
              # http://www.weblogic.com/docs51/admindocs/properties.html
              # CORE SYSTEM PROPERTIES
              # TCP/IP port number at which the WebLogic Server listens for connections
              weblogic.system.listenPort=7001
              # CORE SECURITY-RELATED PROPERTIES
              # Read important information about security at:
              # http://www.weblogic.com/docs51/admindocs/properties.html
              # REQUIRED: The system password MUST be set in order to start the
              # WebLogic Server. This password is case-sensitive, at least 8 characters.
              # The username for the privileged user is ALWAYS "system".
              # This username and password also includes httpd access (see
              # HTTPD properties below).
              weblogic.password.system=lovkako1
              # RECOMMEND Set to 'everyone' if HTTPD is enabled
              weblogic.allow.execute.weblogic.servlet=everyone
              # Set individual ACLs to restrict access to HTTP-related resources,
              # such as the Administration servlets.
              # To make your own servlets generally available, follow this
              # pattern (provide a weblogic.allow.execute) for your packages and
              # set ACLs as appropriate.
              # CORE SECURITY-RELATED PROPERTIES FOR SSL
              # Read important information about SSL at:
              # http://www.weblogic.com/docs51/classdocs/API_secure.html
              # Enable SSL
              # (default if property not defined is false)
              weblogic.security.ssl.enable=true
              # SSL listen port
              weblogic.system.SSLListenPort=7002
              # Servlets for SSL
              # Authentication servlet for creating tokens for applets
              weblogic.httpd.register.authenticated=weblogic.t3.srvr.ClientAuthenticationS
              ervlet
              # Limits number of unclaimed stored tokens
              weblogic.security.certificateCacheSize=3
              # Capture CA root of client servlet
              weblogic.httpd.register.AdminCaptureRootCA=admin.AdminCaptureRootCA
              # Certificates for SSL
              # Name of acceptable CA roots
              # For client authentication change value to a valid .pem file
              #weblogic.security.clientRootCA=SecureServerCA.pem
              # Server certificates for SSL
              weblogic.security.certificate.server=democert.pem
              weblogic.security.key.server=demokey.pem
              weblogic.security.certificate.authority=ca.pem
              # registration for certificate generator servlet
              weblogic.httpd.register.Certificate=utils.certificate
              weblogic.allow.execute.weblogic.servlet.Certificate=system
              # CORE HTTPD ADMINISTRATIVE PROPERTIES
              # True permits the HTTPD to run (default)
              # Uncomment this property to disable HTTPD
              weblogic.httpd.enable=true
              # If authentication is required, add username/password for each user
              # who will be included in an ACL, as in this commented-out example:
              #weblogic.password.peter=#8gjsL4*
              # OPTIONAL PROPERTIES
              # These properties affect the behavior of the WebLogic Server.
              # You only need to set these properties if you want
              # to change the default setting, which is the property shown.
              # ADMINISTRATOR PROPERTIES
              # Administrator properties are optional information properties,
              # particularly useful for clusters.
              #weblogic.administrator.location=3355 California Drive, West Hampshire, CA
              94104
              #weblogic.administrator.name=Joe Administrator
              #weblogic.administrator.phone=1 415 555 1234
              # SYSTEM PROPERTIES
              # System properties in this section are set to system defaults
              # Performance pack. The shared library must be accessible from your
              # PATH (NT) or from your shared library path (UNIX; the name of the
              # variable varies: LD_LIBRARY_PATH, SHLIB_PATH, etc.)
              weblogic.system.nativeIO.enable=true
              # Outputs logging information to the console as well as to the log file
              weblogic.system.enableConsole=true
              # Sets the directory or URL for the WebLogic Admin help pages
              # The help pages are shipped in the "docs/adminhelp" directory, in the
              # default document root in public_html
              weblogic.system.helpPageURL=g:/weblogic/myserver/public_html/docs51/adminhel
              p/
              # If you prefer to access the most recent help pages, you can do so online
              # by commenting out the previous property and uncommenting this one:
              #weblogic.system.helpPageURL=http://www.weblogic.com/docs51/adminhelp/
              # Properties for tuning the server's performance
              # Number of WebLogic Server execute threads.
              weblogic.system.executeThreadCount=15
              # Other optional system properties
              # Limits size of weblogic.log (in K) and versions old log
              weblogic.system.maxLogFileSize=1024
              # Adjust minimum length of password
              weblogic.system.minPasswordLen=8
              # UNIX only: If running on port 80 on UNIX, enable the setUID program
              #weblogic.system.enableSetUID=false
              # UNIX only: Unprivileged user to setUID to after starting up
              # WebLogic Server on port 80
              #weblogic.system.nonPrivUser=nobody
              # CLUSTER-SPECIFIC PROPERTIES
              # Cluster-specific properties in this section are set to system defaults.
              # CLUSTER USERS: Note that ALL Cluster-specific properties should be set
              # in the per-cluster properties file ONLY.
              # Time-to-live (number of hops) for the cluster's multicast messages
              # (default 1, range 1-255).
              #weblogic.cluster.multicastTTL=1
              # Sets the load-balancing algorithm to be used between
              # replicated services if none is specified. If not specified,
              # round-robin is used.
              #weblogic.cluster.defaultLoadAlgorithm=round-robin
              # SERVER-SPECIFIC CLUSTER PROPERTIES
              # Cluster-related properties in this section are set to system defaults.
              # CLUSTER USERS: Note that these server-specific cluster-related properties
              # should be set in the per-server properties file ONLY.
              # Sets the weight of the individual server for the weight-based
              load-balancing.
              # Range is 0 - 100.
              # Larger numbers increase the amount of traffic routed to this server.
              #weblogic.system.weight=100
              # SYSTEM STARTUP FILES - Examples
              # CLUSTER USERS: Note that ONLY startup registrations for pinned RMI
              # objects should be registered in the per-server properties file.
              # All other startup classes should be registered in the per-cluster
              # properties file.
              # For more info on writing and using startup file, see the
              # Developers Guide "Writing a WebLogic Client application," at
              # http://www.weblogic.com/docs51/classdocs/API_t3.html
              # Register a startup class by giving it a virtual name and
              # supplying its full pathname.
              #weblogic.system.startupClass.[virtual_name]=[full_pathname]
              # Add arguments for the startup class
              #weblogic.system.startupArgs.[virtual_name]={argname]=[argvalue]
              # This example shows the entry for examples/t3client/StartupQuery.java
              #weblogic.system.startupClass.doquery=examples.t3client.StartupQuery
              #weblogic.system.startupArgs.doquery=\
              # query=select * from emp,\
              # db=jdbc:weblogic:pool:demoPool
              # SYSTEM SHUTDOWN FILES - Examples
              # For more info on writing and using shutdown file, see the
              # Developers Guide "Writing a WebLogic Client application," at
              # http://www.weblogic.com/docs51/classdocs/API_t3.html
              # Register a shutdown class by giving it a virtual name and
              # supplying its full pathname.
              #weblogic.system.shutdownClass.[virtual_name]=[full_pathname]
              # Add arguments for the shutdown class
              #weblogic.system.shutdownArgs.[virtualName]={argname]=[argvalue]
              # This example shows the entry for examples/t3client/ShutdownTest.java
              #weblogic.system.shutdownClass.ShutdownTest=examples.t3client.ShutdownTest
              #weblogic.system.shutdownArgs.ShutdownTest=\
              # outfile=c:/temp/shutdown.log
              # SECURITY-RELATED PROPERTIES FOR WORKSPACES
              # For backward compatibility, the following entries disable Access
              # Control on Workspaces
              weblogic.allow.read.weblogic.workspace=everyone
              weblogic.allow.write.weblogic.workspace=everyone
              # JOLT FOR WEBLOGIC PROPERTIES
              # These properties configure a BEA Jolt connection pool for use with
              # the simpapp and bankapp examples, and register a servlet for use with
              # with the simpapp example. The default server address provided here
              # points to a public TUXEDO server that is hosted by BEA for use with
              # this example.
              # Servlet registration for simpapp example:
              #weblogic.httpd.register.simpapp=examples.jolt.servlet.simpapp.SimpAppServle
              t
              # Pool creation and cleanup
              # note this example is set up to work with the public
              # demo TUXEDO server available from BEA's website:
              #weblogic.system.startupClass.demojoltpoolStart=\
              # bea.jolt.pool.servlet.weblogic.PoolManagerStartUp
              #weblogic.system.startupArgs.demojoltpoolStart=\
              # poolname=demojoltpool,\
              # appaddrlist=//beademo1.beasys.com:8000,\
              # failoverlist=//beademo1.beasys.com:8000,\
              # minpoolsize=1,\
              # maxpoolsize=3
              #weblogic.system.shutdownClass.demojoltpoolStop=\
              # bea.jolt.pool.servlet.weblogic.PoolManagerShutDown
              #weblogic.system.shutdownArgs.demojoltpoolStop=\
              # poolname=demojoltpool
              # WEBLOGIC ENTERPRISE CONNECTIVITY PROPERTIES
              # The registrations enable a BEA IIOP connection pool and
              # register servlets for use with the simpapp and university examples.
              # Configure for your environment and uncomment to use.
              # Uncommenting these properties requires WebLogic Enterprise Connectivity
              # and an operating WebLogic Enterprise Server.
              # Servlet registration for simpapp servlet example
              #weblogic.httpd.register.SimpappServlet=\
              # examples.wlec.servlets.simpapp.SimpappServlet
              #weblogic.allow.execute.weblogic.servlet.SimpappServlet=everyone
              # Servlet registration for simpapp EJB example
              # (You'll need to add the wlec_ejb_simpapp.jar to the
              # weblogic.ejb.deploy property in this file.)
              #weblogic.httpd.register.ejbSimpappServlet=\
              # examples.wlec.ejb.simpapp.ejbSimpappServlet
              #weblogic.allow.execute.weblogic.servlet.ejbSimpappServlet=everyone
              # Pool creation and cleanup for the simpapp example
              #weblogic.CORBA.connectionPool.simplepool=\
              # appaddrlist=//wlehost:2468,\
              # failoverlist=//wlehost:2468,\
              # minpoolsize=2,\
              # maxpoolsize=3,\
              # username=wleuser,\
              # userrole=developer,\
              # domainname=simpapp
              # Servlet registration for university Servlet example:
              #weblogic.httpd.register.UniversityServlet=\
              # examples.wlec.servlets.university.UniversityServlet
              #weblogic.allow.execute.weblogic.servlet.UniversityServlet=everyone
              # Pool creation and cleanup for the University example:
              #weblogic.CORBA.connectionPool.Univpool=\
              # appaddrlist=//wlehost:2498,\
              # failoverlist=//wlehost:2498,\
              # minpoolsize=2,\
              # maxpoolsize=3,\
              # username=wleuser,\
              # userrole=developer,\
              # apppassword=wlepassword,\
              # domainname=university
              # WEBLOGIC FILE PROPERTIES
              # Maps a volume name to a path, for client file read/write
              #weblogic.io.fileSystem.[volumeName]=[fullPathName]
              # WEBLOGIC JMS DEMO PROPERTIES
              # CLUSTER USERS: Note that ALL JMS deployment should be done in the
              # per-cluster properties file ONLY.
              # You set up a JDBC connection pool if you want persistent messages
              # (including durable subscriptions). To use JMS and EJBs in the same
              # transaction, both must use the same JDBC connection pool. Uncomment
              # the following property to use the default JDBC connection pool
              # 'demo', which is defined in the Demo connection pool section of this file.
              #weblogic.jms.connectionPool=demoPool
              # The JMS Webshare example demonstrates how the ClientID for a
              # durable subscriber is configured in the connection factory:
              #weblogic.jms.topic.webshareTopic=jms.topic.webshareTopic
              #weblogic.jms.connectionFactoryName.webshare=jms.connection.webshareFactory
              #weblogic.jms.connectionFactoryArgs.webshare=ClientID=webshareUser
              #weblogic.httpd.register.webshare=examples.jms.webshare.WebshareServlet
              # The JMS trader example shows how to use JMS with an EJB. In addition
              # to uncommenting the following properties, you must also set up and
              # deploy the EJB example examples.ejb.basic.statelessSession.Trader in
              # ejb_basic_statelessSession.jar to try out this JMS example:
              #weblogic.jms.topic.exampleTopic=javax.jms.exampleTopic
              #weblogic.jms.connectionFactoryName.trader=jms.connection.traderFactory
              #weblogic.jms.connectionFactoryArgs.trader=ClientID=traderReceive
              #weblogic.httpd.register.jmstrader=examples.jms.trader.TraderServlet
              # Registers the underlying servlet
              #weblogic.httpd.register.jmssender=examples.jms.sender.SenderServlet
              # These properties are used with the ServerReceive JMS example,
              # which demonstrates how to establish a JMS message consumer
              # in a startup class:
              #weblogic.system.startupClass.serverReceive=\
              # examples.jms.startup.ServerReceive
              #weblogic.system.startupArgs.serverReceive=\
              # connectionFactory=javax.jms.TopicConnectionFactory,\
              # topic=javax.jms.exampleTopic
              # These properties are used with the PoolReceive JMS example,
              # which demonstrates how to establish a pool of JMS message consumers
              # in a startup class:
              #weblogic.system.startupClass.poolReceive=\
              # examples.jms.startup.PoolReceive
              #weblogic.system.startupArgs.poolReceive=\
              # connectionFactory=javax.jms.TopicConnectionFactory,\
              # topic=javax.jms.exampleTopic
              #weblogic.allow.create.weblogic.jms.ServerSessionPool=everyone
              # WEBLOGIC RMI DEMO PROPERTIES
              # CLUSTER USERS: Note that pinned RMI objects should be registered
              # in the per-server properties file ONLY. All other RMI startup
              # classes should be registered in the per-cluster properties file.
              # Remote classes registered at startup after the pattern:
              #weblogic.system.startupClass.[virtualName]=[fullPackageName]
              # These examples can be compiled to see RMI in action. Uncomment to use:
              #weblogic.system.startupClass.hello=examples.rmi.hello.HelloImpl
              #weblogic.system.startupClass.multihello=examples.rmi.multihello.HelloImpl
              #weblogic.system.startupClass.stock=examples.rmi.stock.StockServer
              # WEBLOGIC EJB DEMO PROPERTIES
              # CLUSTER USERS: Note that ALL EJB deployment should be done in the
              # per-cluster properties file ONLY.
              # See WebLogic Demo Connection Pool below for a connection pool
              # to use with these examples.
              # Deploys EJBeans. Uncomment the appropriate lines below and
              # modify DBMS-related info and paths to match your particular installation:
              #weblogic.ejb.deploy=\
              # g:/weblogic/myserver/ejb_basic_beanManaged.jar, \
              # g:/weblogic/myserver/ejb_basic_containerManaged.jar, \
              # g:/weblogic/myserver/ejb_basic_statefulSession.jar, \
              # g:/weblogic/myserver/ejb_basic_statelessSession.jar, \
              # g:/weblogic/myserver/ejb_extensions_finderEnumeration.jar, \
              # g:/weblogic/myserver/ejb_extensions_readMostly.jar, \
              # g:/weblogic/myserver/ejb_subclass.jar, \
              # g:/weblogic/myserver/jolt_ejb_bankapp.jar
              # Servlet used by the EJB basic beanManaged example
              # Uncomment to use:
              #weblogic.httpd.register.beanManaged=\
              # examples.ejb.basic.beanManaged.Servlet
              # Add a list of users (set the password with
              weblogic.password.[username]=XXX)
              # to set an ACL for this servlet:
              #weblogic.allow.execute.weblogic.servlet.beanManaged=user1,user2,etc
              #weblogic.password.user1=user1Password
              #weblogic.password.user2=user2Password
              # WEBLOGIC XML DEMO PROPERTIES
              # These properties are required to run the XML examples.
              # Uncomment to use.
              # CLUSTER USERS: Note that ALL servlets should be set up
              # in the per-cluster properties file ONLY.
              #weblogic.httpd.register.StockServlet=examples.xml.http.StockServlet
              # BizTalk example properties
              #weblogic.jms.queue.tradeIncoming=biztalk.jms.tradeIncoming
              #weblogic.jms.queue.tradeError=biztalk.jms.tradeError
              #weblogic.httpd.register.BizTalkServer=examples.xml.biztalk.BizHttpProtocolA
              dapter
              #weblogic.httpd.initArgs.BizTalkServer=bizQueue=biztalk.jms.tradeIncoming
              # WEBLOGIC ZAC DEMO PROPERTIES
              # These registrations enable the ZAC Publish Wizard.
              weblogic.zac.enable=true
              # Set the publish root for a WebLogic Server. Edit and
              # uncomment to use.
              #weblogic.zac.publishRoot=g:/weblogic/zac
              # Set an ACL for each package you publish. The [name] is
              # the "Package name" you assign in the ZAC Publish Wizard.
              # Publish a package, edit this property, and uncomment to use.
              #weblogic.allow.read.weblogic.zac.[name]=[user list]
              #weblogic.allow.write.weblogic.zac.[name]=system
              # HTTPD ADMINISTRATIVE PROPERTIES
              # Enables logging of HTTPD info in common log format and
              # sets the log file name (default is "access.log" in "myserver")
              weblogic.httpd.enableLogFile=true
              weblogic.httpd.logFileName=access.log
              # Tracks HTTPD requests with events delivered to WEBLOGIC.LOG.HTTPD
              weblogic.httpd.enableEvents=false
              # Enables HTTP sessions
              weblogic.httpd.session.enable=true
              # Sets an optional cookie name. The default name is "WebLogicSession".
              # Prior to version 4.0, the default was "TengahSession". To make
              # this backward compatible with cookies generated from previous
              # installations, you should set this property to "TengahSession".
              # Uncomment this line and set this to any string of your choice,
              # or comment out this property to use the default.
              #weblogic.httpd.session.cookie.name=WebLogicSession
              # MIME types
              weblogic.httpd.mimeType.text/html=html,htm
              weblogic.httpd.mimeType.image/gif=gif
              weblogic.httpd.mimeType.image/jpeg=jpeg,jpg
              weblogic.httpd.mimeType.application/pdf=pdf
              weblogic.httpd.mimeType.application/zip=zip
              weblogic.httpd.mimeType.application/x-java-vm=class
              weblogic.httpd.mimeType.application/x-java-archive=jar
              weblogic.httpd.mimeType.application/x-java-serialized-object=ser
              weblogic.httpd.mimeType.application/octet-stream=exe
              weblogic.httpd.mimeType.text/vnd.wap.wml=wml
              weblogic.httpd.mimeType.text/vnd.wap.wmlscript=wmls
              weblogic.httpd.mimeType.application/vnd.wap.wmlc=wmlc
              weblogic.httpd.mimeType.application/vnd.wap.wmlscriptc=wmlsc
              weblogic.httpd.mimeType.image/vnd.wap.wbmp=wbmp
              # In seconds, the keep-alive for HTTP and HTTPS requests
              weblogic.httpd.http.keepAliveSecs=60
              weblogic.httpd.https.keepAliveSecs=120
              # WEBLOGIC JDBC DRIVER PROPERTIES
              # Enables JDBC driver logging and sets the file name for the log
              # The weblogic.jdbc.logFile is placed in the per-server
              # directory (default is "myserver")
              weblogic.jdbc.enableLogFile=false
              weblogic.jdbc.logFileName=jdbc.log
              # WEBLOGIC JDBC CONNECTION POOL MANAGEMENT
              # CLUSTER USERS: Note that ALL JDBC connection pools should be set up
              # in the per-cluster properties file ONLY.
              # For creating JDBC connection pools. This example shows a connection
              # pool called "oraclePool" that allows 3 T3Users "guest," "joe," and "jill"
              # to use 4 JDBC connections (with a potential for up to 10 connections,
              # incremented by two at a time, with a delay of 1 second between each
              # attempt to connect to the database), to an Oracle database server called
              # "DEMO." If more than 4 connections are opened, after 15 minutes, unused
              # connections are dropped from the pool until only 4 connections remain
              open.
              # Every 10 minutes, any unused connections in the pool are tested and
              # refreshed if they are not viable.
              #weblogic.jdbc.connectionPool.oraclePool=\
              # url=jdbc:weblogic:oracle,\
              # driver=weblogic.jdbc.oci.Driver,\
              # loginDelaySecs=1,\
              # initialCapacity=4,\
              # maxCapacity=10,\
              # capacityIncrement=2,\
              # allowShrinking=true,\
              # shrinkPeriodMins=15,\
              # refreshMinutes=10,\
              # testTable=dual,\
              # props=user=SCOTT;password=tiger;server=DEMO
              # Get more details on each argument for this property in the
              # Administrators Guide on setting properties at:
              # http://www.weblogic.com/docs51/admindocs/properties.html
              # Set up ACLs for this connection pool with the following:
              #weblogic.allow.reserve.weblogic.jdbc.connectionPool.oraclePool=\
              # guest,joe,jill
              #weblogic.allow.reset.weblogic.jdbc.connectionPool.oraclePool=\
              # joe,jill
              #weblogic.allow.shrink.weblogic.jdbc.connectionPool.oraclePool=\

    Problem Resolved!
              I found out that I had 'http' instead of 'httpd' in the statement where I
              registered my servlet, SqlServlet.
              Now, I am having difficulty with hot deployment. The server is returning
              error 404.
              

  • Cannot find javax.servlet package

    I have just downloaded and installed the latest JEE SDK having installed Tomcat on a Linux box so that I can start getting to know JSP.
    I am following an example in a book I have for this Servlet...
    import javax.servlet.http.*;
    import javax.servlet.*;
    import java.io.IOException;
    public class BasicServlet extends HttpServlet {
         public void doGet (HttpServletRequest req, HttpServletResponse res)
              throws IOException {
              ServletOutputStream out = res.getOutputStream();
              res.setContentType("text/html");
              out.println("<html><head><title>Basic Servlet</title></head>");
              out.println("<body>Hello World</body></html>");
    I am using Textpad to write and compile my java and when I try to compile I get errors basically saying that it cannot find the first 2 packages I am trying to import (it manages to find the IOException fine)
    Any ideas why? I suspect that the servlet package is not in the classpath but I do no know where the package is in order to add it to my class path.
    many thanks

    I have just downloaded and installed the latest JEE
    SDK having installed Tomcat on a Linux box so that I
    can start getting to know JSP.
    I am following an example in a book I have for this
    Servlet...
    import javax.servlet.http.*;
    import javax.servlet.*;
    import java.io.IOException;
    public class BasicServlet extends HttpServlet {
    public void doGet (HttpServletRequest req,
    , HttpServletResponse res)
              throws IOException {
              ServletOutputStream out = res.getOutputStream();
              res.setContentType("text/html");
    out.println("<html><head><title>Basic
    ic Servlet</title></head>");
              out.println("<body>Hello World</body></html>");
    I am using Textpad to write and compile my java and
    when I try to compile I get errors basically saying
    that it cannot find the first 2 packages I am trying
    to import (it manages to find the IOException fine)
    Any ideas why? I suspect that the servlet package is
    not in the classpath but I do no know where the
    package is in order to add it to my class path.
    many thanksHave u included your servletapi.jar into classpath
    If u havnt . set classpath to point to servletapi.jar
    if it helps .. release dukes.
    sudhir nimavat
    http://www.jyog.com

  • Applet-Servlet or RMI - which is better

    We are in the process of developing a swing-applet based system that requires regular interaction with multiple databases residing on more than one database server.
    The options available before us, as we evaluate are:
    a. Use "signed" applets ( as this is going to be essentially an intra-net application) and use JDBC connection to connect to more than one database ( which reside on servers other than the web server).
    b. Use applet - servlet communication - basically, the servlet would establish connection to the databases, directly or through EJB, retrieve necessary database information and pass on the objects to the applet - the front end GUI would be controlled by the applet.
    c. Use RMI
    We would like to have your perspective of the three options, with your experience in this line.
    The questions that come to us are:
    a. If the system is essentially an intra-net application, is it okay to design with "signed" applet mechanism - how far is this method common in the market and acceptable to the clients? Is it true that the signed applet would be able to establish connection to various "identified servers" that are allowed permissions in the security file?
    b. Between applet-servlet and RMI, which is a better method? What should be the factors that need to be considered? Is RMI being widely used or should we be thinking in terms of EJB, eventhough the current project is purely a Java based solution.
    Your input is highly appreciated - thanking in advance for any suggestions and inputs that you may provide.
    Thanks
    Dixie

    Dixie,
    1) IMHO signed applets are not widely used, but you can use
    ordinary applets, which are accessing other resources through
    redirector servlet on server side - I mean ordinary applets
    are prohibited to establish connect to other than it's own server.
    So you will be forced to have special servlet on your server,
    which have access to other resources on other servers - this is a
    way how to avoid applets limitation.
    2) RMI is a heavy solution, because all parameters/objects should
    be serialized over net and if network connection is unreliable
    working with system will be just a nighmare.
    3) If you think that your network connection is unreliable, you can use HTTP protocol between client and server instead of RMI. In this case
    you will have following benefits:
    i) You can still use all of powerness of thick client
    ii) Network unreliability will be defeated
    iii) Sometime if you would like to port your application to a thin
    client it will be done much more easier than in case of RMI
    4) If you would like to use thin client your only problem will
    be poorness of UI - if you can go with it - go ahead! Otherwise
    use thick client with RMI or HTTP depending on quality of network.
    Paul

  • ClassFormat servlet error?

    Hi,
    I'm trying to run a basic Hello servlet on Tomcat (5.5). But I can't get it to work. I get the following errors:
    javax.servlet.ServletException: Error allocating a servlet instance ...
    java.lang.ClassFormatError: Illegal constant pool index 0 for method name in class file Hello
    The version of Tomcat is 5.5.17 and my JDK version is JDK 1.5.0_15
    Would appreciate any help, as this is a very basic servlet, and the source code is fine.
    Thanks

    I tried various versions of JDK 1.5, including JDK1.5.0_14 and below (I even tried JDK 1.4 with servlet.jar). I still get the same error:
    javax.servlet.ServletException: Error allocating a servlet instance
         org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)
         org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)
         org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:754)
         org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:684)
         org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:876)
         org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         java.lang.Thread.run(Thread.java:595)
    root cause
    java.lang.ClassFormatError: Illegal constant pool index 0 for method name in class file Hello
         java.lang.ClassLoader.defineClass1(Native Method)
         java.lang.ClassLoader.defineClass(ClassLoader.java:620)
         java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
         org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1812)
         org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:866)
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1319)
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
         org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)
         org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)
         org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:754)
         org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:684)
         org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:876)
         org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         java.lang.Thread.run(Thread.java:595)

  • Generic Online Store using Servlets or jsps

    Ok first of im really new to Java and im in an advanced course for software development. My current project is to creat an HTML frontside of the simple store. And if this is in the wrong forum plesae sugest what forum to post it in, Im new to the forum as well.
    here's a picture of my frontside.
    http://i7.photobucket.com/albums/y291/dayv2005/page.jpg
    Im using netBeans 5.0 and im starting with creating an item bean for the items on my page. There im getting pulling the parameters from the form on my page.
    Now i want to creat a basic store from that and creat a session and a shopping cart for my project.
    I was wondering if ne one could help me out with some advice or even some tutorials for what im trying to do. Tutorials seems to help me out a lot and dont worry im not trying to ask someone to do the project for me but ne help is apprecieated thanks in advance.

    Ok let me restate this that pet store wasnt the same idea i was going for.
    Ok i have forms on my web page i named the forms textbox and add to cart buttons. Now what i want them to do is some how submit to my servlet and my servlet will have a shopping cart session to keep track of what they bought and stuff like that. Thats more or so what im look at just somehting basic useing servlets i think im gonna stay away from jsps for now. Just somehting basic with no DB or JSP just html and servlets.
    how about can anyone help with that

  • R12 Custom Servlet Debugging

    Hello Gurus,
    I am a novice w.r.t. Java.
    We are on EBS R12.1.3.
    I have written a custom servlet that will generate BI Publisher output.
    Basically the servlet will then be used within Oracle Apps forms to generate the BI Publisher output.
    The servlet works fine locally using JDeveloper.
    I have now deployed the servlet in R12 server.
    When I try to execute the servlet in a browser, it hangs and does not show output. Probably there is some exception somewhere.
    Where is the exception logged?
    How can I debug the servlet? If I write System.out.println, then what location will it write on the R12 server?
    Regards,
    Jay

    http://www.google.com/search?q="public class"+"extends httpservlet"

  • How to deal with security when migrating application from weblogic 5.1 to weblogic 6.1?

    Dear All,
    I have one statement int weblogic 5.1 weblogic.propertis as follow,
    weblogic.security.realmClass=com.tbcn.security.realm.TestRealm
    but after converting to weblogic 6.1 there are no corresponding statement in
    the file config.xml. And when i start the new application, error occured.
    what should I do?
    The error message is:
    <2001/8/27 am 11:33:42> <Notice> <Management> <Loading configuration file
    .\config\tbcn\config.xml
    <2001/8/27 am 11:33:49> <Emergency> <Server> <Unable to initialize the
    server: 'Fatal initializatio
    Throwable: java.lang.NullPointerException
    java.lang.NullPointerException
    at
    weblogic.security.SecurityService.initializeRealm(SecurityService.java:261)
    at
    weblogic.security.SecurityService.initialize(SecurityService.java:115)
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:385)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:197)
    at weblogic.Server.main(Server.java:35)
    '>
    The WebLogic Server did not start up properly.
    Exception raised: java.lang.NullPointerException
    java.lang.NullPointerException
    at
    weblogic.security.SecurityService.initializeRealm(SecurityService.java:261)
    at
    weblogic.security.SecurityService.initialize(SecurityService.java:115)
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:385)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:197)
    at weblogic.Server.main(Server.java:35)
    Reason: Fatal initialization exception

    Dear Satya,
    My weblogic propertis file as follow,
    # CORE PROPERTIES
    # You should set these before you start the WebLogic Server the first time.
    # If you need more instructions on individual properties in this
    # section, check the same section in the Optional Properties, where
    # we've left the long explanations. Or, better yet, go to our
    # website and read all about properties, at:
    # http://www.weblogic.com/docs51/admindocs/properties.html
    # CORE SYSTEM PROPERTIES
    # TCP/IP port number at which the WebLogic Server listens for connections
    weblogic.system.listenPort=7001
    # CORE SECURITY-RELATED PROPERTIES
    # Read important information about security at:
    # http://www.weblogic.com/docs51/admindocs/properties.html
    # REQUIRED: The system password MUST be set in order to start the
    # WebLogic Server. This password is case-sensitive, at least 8 characters.
    # The username for the privileged user is ALWAYS "system".
    # This username and password also includes httpd access (see
    # HTTPD properties below).
    weblogic.password.system=12345678
    # RECOMMEND Set to 'everyone' if HTTPD is enabled
    weblogic.allow.execute.weblogic.servlet=everyone
    # Set individual ACLs to restrict access to HTTP-related resources,
    # such as the Administration servlets.
    # To make your own servlets generally available, follow this
    # pattern (provide a weblogic.allow.execute) for your packages and
    # set ACLs as appropriate.
    # CORE SECURITY-RELATED PROPERTIES FOR SSL
    # Read important information about SSL at:
    # http://www.weblogic.com/docs51/classdocs/API_secure.html
    # Enable SSL
    # (default if property not defined is false)
    weblogic.security.ssl.enable=true
    # SSL listen port
    weblogic.system.SSLListenPort=7002
    # Servlets for SSL
    # Authentication servlet for creating tokens for applets
    weblogic.httpd.register.authenticated=weblogic.t3.srvr.ClientAuthenticationS
    ervlet
    # Limits number of unclaimed stored tokens
    weblogic.security.certificateCacheSize=3
    # Capture CA root of client servlet
    weblogic.httpd.register.AdminCaptureRootCA=admin.AdminCaptureRootCA
    # Certificates for SSL
    # Name of acceptable CA roots
    # For client authentication change value to a valid .pem file
    #weblogic.security.clientRootCA=SecureServerCA.pem
    # Server certificates for SSL
    weblogic.security.certificate.server=democert.pem
    weblogic.security.key.server=demokey.pem
    weblogic.security.certificate.authority=ca.pem
    # registration for certificate generator servlet
    weblogic.httpd.register.Certificate=utils.certificate
    weblogic.allow.execute.weblogic.servlet.Certificate=system
    # CORE HTTPD ADMINISTRATIVE PROPERTIES
    # True permits the HTTPD to run (default)
    # Uncomment this property to disable HTTPD
    #weblogic.httpd.enable=false
    # If authentication is required, add username/password for each user
    # who will be included in an ACL, as in this commented-out example:
    #weblogic.password.peter=#8gjsL4*
    # SYSTEM PROPERTIES
    # System properties in this section are set to system defaults
    # Performance pack. The shared library must be accessible from your
    # PATH (NT) or from your shared library path (UNIX; the name of the
    # variable varies: LD_LIBRARY_PATH, SHLIB_PATH, etc.)
    weblogic.system.nativeIO.enable=true
    # Outputs logging information to the console as well as to the log file
    weblogic.system.enableConsole=true
    # Sets the directory or URL for the WebLogic Admin help pages
    # The help pages are shipped in the "docs/adminhelp" directory, in the
    # default document root in public_html
    weblogic.system.helpPageURL=/weblogic/myserver/public_html/docs51/adminhelp/
    # If you prefer to access the most recent help pages, you can do so online
    # by commenting out the previous property and uncommenting this one:
    #weblogic.system.helpPageURL=http://www.weblogic.com/docs51/adminhelp/
    # Properties for tuning the server's performance
    # Number of WebLogic Server execute threads.
    weblogic.system.executeThreadCount=15
    # Other optional system properties
    # Limits size of weblogic.log (in K) and versions old log
    weblogic.system.maxLogFileSize=1024
    # Adjust minimum length of password
    weblogic.system.minPasswordLen=8
    # UNIX only: If running on port 80 on UNIX, enable the setUID program
    #weblogic.system.enableSetUID=false
    # UNIX only: Unprivileged user to setUID to after starting up
    # WebLogic Server on port 80
    #weblogic.system.nonPrivUser=nobody
    # CLUSTER-SPECIFIC PROPERTIES
    # Cluster-specific properties in this section are set to system defaults.
    # CLUSTER USERS: Note that ALL Cluster-specific properties should be set
    # in the per-cluster properties file ONLY.
    # Time-to-live (number of hops) for the cluster's multicast messages
    # (default 1, range 1-255).
    #weblogic.cluster.multicastTTL=1
    # Sets the load-balancing algorithm to be used between
    # replicated services if none is specified. If not specified,
    # round-robin is used.
    #weblogic.cluster.defaultLoadAlgorithm=round-robin
    # SERVER-SPECIFIC CLUSTER PROPERTIES
    # Cluster-related properties in this section are set to system defaults.
    # CLUSTER USERS: Note that these server-specific cluster-related properties
    # should be set in the per-server properties file ONLY.
    # Sets the weight of the individual server for the weight-based
    load-balancing.
    # Range is 0 - 100.
    # Larger numbers increase the amount of traffic routed to this server.
    #weblogic.system.weight=100
    # SYSTEM STARTUP FILES - Examples
    # CLUSTER USERS: Note that ONLY startup registrations for pinned RMI
    # objects should be registered in the per-server properties file.
    # All other startup classes should be registered in the per-cluster
    # properties file.
    # For more info on writing and using startup file, see the
    # Developers Guide "Writing a WebLogic Client application," at
    # http://www.weblogic.com/docs51/classdocs/API_t3.html
    # Register a startup class by giving it a virtual name and
    # supplying its full pathname.
    #weblogic.system.startupClass.[virtual_name]=[full_pathname]
    # Add arguments for the startup class
    #weblogic.system.startupArgs.[virtual_name]={argname]=[argvalue]
    # This example shows the entry for examples/t3client/StartupQuery.java
    #weblogic.system.startupClass.doquery=examples.t3client.StartupQuery
    #weblogic.system.startupArgs.doquery=\
    # query=select * from emp,\
    # db=jdbc:weblogic:pool:demoPool
    # SYSTEM SHUTDOWN FILES - Examples
    # For more info on writing and using shutdown file, see the
    # Developers Guide "Writing a WebLogic Client application," at
    # http://www.weblogic.com/docs51/classdocs/API_t3.html
    # Register a shutdown class by giving it a virtual name and
    # supplying its full pathname.
    #weblogic.system.shutdownClass.[virtual_name]=[full_pathname]
    # Add arguments for the shutdown class
    #weblogic.system.shutdownArgs.[virtualName]={argname]=[argvalue]
    # This example shows the entry for examples/t3client/ShutdownTest.java
    #weblogic.system.shutdownClass.ShutdownTest=examples.t3client.ShutdownTest
    #weblogic.system.shutdownArgs.ShutdownTest=\
    # outfile=c:/temp/shutdown.log
    # SECURITY-RELATED PROPERTIES FOR WORKSPACES
    # For backward compatibility, the following entries disable Access
    # Control on Workspaces
    weblogic.allow.read.weblogic.workspace=everyone
    weblogic.allow.write.weblogic.workspace=everyone
    # JOLT FOR WEBLOGIC PROPERTIES
    # These properties configure a BEA Jolt connection pool for use with
    # the simpapp and bankapp examples, and register a servlet for use with
    # with the simpapp example. The default server address provided here
    # points to a public TUXEDO server that is hosted by BEA for use with
    # this example.
    # Servlet registration for simpapp example:
    #weblogic.httpd.register.simpapp=examples.jolt.servlet.simpapp.SimpAppServle
    t
    # Pool creation and cleanup
    # note this example is set up to work with the public
    # demo TUXEDO server available from BEA's website:
    #weblogic.system.startupClass.demojoltpoolStart=\
    # bea.jolt.pool.servlet.weblogic.PoolManagerStartUp
    #weblogic.system.startupArgs.demojoltpoolStart=\
    # poolname=demojoltpool,\
    # appaddrlist=//beademo1.beasys.com:8000,\
    # failoverlist=//beademo1.beasys.com:8000,\
    # minpoolsize=1,\
    # maxpoolsize=3
    #weblogic.system.shutdownClass.demojoltpoolStop=\
    # bea.jolt.pool.servlet.weblogic.PoolManagerShutDown
    #weblogic.system.shutdownArgs.demojoltpoolStop=\
    # poolname=demojoltpool
    # WEBLOGIC ENTERPRISE CONNECTIVITY PROPERTIES
    # The registrations enable a BEA IIOP connection pool and
    # register servlets for use with the simpapp and university examples.
    # Configure for your environment and uncomment to use.
    # Uncommenting these properties requires WebLogic Enterprise Connectivity
    # and an operating WebLogic Enterprise Server.
    # Servlet registration for simpapp servlet example
    #weblogic.httpd.register.SimpappServlet=\
    # examples.wlec.servlets.simpapp.SimpappServlet
    #weblogic.allow.execute.weblogic.servlet.SimpappServlet=everyone
    # Servlet registration for simpapp EJB example
    # (You'll need to add the wlec_ejb_simpapp.jar to the
    # weblogic.ejb.deploy property in this file.)
    #weblogic.httpd.register.ejbSimpappServlet=\
    # examples.wlec.ejb.simpapp.ejbSimpappServlet
    #weblogic.allow.execute.weblogic.servlet.ejbSimpappServlet=everyone
    # Pool creation and cleanup for the simpapp example
    #weblogic.CORBA.connectionPool.simplepool=\
    # appaddrlist=//wlehost:2468,\
    # failoverlist=//wlehost:2468,\
    # minpoolsize=2,\
    # maxpoolsize=3,\
    # username=wleuser,\
    # userrole=developer,\
    # domainname=simpapp
    # Servlet registration for university Servlet example:
    #weblogic.httpd.register.UniversityServlet=\
    # examples.wlec.servlets.university.UniversityServlet
    #weblogic.allow.execute.weblogic.servlet.UniversityServlet=everyone
    # Pool creation and cleanup for the University example:
    #weblogic.CORBA.connectionPool.Univpool=\
    # appaddrlist=//wlehost:2498,\
    # failoverlist=//wlehost:2498,\
    # minpoolsize=2,\
    # maxpoolsize=3,\
    # username=wleuser,\
    # userrole=developer,\
    # apppassword=wlepassword,\
    # domainname=university
    # WEBLOGIC FILE PROPERTIES
    # Maps a volume name to a path, for client file read/write
    #weblogic.io.fileSystem.[volumeName]=[fullPathName]
    # WEBLOGIC JMS DEMO PROPERTIES
    # CLUSTER USERS: Note that ALL JMS deployment should be done in the
    # per-cluster properties file ONLY.
    # You set up a JDBC connection pool if you want persistent messages
    # (including durable subscriptions). To use JMS and EJBs in the same
    # transaction, both must use the same JDBC connection pool. Uncomment
    # the following property to use the default JDBC connection pool
    # 'demo', which is defined in the Demo connection pool section of this file.
    #weblogic.jms.connectionPool=demoPool
    # The JMS Webshare example demonstrates how the ClientID for a
    # durable subscriber is configured in the connection factory:
    #weblogic.jms.topic.webshareTopic=jms.topic.webshareTopic
    #weblogic.jms.connectionFactoryName.webshare=jms.connection.webshareFactory
    #weblogic.jms.connectionFactoryArgs.webshare=ClientID=webshareUser
    #weblogic.httpd.register.webshare=examples.jms.webshare.WebshareServlet
    # The JMS trader example shows how to use JMS with an EJB. In addition
    # to uncommenting the following properties, you must also set up and
    # deploy the EJB example examples.ejb.basic.statelessSession.Trader in
    # ejb_basic_statelessSession.jar to try out this JMS example:
    #weblogic.jms.topic.exampleTopic=javax.jms.exampleTopic
    #weblogic.jms.connectionFactoryName.trader=jms.connection.traderFactory
    #weblogic.jms.connectionFactoryArgs.trader=ClientID=traderReceive
    #weblogic.httpd.register.jmstrader=examples.jms.trader.TraderServlet
    # Registers the underlying servlet
    #weblogic.httpd.register.jmssender=examples.jms.sender.SenderServlet
    # These properties are used with the ServerReceive JMS example,
    # which demonstrates how to establish a JMS message consumer
    # in a startup class:
    #weblogic.system.startupClass.serverReceive=\
    # examples.jms.startup.ServerReceive
    #weblogic.system.startupArgs.serverReceive=\
    # connectionFactory=javax.jms.TopicConnectionFactory,\
    # topic=javax.jms.exampleTopic
    # These properties are used with the PoolReceive JMS example,
    # which demonstrates how to establish a pool of JMS message consumers
    # in a startup class:
    #weblogic.system.startupClass.poolReceive=\
    # examples.jms.startup.PoolReceive
    #weblogic.system.startupArgs.poolReceive=\
    # connectionFactory=javax.jms.TopicConnectionFactory,\
    # topic=javax.jms.exampleTopic
    #weblogic.allow.create.weblogic.jms.ServerSessionPool=everyone
    # WEBLOGIC RMI DEMO PROPERTIES
    # CLUSTER USERS: Note that pinned RMI objects should be registered
    # in the per-server properties file ONLY. All other RMI startup
    # classes should be registered in the per-cluster properties file.
    # Remote classes registered at startup after the pattern:
    #weblogic.system.startupClass.[virtualName]=[fullPackageName]
    # These examples can be compiled to see RMI in action. Uncomment to use:
    #weblogic.system.startupClass.hello=examples.rmi.hello.HelloImpl
    #weblogic.system.startupClass.multihello=examples.rmi.multihello.HelloImpl
    #weblogic.system.startupClass.stock=examples.rmi.stock.StockServer
    # WEBLOGIC EJB DEMO PROPERTIES
    # CLUSTER USERS: Note that ALL EJB deployment should be done in the
    # per-cluster properties file ONLY.
    # See WebLogic Demo Connection Pool below for a connection pool
    # to use with these examples.
    # Deploys EJBeans. Uncomment the appropriate lines below and
    # modify DBMS-related info and paths to match your particular installation:
    # TBCN EJB PROPERTIES
    weblogic.ejb.deploy=\
    C:/weblogic/myserver/AccountSB.jar, \
    C:/weblogic/myserver/AddressEntryDet.jar, \
    C:/weblogic/myserver/AddressEntry.jar, \
    C:/weblogic/myserver/Affiliate.jar, \
    C:/weblogic/myserver/ContactPerson.jar, \
    C:/weblogic/myserver/ContactSB.jar, \
    C:/weblogic/myserver/Factory.jar, \
    C:/weblogic/myserver/FactorySups.jar, \
    c:/weblogic/myserver/LoginUsers.jar, \
    c:/weblogic/myserver/Member.jar, \
    c:/weblogic/myserver/MemberQuotaUsage.jar,\
    c:/weblogic/myserver/MemberToCategory.jar,\
    c:/weblogic/myserver/Organization.jar, \
    c:/weblogic/myserver/Person.jar, \
    c:/weblogic/myserver/QuotaType.jar,\
    c:/weblogic/myserver/Registration.jar, \
    c:/weblogic/myserver/TempAccounts.jar, \
    c:/weblogic/myserver/TempDomain.jar, \
    c:/weblogic/myserver/UserAccount.jar, \
    c:/weblogic/myserver/UserRole.jar, \
    c:/weblogic/myserver/BuyerProducts.jar, \
    c:/weblogic/myserver/Catalog.jar, \
    c:/weblogic/myserver/Categories.jar, \
    c:/weblogic/myserver/CategoryToCategory.jar, \
    c:/weblogic/myserver/CountryToCategory.jar, \
    c:/weblogic/myserver/InvitedMember.jar, \
    c:/weblogic/myserver/ProductOrigin.jar, \
    c:/weblogic/myserver/ProductOtherFee.jar,\
    c:/weblogic/myserver/ProductSups.jar, \
    c:/weblogic/myserver/Products.jar,\
    c:/weblogic/myserver/ProductToCategory.jar, \
    c:/weblogic/myserver/SecondaryQcEntry.jar, \
    c:/weblogic/myserver/CodeClass.jar,\
    c:/weblogic/myserver/ConfirmationSB.jar, \
    c:/weblogic/myserver/PurchasedPackage.jar,\
    c:/weblogic/myserver/RejectReasonCode.jar, \
    c:/weblogic/myserver/ServiceOrder.jar,\
    c:/weblogic/myserver/ServiceOrderLog.jar,\
    c:/weblogic/myserver/ServiceOrderState.jar,\
    c:/weblogic/myserver/ServiceOrderType.jar,\
    c:/weblogic/myserver/ServicePackageDetails.jar, \
    c:/weblogic/myserver/ServicePackage.jar, \
    c:/weblogic/myserver/ServicePayment.jar, \
    c:/weblogic/myserver/ServiceReqSB.jar, \
    c:/weblogic/myserver/TAM.jar, \
    c:/weblogic/myserver/SubscriptionEB.jar, \
    c:/weblogic/myserver/PostingCategoryEB.jar, \
    c:/weblogic/myserver/PostingBrowsedEB.jar, \
    c:/weblogic/myserver/PostingInfoEB.jar, \
    c:/weblogic/myserver/TransactionLogEB.jar, \
    c:/weblogic/myserver/PostingSB.jar
    #weblogic.ejb.deploy=\
    # d:/weblogic/myserver/ejb_basic_beanManaged.jar, \
    # d:/weblogic/myserver/ejb_basic_containerManaged.jar, \
    # d:/weblogic/myserver/ejb_basic_statefulSession.jar, \
    # d:/weblogic/myserver/ejb_basic_statelessSession.jar, \
    # d:/weblogic/myserver/ejb_extensions_finderEnumeration.jar, \
    # d:/weblogic/myserver/ejb_extensions_readMostly.jar, \
    # d:/weblogic/myserver/ejb_subclass.jar, \
    # d:/weblogic/myserver/jolt_ejb_bankapp.jar
    # Servlet used by the EJB basic beanManaged example
    # Uncomment to use:
    weblogic.httpd.register.beanManaged=\
    examples.ejb.basic.beanManaged.Servlet
    # Add a list of users (set the password with
    weblogic.password.[username]=XXX)
    # to set an ACL for this servlet:
    #weblogic.allow.execute.weblogic.servlet.beanManaged=user1,user2,etc
    #weblogic.password.user1=user1Password
    #weblogic.password.user2=user2Password
    # WEBLOGIC XML DEMO PROPERTIES
    # These properties are required to run the XML examples.
    # Uncomment to use.
    # CLUSTER USERS: Note that ALL servlets should be set up
    # in the per-cluster properties file ONLY.
    #weblogic.httpd.register.StockServlet=examples.xml.http.StockServlet
    # BizTalk example properties
    #weblogic.jms.queue.tradeIncoming=biztalk.jms.tradeIncoming
    #weblogic.jms.queue.tradeError=biztalk.jms.tradeError
    #weblogic.httpd.register.BizTalkServer=examples.xml.biztalk.BizHttpProtocolA
    dapter
    #weblogic.httpd.initArgs.BizTalkServer=bizQueue=biztalk.jms.tradeIncoming
    # WEBLOGIC ZAC DEMO PROPERTIES
    # These registrations enable the ZAC Publish Wizard.
    weblogic.zac.enable=true
    # Set the publish root for a WebLogic Server. Edit and
    # uncomment to use.
    #weblogic.zac.publishRoot=d:/weblogic/zac
    # Set an ACL for each package you publish. The [name] is
    # the "Package name" you assign in the ZAC Publish Wizard.
    # Publish a package, edit this property, and uncomment to use.
    #weblogic.allow.read.weblogic.zac.[name]=[user list]
    #weblogic.allow.write.weblogic.zac.[name]=system
    # HTTPD ADMINISTRATIVE PROPERTIES
    # Enables logging of HTTPD info in common log format and
    # sets the log file name (default is "access.log" in "myserver")
    weblogic.httpd.enableLogFile=true
    weblogic.httpd.logFileName=access.log
    # Tracks HTTPD requests with events delivered to WEBLOGIC.LOG.HTTPD
    weblogic.httpd.enableEvents=false
    # Enables HTTP sessions
    weblogic.httpd.session.enable=true
    # Sets an optional cookie name. The default name is "WebLogicSession".
    # Prior to version 4.0, the default was "TengahSession". To make
    # this backward compatible with cookies generated from previous
    # installations, you should set this property to "TengahSession".
    # Uncomment this line and set this to any string of your choice,
    # or comment out this property to use the default.
    #weblogic.httpd.session.cookie.name=WebLogicSession
    # MIME types
    weblogic.httpd.mimeType.text/html=html,htm
    weblogic.httpd.mimeType.image/gif=gif
    weblogic.httpd.mimeType.image/jpeg=jpeg,jpg
    weblogic.httpd.mimeType.application/pdf=pdf
    weblogic.httpd.mimeType.application/zip=zip
    weblogic.httpd.mimeType.application/x-java-vm=class
    weblogic.httpd.mimeType.application/x-java-archive=jar
    weblogic.httpd.mimeType.application/x-java-serialized-object=ser
    weblogic.httpd.mimeType.application/octet-stream=exe
    weblogic.httpd.mimeType.text/vnd.wap.wml=wml
    weblogic.httpd.mimeType.text/vnd.wap.wmlscript=wmls
    weblogic.httpd.mimeType.application/vnd.wap.wmlc=wmlc
    weblogic.httpd.mimeType.application/vnd.wap.wmlscriptc=wmlsc
    weblogic.httpd.mimeType.image/vnd.wap.wbmp=wbmp
    # In seconds, the keep-alive for HTTP and HTTPS requests
    weblogic.httpd.http.keepAliveSecs=60
    weblogic.httpd.https.keepAliveSecs=120
    # WEBLOGIC JDBC DRIVER PROPERTIES
    # Enables JDBC driver logging and sets the file name for the log
    # The weblogic.jdbc.logFile is placed in the per-server
    # directory (default is "myserver")
    weblogic.jdbc.enableLogFile=false
    weblogic.jdbc.logFileName=jdbc.log
    # WEBLOGIC JDBC CONNECTION POOL MANAGEMENT
    # CLUSTER USERS: Note that ALL JDBC connection pools should be set up
    # in the per-cluster properties file ONLY.
    # For creating JDBC connection pools. This example shows a connection
    # pool called "oraclePool" that allows 3 T3Users "guest," "joe," and "jill"
    # to use 4 JDBC connections (with a potential for up to 10 connections,
    # incremented by two at a time, with a delay of 1 second between each
    # attempt to connect to the database), to an Oracle database server called
    # "DEMO." If more than 4 connections are opened, after 15 minutes, unused
    # connections are dropped from the pool until only 4 connections remain
    open.
    # Every 10 minutes, any unused connections in the pool are tested and
    # refreshed if they are not viable.
    #weblogic.jdbc.connectionPool.oraclePool=\
    # url=jdbc:weblogic:oracle,\
    # driver=weblogic.jdbc.oci.Driver,\
    # loginDelaySecs=1,\
    # initialCapacity=4,\
    # maxCapacity=10,\
    # capacityIncrement=2,\
    # allowShrinking=true,\
    # shrinkPeriodMins=15,\
    # refreshMinutes=10,\
    # testTable=dual,\
    # props=user=SCOTT;password=tiger;server=DEMO
    # Get more details on each argument for this property in the
    # Administrators Guide on setting properties at:
    # http://www.weblogic.com/docs51/admindocs/properties.html
    # Set up ACLs for this connection pool with the following:
    weblogic.allow.reserve.weblogic.jdbc.connectionPool.oraclePool=everyone
    # guest,joe,jill
    #weblogic.allow.reset.weblogic.jdbc.connectionPool.oraclePool=\
    # joe,jill
    #weblogic.allow.shrink.weblogic.jdbc.connectionPool.oraclePool=\
    # joe,jill
    # This property is an ACL that specifies the users who can
    # create dynamic connection pools:
    #weblogic.jdbc.connectionPoolcreate.admin=joe,jill
    # Read more about setting up and using connection pools in the
    # developers guide for WebLogic JDBC at:
    # http://www.weblogic.com/docs51/classdocs/API_jdbct3.html#T5a
    # TBCN JDBC CONNECTION POOL MANAGEMENT
    weblogic.jdbc.connectionPool.oraclePool=\
    url=jdbc:oracle:thin:@202.109.102.151:1521:tbcn,\
    driver=oracle.jdbc.driver.OracleDriver,\
    loginDelaySecs=1,\
    initialCapacity=2,\
    maxCapacity=10,\
    capacityIncrement=2,\
    allowShrinking=true,\
    shrinkPeriodMins=15,\
    refreshMinutes=10,\
    testTable=dual,\
    props=user=tbcn;password=ca91768
    weblogic.allow.reserve.weblogic.jdbc.connectionPool.oraclePool=everyone
    weblogic.jdbc.TXDataSource.oracleDataSource=oraclePool
    weblogic.jdbc.DataSource.oracleReadOnlyDataSource=oraclePool
    # WEBLOGIC DEMO CONNECTION POOL PROPERTIES
    # CLUSTER USERS: Note that ALL JDBC connection pools should be set up
    # in the per-cluster properties file ONLY.
    # This connection pool uses the sample Cloudscape database shipped
    # with WebLogic. Used by the EJBean, JHTML, JSP and JMS examples.
    # Uncomment to use:
    #weblogic.jdbc.connectionPool.demoPool=\
    # url=jdbc:cloudscape:demo,\
    # driver=COM.cloudscape.core.JDBCDriver,\
    # initialCapacity=1,\
    # maxCapacity=2,\
    # capacityIncrement=1,\
    # props=user=none;password=none;server=none
    # Add a TXDataSource for the connection pool:
    #weblogic.jdbc.TXDataSource.weblogic.jdbc.jts.demoPool=demoPool
    # Add an ACL for the connection pool:
    #weblogic.allow.reserve.weblogic.jdbc.connectionPool.demoPool=everyone
    # WEBLOGIC HTTP SERVLET PROPERTIES
    # CLUSTER USERS: Note that ALL servlets should be set up
    # in the per-cluster properties file ONLY.
    # WebLogic offers different types of servlets for various uses.
    # Classpath servlet registration
    # The ClasspathServlet is used to serve classes from
    # the system CLASSPATH. It is used by applets to load
    # classes they depend upon, and is registered against
    # the virtual name 'classes' here by default. This means
    # you should set your applet codebase to "/classes".
    # You can register multiple virtual names for this servlet.
    # Note that it can also be used to serve other
    # resources/files from the system CLASSPATH.
    # Don't confuse the ClasspathServlet with the ServletServlet. The
    # ClasspathServlet is used for serving classes for client-side Java only.
    # The ServletServlet is used to invoke unregistered servlets.
    # See the Administrators Guide "Setting up WebLogic as an HTTP server"
    # http://www.weblogic.com/docs51/admindocs/http.html#classfile for more
    info.
    weblogic.httpd.register.classes=weblogic.servlet.ClasspathServlet
    # We also set an open ACL for everyone to call the ClasspathServlet
    # so that applets work without requiring further changes.
    weblogic.allow.execute.weblogic.servlet.classes=everyone
    # File servlet registration
    # FileServlet searches below the documentRoot for the requested file
    # and serves it if found. If the requested file is a directory,
    # FileServlet will append the defaultFilename to the requested path
    # and serve that file if found.
    weblogic.httpd.register.file=weblogic.servlet.FileServlet
    weblogic.httpd.initArgs.file=defaultFilename=index.html
    weblogic.httpd.indexFiles=zh_TW/index.htm
    # ServerSideInclude servlet registration
    # SSIServlet searches below the documentRoot for the
    # requested .shtml file and serves it if found.
    weblogic.httpd.register.*.shtml=weblogic.servlet.ServerSideIncludeServlet
    # Example URL: http://localhost:7001/portside/welcome.shtml
    # for the file /weblogic/myserver/public_html/portside/welcome.shtml
    # PageCompileServlet (used by JHTML)
    # See the information below under WebLogic JHTML
    # JSPServlet (used by JSP)
    # See the information below under WebLogic JSP
    # ServletServlet registration
    # Allows unregistered servlets in the servlet classpath (see Servlet
    # reload properties below) to be r

  • WL Cluster with NES Proxy

    We are evaluating the Cluster features of WebLogic and got a eval
              license for the Cluster Support.
              I am running a default cluster (mycluster) using the default Multicast
              address (237.0.0.1) and am seeing
              some strange behaviour/errors.
              Would appreciate some asistance in this matter.
              Our Environment
              I created directory in a shared file system to host the cluster.
              (h:\kkanth\weblogic)
              Created the mycluster directory and other directories as recommended in
              the Administrator's guide.
              I have two WL Servers (asera190 and asera162) with permanent IP
              addresses of 10.1.1.61 and 10.1.1.70 respectively. They run NT 4.0.
              I'm using a NES proxy on asera190 with the plugin for WL specified in
              obj.conf alongwith the other parameters.
              I'm able to have both the servers join to cluster mycluster and the WL
              Admin Console does display a tree that depicts the cluster as well as
              servers in it (server61 and server70). The individual server directories
              are being created in h:\kkanth\weblogic\mycluster directory with the
              appropriate access.log and weblogic.log files.
              When a browser attempts to access a URL such as
              http://asera190/weblogic/snoop it does return the proper response, but
              all requests are processed by asera162 which is listed first in the
              obj.conf. Opening multiple sessions does not cause the requests to be
              sent to asera190 which is the second server in the cluster. When
              asera162 is shutdown and removed from the cluster, I hoped that
              subsequent requests would go to asera190. However , depending on the
              origin of the request, different errors were thrown. If I try to access
              http://asera190/weblogic/snoop from a browser on asera190, I get an
              error "Failure at line 351 of file proxy.cpp" ,while trying the same URL
              from asera162 cause "Failure at line 706 of file proxy.cpp".
              I'm attaching the weblogic.properties file kept in h:\kkanth\weblogic
              directory as well as the obj.conf file in the ....\config\ directory of
              asera190.
              We are running NES 3.5.1 and have setup proxy35.dll appropriately.
              weblogic.properties
              # THE WEBLOGIC PROPERTIES FILE
              # This file, which conforms to the java.util.Properties file
              # definition, configures your WebLogic products. You cannot run
              # WebLogic Server without setting required configuration properties in
              this
              # file. Required properties are marked and appear first in the file.
              # Details on each entry and important information about configuration
              # and security are documented on our website. Please go to:
              # http://www.weblogic.com/docs45/admindocs/properties.html
              # for full instructions on how to edit this file.
              # You do not need to include properties in this file unless you want to
              # change the default, embedded property. Some properties on the
              # T3AdminProps page are not listed here because the default property
              # is being used. You can change the default by adding the property and
              # its value to this file.
              # You cannot set weblogic.system.home in this file, since the WebLogic
              Server
              # must know where home is in order to retrieve this file. You can
              # change WebLogic home on the command line when you start the
              # WebLogic Server.
              # CLUSTER USERS: Note that the (shared) per-cluster properties file
              should
              # contain most all of the properties in this file. The only properties
              # that potentially belong in a per-server properties file for a server
              # running in a cluster are the registration (startup class) of pinned
              # RMI objects, and a few tuning properties that may be different for
              # servers in the cluster, depending upon hardware and memory. If you use
              # a per-server properties file, please REMOVE all properties except
              those
              # that are specifically required in the per-server properties file. You
              # can find specific notes on clusters by searching through this file for
              # "CLUSTER USERS".
              # The way this file is organized:
              # Core properties (includes REQUIRED and RECOMMENDED)
              # Core system properties
              # Core security-related properties
              # Core security-related properties for SSL
              # Core HTTPD administrative properties
              # Optional properties
              # Administrator properties
              # System properties
              # System startup files
              # System shutdown files
              # Security-related properties for Workspaces
              # Jolt for WebLogic properties
              # WebLogic Enterprise Connectivity properties
              # WebLogic File properties
              # WebLogic JMS demo properties
              # WebLogic RMI demo properties
              # WebLogic EJB demo properties
              # WebLogic ZAC demo properties
              # HTTPD administrative properties
              # WebLogic JDBC driver properties
              # WebLogic JDBC connection pool management
              # WebLogic demo connection pool
              # WebLogic HTTP Servlet properties
              # Proxy servlet registration
              # Classpath servlet registration
              # File servlet registration
              # ServerSideInclude servlet registration
              # PageCompileServlet (used by JHTML)
              # JSPServlet (used by JSP)
              # ServletServlet registration
              # Servlet reload properties
              # Servlet ACLs
              # WebLogic JHTML properties
              # User-written and demo servlet registrations
              # CORE PROPERTIES
              # You should set these before you start the WebLogic Server the first
              time.
              # If you need more instructions on individual properties in this
              # section, check the same section in the Optional Properties, where
              # we've left the long explanations. Or, better yet, go to our
              # website and read all about properties, at:
              # http://www.weblogic.com/docs45/admindocs/properties.html
              # CORE SYSTEM PROPERTIES
              # TCP/IP port number at which the WebLogic Server listens for
              connections
              weblogic.system.listenPort=7001
              # CORE SECURITY-RELATED PROPERTIES
              # Read important information about security at:
              # http://www.weblogic.com/docs45/admindocs/properties.html
              # REQUIRED: The system password MUST be set in order to start the
              # WebLogic Server. This password is case-sensitive, at least 8
              characters.
              # The username for the privileged user is ALWAYS "system".
              # This username and password also includes httpd access (see
              # HTTPD properties below).
              weblogic.password.system=kaykayka
              # RECOMMEND Set to 'everyone' if HTTPD is enabled
              weblogic.allow.execute.weblogic.servlet=everyone
              # Set individual ACLs to restrict access to HTTP-related resources,
              # such as the Administration servlets.
              # To make your own servlets generally available, follow this
              # pattern (provide a weblogic.allow.execute) for your packages and
              # set ACLs as appropriate.
              # CORE SECURITY-RELATED PROPERTIES FOR SSL
              # Read important information about SSL at:
              # http://www.weblogic.com/docs45/classdocs/API_secure.html
              # Enable SSL
              # (default if property not defined is false)
              weblogic.security.ssl.enable=true
              # SSL listen port
              weblogic.system.SSLListenPort=7002
              # Servlets for SSL
              # Authentication servlet for creating tokens for applets
              weblogic.httpd.register.authenticated=weblogic.t3.srvr.ClientAuthenticationServlet
              # Limits number of unclaimed stored tokens
              weblogic.security.certificateCacheSize=3
              # Capture CA root of client servlet
              weblogic.httpd.register.T3AdminCaptureRootCA=admin.T3AdminCaptureRootCA
              # Certificates for SSL
              # Name of acceptable CA roots
              # For client authentication change value to a valid .pem file
              #weblogic.security.clientRootCA=SecureServerCA.pem
              # Server certificates for SSL
              weblogic.security.certificate.server=democert.pem
              weblogic.security.key.server=demokey.pem
              weblogic.security.certificate.authority=ca.pem
              # registration for certificate generator servlet
              weblogic.httpd.register.Certificate=utils.certificate
              weblogic.allow.execute.weblogic.servlet.Certificate=system
              # CORE HTTPD ADMINISTRATIVE PROPERTIES
              # True permits the HTTPD to run (default)
              # Uncomment this property to disable HTTPD
              #weblogic.httpd.enable=false
              # If authentication is required, add username/password for each user
              # who will be included in an ACL, as in this commented-out example:
              #weblogic.password.peter=#8gjsL4*
              # OPTIONAL PROPERTIES
              # These properties affect the behavior of the WebLogic Server.
              # You only need to set these properties if you want
              # to change the default setting, which is the property shown.
              # ADMINISTRATOR PROPERTIES
              # Administrator properties are optional information properties,
              # particularly useful for clusters.
              #weblogic.administrator.location=3355 California Drive, West Hampshire,
              CA 94104
              #weblogic.administrator.name=Joe Administrator
              #weblogic.administrator.phone=1 415 555 1234
              # SYSTEM PROPERTIES
              # System properties in this section are set to system defaults
              # Performance pack. The shared library must be accessible from your
              # PATH (NT) or from your shared library path (UNIX; the name of the
              # variable varies: LD_LIBRARY_PATH, SHLIB_PATH, etc.)
              weblogic.system.nativeIO.enable=true
              # Outputs logging information to the console as well as to the log file
              weblogic.system.enableConsole=true
              # Sets the directory or URL for the WebLogic Admin help pages
              # The help pages are shipped in the "docs/adminhelp" directory, in the
              # default document root in public_html
              weblogic.system.helpPageURL=d:/weblogic/myserver/public_html/docs/adminhelp/
              # If you prefer to access the most recent help pages, you can do so
              online
              # by commenting out the previous property and uncommenting this one:
              #weblogic.system.helpPageURL=http://www.weblogic.com/docs45/adminhelp/
              # Properties for tuning the server's performance
              # Number of WebLogic Server execute threads.
              weblogic.system.executeThreadCount=15
              # Other optional system properties
              # Limits size of weblogic.log (in K) and versions old log
              weblogic.system.maxLogFileSize=1024
              # Adjust minimum length of password
              weblogic.system.minPasswordLen=8
              # UNIX only: If running on port 80 on UNIX, enable the setUID program
              #weblogic.system.enableSetUID=false
              # UNIX only: Unprivileged user to setUID to after starting up
              # WebLogic Server on port 80
              #weblogic.system.nonPrivUser=nobody
              # CLUSTER-SPECIFIC PROPERTIES
              # Cluster-specific properties in this section are set to system
              defaults.
              # CLUSTER USERS: Note that ALL Cluster-specific properties should be set
              # in the per-cluster properties file ONLY.
              # Time-to-live (number of hops) for the cluster's multicast messages
              # (default 1, range 1-255).
              #weblogic.cluster.multicastTTL=1
              # Sets the load-balancing algorithm to be used between
              # replicated services if none is specified. If not specified,
              # round-robin is used.
              #weblogic.cluster.defaultLoadAlgorithm=round-robin
              # SERVER-SPECIFIC CLUSTER PROPERTIES
              # Cluster-related properties in this section are set to system defaults.
              # CLUSTER USERS: Note that these server-specific cluster-related
              properties
              # should be set in the per-server properties file ONLY.
              # Sets the weight of the individual server for the weight-based
              load-balancing.
              # Range is 0 - 100.
              # Larger numbers increase the amount of traffic routed to this server.
              #weblogic.system.weight=100
              # SYSTEM STARTUP FILES - Examples
              # CLUSTER USERS: Note that ONLY startup registrations for pinned RMI
              # objects should be registered in the per-server properties file.
              # All other startup classes should be registered in the per-cluster
              # properties file.
              # For more info on writing and using startup file, see the
              # Developers Guide "Writing a WebLogic Client application," at
              # http://www.weblogic.com/docs45/classdocs/API_t3.html
              # Register a startup class by giving it a virtual name and
              # supplying its full pathname.
              #weblogic.system.startupClass.[virtual_name]=[full_pathname]
              # Add arguments for the startup class
              #weblogic.system.startupArgs.[virtual_name]={argname]=[argvalue]
              # This example shows the entry for examples/t3client/StartupQuery.java
              #weblogic.system.startupClass.doquery=examples.t3client.StartupQuery
              #weblogic.system.startupArgs.doquery=\
              # query=select * from emp,\
              # db=jdbc:weblogic:pool:demoPool
              # Other system startup files for use with VisiBroker
              # Starts the VisiBroker WebLogic Server proxy with the WebLogic Server
              # You must have installed Visigenic 2.5 for use with
              # the WebLogic Server before you uncomment these properties
              #weblogic.system.startupClass.dovisi=weblogic.corba.visi.t3server.Startup
              #weblogic.system.startupArgs.dovisi=\
              # clientName=T3Client Manager,\
              # connName=T3Connection Manager
              # SYSTEM SHUTDOWN FILES - Examples
              # For more info on writing and using shutdown file, see the
              # Developers Guide "Writing a WebLogic Client application," at
              # http://www.weblogic.com/docs45/classdocs/API_t3.html
              # Register a shutdown class by giving it a virtual name and
              # supplying its full pathname.
              #weblogic.system.shutdownClass.[virtual_name]=[full_pathname]
              # Add arguments for the shutdown class
              #weblogic.system.shutdownArgs.[virtualName]={argname]=[argvalue]
              # This example shows the entry for examples/t3client/ShutdownTest.java
              #weblogic.system.shutdownClass.ShutdownTest=examples.t3client.ShutdownTest
              #weblogic.system.shutdownArgs.ShutdownTest=\
              # outfile=c:/temp/shutdown.log
              # SECURITY-RELATED PROPERTIES FOR WORKSPACES
              # For backward compatibility, the following entries disable Access
              # Control on Workspaces
              weblogic.allow.read.weblogic.workspace=everyone
              weblogic.allow.write.weblogic.workspace=everyone
              # JOLT FOR WEBLOGIC PROPERTIES
              # These properties configure a BEA Jolt connection pool for use with
              # the simpapp and bankapp examples, and register a servlet for use with
              # with the simpapp example. The default server address provided here
              # points to a public TUXEDO server that is hosted by BEA for use with
              # this example.
              # Servlet registration for simpapp example:
              #weblogic.httpd.register.simpapp=examples.jolt.servlet.simpapp.SimpAppServlet
              # Pool creation and cleanup
              # note this example is set up to work with the public
              # demo TUXEDO server available from BEA's website:
              #weblogic.system.startupClass.demojoltpoolStart=\
              # bea.jolt.pool.servlet.weblogic.PoolManagerStartUp
              #weblogic.system.startupArgs.demojoltpoolStart=\
              # poolname=demojoltpool,\
              # appaddrlist=//beademo1.beasys.com:8000,\
              # failoverlist=//beademo1.beasys.com:8000,\
              # minpoolsize=1,\
              # maxpoolsize=3
              #weblogic.system.shutdownClass.demojoltpoolStop=\
              # bea.jolt.pool.servlet.weblogic.PoolManagerShutDown
              #weblogic.system.shutdownArgs.demojoltpoolStop=\
              # poolname=demojoltpool
              # WEBLOGIC ENTERPRISE CONNECTIVITY PROPERTIES
              # The registrations enable a BEA IIOP connection pool and
              # register servlets for use with the simpapp and university examples.
              # Configure for your environment and uncomment to use.
              # Uncommenting these properties requires WebLogic Enterprise
              Connectivity
              # and an operating WebLogic Enterprise Server.
              # Servlet registration for simpapp servlet example
              #weblogic.httpd.register.SimpappServlet=\
              # examples.wlec.servlets.simpapp.SimpappServlet
              #weblogic.allow.execute.weblogic.servlet.SimpappServlet=everyone
              # Servlet registration for simpapp EJB example
              # (You'll need to add the wlec_ejb_simpapp.jar to the
              # weblogic.ejb.deploy property in this file.)
              #weblogic.httpd.register.ejbSimpappServlet=\
              # examples.wlec.ejb.simpapp.ejbSimpappServlet
              #weblogic.allow.execute.weblogic.servlet.ejbSimpappServlet=everyone
              # Pool creation and cleanup for the simpapp example
              #weblogic.CORBA.connectionPool.simplepool=\
              # appaddrlist=//wlehost:2468,\
              # failoverlist=//wlehost:2468,\
              # minpoolsize=2,\
              # maxpoolsize=3,\
              # username=wleuser,\
              # userrole=developer,\
              # domainname=simpapp
              # Servlet registration for university Servlet example:
              #weblogic.httpd.register.UniversityServlet=\
              # examples.wlec.servlets.university.UniversityServlet
              #weblogic.allow.execute.weblogic.servlet.UniversityServlet=everyone
              # Pool creation and cleanup for the University example:
              #weblogic.CORBA.connectionPool.Univpool=\
              # appaddrlist=//wlehost:2498,\
              # failoverlist=//wlehost:2498,\
              # minpoolsize=2,\
              # maxpoolsize=3,\
              # username=wleuser,\
              # userrole=developer,\
              # apppassword=wlepassword,\
              # domainname=university
              # WEBLOGIC FILE PROPERTIES
              # Maps a volume name to a path, for client file read/write
              #weblogic.io.fileSystem.[volumeName]=[fullPathName]
              # WEBLOGIC JMS DEMO PROPERTIES
              # CLUSTER USERS: Note that ALL JMS deployment should be done in the
              # per-cluster properties file ONLY.
              # You set up a JDBC connection pool if you want persistent messages
              # (including durable subscriptions). To use JMS and EJBs in the same
              # transaction, both must use the same JDBC connection pool. Uncomment
              # the following property to use the default JDBC connection pool
              # 'demo', which is defined in the Demo connection pool section of this
              file.
              #weblogic.jms.connectionPool=demoPool
              # The JMS Webshare example demonstrates how the ClientID for a
              # durable subscriber is configured in the connection factory:
              #weblogic.jms.topic.webshareTopic=jms.topic.webshareTopic
              #weblogic.jms.connectionFactoryName.webshare=jms.connection.webshareFactory
              #weblogic.jms.connectionFactoryArgs.webshare=ClientID=webshareUser
              #weblogic.httpd.register.webshare=examples.jms.webshare.WebshareServlet
              # The JMS trader example shows how to use JMS with an EJB. In addition
              # to uncommenting the following properties, you must also set up and
              # deploy the EJB example examples.ejb.basic.statefulSession.Trader to
              # try out this JMS example:
              #weblogic.jms.topic.exampleTopic=javax.jms.exampleTopic
              #weblogic.jms.connectionFactoryName.trader=jms.connection.traderFactory
              #weblogic.jms.connectionFactoryArgs.trader=ClientID=traderReceive
              #weblogic.httpd.register.jmstrader=examples.jms.trader.TraderServlet
              # Registers the underlying servlet
              #weblogic.httpd.register.jmssender=examples.jms.sender.SenderServlet
              # These properties are used with the ServerReceive JMS example,
              # which demonstrates how to establish a JMS message consumer
              # in a startup class:
              #weblogic.system.startupClass.serverReceive=\
              # examples.jms.startup.ServerReceive
              #weblogic.system.startupArgs.serverReceive=\
              # connectionFactory=javax.jms.TopicConnectionFactory,\
              # topic=javax.jms.exampleTopic
              # These properties are used with the PoolReceive JMS example,
              # which demonstrates how to establish a pool of JMS message consumers
              # in a startup class:
              #weblogic.system.startupClass.poolReceive=\
              # examples.jms.startup.PoolReceive
              #weblogic.system.startupArgs.poolReceive=\
              # connectionFactory=javax.jms.TopicConnectionFactory,\
              # topic=javax.jms.exampleTopic
              # WEBLOGIC RMI DEMO PROPERTIES
              # CLUSTER USERS: Note that pinned RMI objects should be registered
              # in the per-server properties file ONLY. All other RMI startup
              # classes should be registered in the per-cluster properties file.
              # Remote classes registered at startup after the pattern:
              #weblogic.system.startupClass.[virtualName]=[fullPackageName]
              # These examples can be compiled to see RMI in action. Uncomment to use:
              #weblogic.system.startupClass.multihello=examples.rmi.multihello.HelloImpl
              #weblogic.system.startupClass.hello=examples.rmi.hello.HelloImpl
              # WEBLOGIC EJB DEMO PROPERTIES
              # CLUSTER USERS: Note that ALL EJB deployment should be done in the
              # per-cluster properties file ONLY.
              # See WebLogic Demo Connection Pool below for a connection pool
              # to use with these examples.
              # Deploys EJBeans. Uncomment the appropriate lines below and
              # modify DBMS-related info and paths to match your particular
              installation:
              #weblogic.ejb.deploy=\
              # d:/weblogic/myserver/cluster_ejb.jar, \
              # d:/weblogic/myserver/ejb_basic_beanManaged.jar, \
              # d:/weblogic/myserver/ejb_basic_containerManaged.jar, \
              # d:/weblogic/myserver/ejb_basic_statefulSession.jar, \
              # d:/weblogic/myserver/ejb_basic_statelessSession.jar, \
              # d:/weblogic/myserver/ejb_extensions_isModified.jar, \
              # d:/weblogic/myserver/ejb_extensions_isModifiedBeanManaged.jar, \
              # d:/weblogic/myserver/ejb_sequence_jdbc.jar, \
              # d:/weblogic/myserver/ejb_sequence_oracle.jar, \
              # d:/weblogic/myserver/ejb_subclass.jar, \
              # d:/weblogic/myserver/jolt_ejb_bankapp.jar
              # Servlets used by the EJB basic examples beanManaged and
              # containerManaged. Uncomment to use:
              #weblogic.httpd.register.beanManaged=\
              # examples.ejb.basic.beanManaged.Servlet
              #weblogic.httpd.register.containerManaged=\
              # examples.ejb.basic.containerManaged.Servlet
              # Add a list of users (set the password with
              weblogic.password.[username]=XXX)
              # to set an ACL for this servlet:
              #weblogic.allow.execute.weblogic.servlet.beanManaged=user1,user2,etc
              #weblogic.allow.execute.weblogic.servlet.containerManaged=user1,user2,etc
              #weblogic.password.user1=user1Password
              #weblogic.password.user2=user2Password
              # WEBLOGIC ZAC DEMO PROPERTIES
              # These registrations enable the ZAC Publish Wizard.
              weblogic.zac.enable=true
              # Set the publish root for a WebLogic Server. Edit and
              # uncomment to use
              #weblogic.zac.publishRoot=d:/weblogic/zac
              # Set an ACL for each package you publish. The [name] is
              # the "Package name" you assign in the ZAC Publish Wizard.
              # Publish a package, edit this property, and uncomment to use.
              #weblogic.allow.read.weblogic.zac.[name]=[user list]
              #weblogic.allow.write.weblogic.zac.[name]=system
              # HTTPD ADMINISTRATIVE PROPERTIES
              # Enables logging of HTTPD info in common log format and
              # sets the log file name (default is "access.log" in "myserver")
              weblogic.httpd.enableLogFile=true
              weblogic.httpd.logFileName=access.log
              # Tracks HTTPD requests with events delivered to WEBLOGIC.LOG.HTTPD
              weblogic.httpd.enableEvents=false
              # Enables HTTP sessions
              weblogic.httpd.session.enable=true
              # Sets an optional cookie name. The default name is "WebLogicSession".
              # Prior to version 4.0, the default was "TengahSession". To make
              # this backward compatible with cookies generated from previous
              # installations, you should set this property to "TengahSession".
              # Uncomment this line and set this to any string of your choice,
              # or comment out this property to use the default.
              #weblogic.httpd.session.cookie.name=WebLogicSession
              # MIME types
              weblogic.httpd.mimeType.text/html=html,htm
              weblogic.httpd.mimeType.image/gif=gif
              weblogic.httpd.mimeType.image/jpeg=jpeg,jpg
              weblogic.httpd.mimeType.application/pdf=pdf
              weblogic.httpd.mimeType.application/zip=zip
              weblogic.httpd.mimeType.application/x-java-vm=class
              weblogic.httpd.mimeType.application/x-java-archive=jar
              weblogic.httpd.mimeType.application/x-java-serialized-object=ser
              weblogic.httpd.mimeType.application/octet-stream=exe
              # In seconds, the keep-alive for HTTP and HTTPS requests
              weblogic.httpd.http.keepAliveSecs=60
              weblogic.httpd.https.keepAliveSecs=120
              # WEBLOGIC JDBC DRIVER PROPERTIES
              # Enables JDBC driver logging and sets the file name for the log
              # The weblogic.jdbc.logFile is placed in the per-server
              # directory (default is "myserver")
              weblogic.jdbc.enableLogFile=false
              weblogic.jdbc.logFileName=jdbc.log
              # WEBLOGIC JDBC CONNECTION POOL MANAGEMENT
              # CLUSTER USERS: Note that ALL JDBC connection pools should be set up
              # in the per-cluster properties file ONLY.
              # For creating JDBC connection pools. This example shows a connection
              # pool called "oraclePool" that allows 3 T3Users "guest," "joe," and
              "jill"
              # to use 4 JDBC connections (with a potential for up to 10 connections,
              # incremented by two at a time, with a delay of 1 second between each
              # attempt to connect to the database), to an Oracle database server
              called
              # "DEMO." If more than 4 connections are opened, after 15 minutes,
              unused
              # connections are dropped from the pool until only 4 connections remain
              open.
              # Every 10 minutes, any unused connections in the pool are tested and
              # refreshed if they are not viable.
              #weblogic.jdbc.connectionPool.oraclePool=\
              # url=jdbc:weblogic:oracle,\
              # driver=weblogic.jdbc.oci.Driver,\
              # loginDelaySecs=1,\
              # initialCapacity=4,\
              # maxCapacity=10,\
              # capacityIncrement=2,\
              # allowShrinking=true,\
              # shrinkPeriodMins=15,\
              # refreshMinutes=10,\
              # testTable=dual,\
              # props=user=SCOTT;password=tiger;server=DEMO
              # Get more details on each argument for this property in the
              # Administrators Guide on setting properties at:
              # http://www.weblogic.com/docs45/admindocs/properties.html
              # Set up ACLs for this connection pool with the following:
              #weblogic.allow.reserve.weblogic.jdbc.connectionPool.oraclePool=\
              # guest,joe,jill
              #weblogic.allow.reset.weblogic.jdbc.connectionPool.oraclePool=\
              # joe,jill
              #weblogic.allow.shrink.weblogic.jdbc.connectionPool.oraclePool=\
              # joe,jill
              # This property is an ACL that specifies the users who can
              # create dynamic connection pools

    Try the following obj.conf file. By the way why are using NES 35 version. If you are using NES 36 you should use proxy36.dll.
              Init fn="load-types" mime-types="mime.types"
              Init fn="load-modules" funcs="wl-proxy,wl-init" shlib="d:/weblogic/bin/proxy35.dll"
              Init fn="wl-init"
              Init access="C:/Netscape/SuiteSpot/https-octavia/logs/accessNewELF" format.access="%Ses->client.ip% - %Req->vars.auth-user% [%SYSDATE%] \"%Req->reqpb.clf-request%\" %Req->srvhdrs.clf-status% %Req->srvhdrs.content-length%
              \"%Req->headers.referer%\" \"%Req->headers.user-agent%\" %Req->reqpb.method% %Req->reqpb.uri% %Req->reqpb.query% \"%Req->reqpb.protocol%\"" fn="flex-init"
              <Object name="tg" ppath="*/weblogic/*">
              Service fn="wl-proxy" WebLogicCluster="asera190:7001,asera162:7001" PathTrim="/weblogic"
              </Object>
              <Object name="default">
              NameTrans fn="pfx2dir" from="/ns-icons" dir="C:/Netscape/SuiteSpot/ns-icons"
              NameTrans fn="pfx2dir" from="/mc-icons" dir="C:/Netscape/SuiteSpot/ns-icons"
              NameTrans fn="pfx2dir" from="/help" dir="C:/Netscape/SuiteSpot/manual/https/ug"
              NameTrans fn="document-root" root="C:/Netscape/SuiteSpot/docs"
              PathCheck fn="nt-uri-clean"
              PathCheck fn="check-acl" acl="default"
              PathCheck fn="find-pathinfo"
              PathCheck fn="find-index" index-names="index.html,home.html"
              ObjectType fn="type-by-extension"
              ObjectType fn="force-type" type="text/plain"
              Service method="(GET|HEAD|POST|PUT)" type="text/jsp" fn="wl-proxy" WebLogicCluster="asera190:7001,asera162:7001"
              Service method="(GET|HEAD)" type="magnus-internal/imagemap" fn="imagemap"
              Service method="(GET|HEAD)" type="magnus-internal/directory" fn="index-common"
              Service method="(GET|HEAD)" type="*~magnus-internal/*" fn="send-file"
              AddLog fn="flex-log" name="access"
              </Object>
              <Object ppath="/usr/suitespot/docs/.perf">
              Service fn="service-dump"
              </Object>
              <Object name="cgi">
              ObjectType fn="force-type" type="magnus-internal/cgi"
              Service fn="send-cgi"
              </Object>
              Hope this helps
              Krishna Kanth wrote:
              > We are evaluating the Cluster features of WebLogic and got a eval
              > license for the Cluster Support.
              > I am running a default cluster (mycluster) using the default Multicast
              > address (237.0.0.1) and am seeing
              > some strange behaviour/errors.
              > Would appreciate some asistance in this matter.
              >
              > Our Environment
              > ----------------
              >
              > I created directory in a shared file system to host the cluster.
              > (h:\kkanth\weblogic)
              > Created the mycluster directory and other directories as recommended in
              > the Administrator's guide.
              >
              > I have two WL Servers (asera190 and asera162) with permanent IP
              > addresses of 10.1.1.61 and 10.1.1.70 respectively. They run NT 4.0.
              > I'm using a NES proxy on asera190 with the plugin for WL specified in
              > obj.conf alongwith the other parameters.
              >
              > I'm able to have both the servers join to cluster mycluster and the WL
              > Admin Console does display a tree that depicts the cluster as well as
              > servers in it (server61 and server70). The individual server directories
              > are being created in h:\kkanth\weblogic\mycluster directory with the
              > appropriate access.log and weblogic.log files.
              >
              > When a browser attempts to access a URL such as
              >
              > http://asera190/weblogic/snoop it does return the proper response, but
              > all requests are processed by asera162 which is listed first in the
              > obj.conf. Opening multiple sessions does not cause the requests to be
              > sent to asera190 which is the second server in the cluster. When
              > asera162 is shutdown and removed from the cluster, I hoped that
              > subsequent requests would go to asera190. However , depending on the
              > origin of the request, different errors were thrown. If I try to access
              > http://asera190/weblogic/snoop from a browser on asera190, I get an
              > error "Failure at line 351 of file proxy.cpp" ,while trying the same URL
              > from asera162 cause "Failure at line 706 of file proxy.cpp".
              >
              > I'm attaching the weblogic.properties file kept in h:\kkanth\weblogic
              > directory as well as the obj.conf file in the ....\config\ directory of
              > asera190.
              >
              > We are running NES 3.5.1 and have setup proxy35.dll appropriately.
              >
              > weblogic.properties
              > *********
              > # THE WEBLOGIC PROPERTIES FILE
              > # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
              > # This file, which conforms to the java.util.Properties file
              > # definition, configures your WebLogic products. You cannot run
              > # WebLogic Server without setting required configuration properties in
              > this
              > # file. Required properties are marked and appear first in the file.
              > #
              > # Details on each entry and important information about configuration
              > # and security are documented on our website. Please go to:
              > #
              > # http://www.weblogic.com/docs45/admindocs/properties.html
              > #
              > # for full instructions on how to edit this file.
              > #
              > # You do not need to include properties in this file unless you want to
              > # change the default, embedded property. Some properties on the
              > # T3AdminProps page are not listed here because the default property
              > # is being used. You can change the default by adding the property and
              > # its value to this file.
              > #
              > # You cannot set weblogic.system.home in this file, since the WebLogic
              > Server
              > # must know where home is in order to retrieve this file. You can
              > # change WebLogic home on the command line when you start the
              > # WebLogic Server.
              > #
              > # CLUSTER USERS: Note that the (shared) per-cluster properties file
              > should
              > # contain most all of the properties in this file. The only properties
              > # that potentially belong in a per-server properties file for a server
              > # running in a cluster are the registration (startup class) of pinned
              > # RMI objects, and a few tuning properties that may be different for
              > # servers in the cluster, depending upon hardware and memory. If you use
              >
              > # a per-server properties file, please REMOVE all properties except
              > those
              > # that are specifically required in the per-server properties file. You
              > # can find specific notes on clusters by searching through this file for
              >
              > # "CLUSTER USERS".
              > #
              > # -------------------------------------------------
              > # The way this file is organized:
              > # Core properties (includes REQUIRED and RECOMMENDED)
              > # Core system properties
              > # Core security-related properties
              > # Core security-related properties for SSL
              > # Core HTTPD administrative properties
              > #
              > # Optional properties
              > # Administrator properties
              > # System properties
              > # System startup files
              > # System shutdown files
              > # Security-related properties for Workspaces
              > # Jolt for WebLogic properties
              > # WebLogic Enterprise Connectivity properties
              > # WebLogic File properties
              > # WebLogic JMS demo properties
              > # WebLogic RMI demo properties
              > # WebLogic EJB demo properties
              > # WebLogic ZAC demo properties
              > # HTTPD administrative properties
              > # WebLogic JDBC driver properties
              > # WebLogic JDBC connection pool management
              > # WebLogic demo connection pool
              > # WebLogic HTTP Servlet properties
              > # Proxy servlet registration
              > # Classpath servlet registration
              > # File servlet registration
              > # ServerSideInclude servlet registration
              > # PageCompileServlet (used by JHTML)
              > # JSPServlet (used by JSP)
              > # ServletServlet registration
              > # Servlet reload properties
              > # Servlet ACLs
              > # WebLogic JHTML properties
              > # User-written and demo servlet registrations
              > # -------------------------------------------------
              >
              > #################################################################
              > # CORE PROPERTIES
              > # -------------------------------------------------
              > # You should set these before you start the WebLogic Server the first
              > time.
              > # If you need more instructions on individual properties in this
              > # section, check the same section in the Optional Properties, where
              > # we've left the long explanations. Or, better yet, go to our
              > # website and read all about properties, at:
              > # http://www.weblogic.com/docs45/admindocs/properties.html
              > #################################################################
              >
              > # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
              > # CORE SYSTEM PROPERTIES
              > # -------------------------------------------------
              > # TCP/IP port number at which the WebLogic Server listens for
              > connections
              > weblogic.system.listenPort=7001
              >
              > # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
              > # CORE SECURITY-RELATED PROPERTIES
              > # -------------------------------------------------
              > # Read important information about security at:
              > #
              > # http://www.weblogic.com/docs45/admindocs/properties.html
              > #
              > # REQUIRED: The system password MUST be set in order to start the
              > # WebLogic Server. This password is case-sensitive, at least 8
              > characters.
              > # The username for the privileged user is ALWAYS "system".
              > # This username and password also includes httpd access (see
              > # HTTPD properties below).
              > weblogic.password.system=kaykayka
              >
              > # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
              > # RECOMMEND Set to 'everyone' if HTTPD is enabled
              > weblogic.allow.execute.weblogic.servlet=everyone
              > # Set individual ACLs to restrict access to HTTP-related resources,
              > # such as the Administration servlets.
              > # To make your own servlets generally available, follow this
              > # pattern (provide a weblogic.allow.execute) for your packages and
              > # set ACLs as appropriate.
              >
              > # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
              > # CORE SECURITY-RELATED PROPERTIES FOR SSL
              > # ------------------------------------------------
              > # Read important information about SSL at:
              > #
              > # http://www.weblogic.com/docs45/classdocs/API_secure.html
              > #
              > # Enable SSL
              > # (default if property not defined is false)
              > weblogic.security.ssl.enable=true
              > #
              > # SSL listen port
              > weblogic.system.SSLListenPort=7002
              >
              > # Servlets for SSL
              > # ------------------------------------------------
              > # Authentication servlet for creating tokens for applets
              > weblogic.httpd.register.authenticated=weblogic.t3.srvr.ClientAuthenticationServlet
              >
              > # Limits number of unclaimed stored tokens
              > weblogic.security.certificateCacheSize=3
              > # Capture CA root of client servlet
              > weblogic.httpd.register.T3AdminCaptureRootCA=admin.T3AdminCaptureRootCA
              >
              > # Certificates for SSL
              > # ------------------------------------------------
              > # Name of acceptable CA roots
              > # For client authentication change value to a valid .pem file
              > #weblogic.security.clientRootCA=SecureServerCA.pem
              > #
              > # Server certificates for SSL
              > # ------------------------------------------------
              > weblogic.security.certificate.server=democert.pem
              > weblogic.security.key.server=demokey.pem
              > weblogic.security.certificate.authority=ca.pem
              >
              > # registration for certificate generator servlet
              > weblogic.httpd.register.Certificate=utils.certificate
              > weblogic.allow.execute.weblogic.servlet.Certificate=system
              >
              > # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
              > # CORE HTTPD ADMINISTRATIVE PROPERTIES
              > # ------------------------------------------------
              > # True permits the HTTPD to run (default)
              > # Uncomment this property to disable HTTPD
              > #weblogic.httpd.enable=false
              > #
              > # If authentication is required, add username/password for each user
              > # who will be included in an ACL, as in this commented-out example:
              > #weblogic.password.peter=#8gjsL4*
              >
              > #################################################################
              > # OPTIONAL PROPERTIES
              > # ------------------------------------------------
              > # These properties affect the behavior of the WebLogic Server.
              > # You only need to set these properties if you want
              > # to change the default setting, which is the property shown.
              >
              > # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
              > # ADMINISTRATOR PROPERTIES
              > # ------------------------------------------------
              > # Administrator properties are optional information properties,
              > # particularly useful for clusters.
              > #weblogic.administrator.location=3355 California Drive, West Hampshire,
              > CA 94104
              > #weblogic.administrator.name=Joe Administrator
              > #weblogic.administrator.phone=1 415 555 1234
              >
              > # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
              > # SYSTEM PROPERTIES
              > # ------------------------------------------------
              > # System properties in this section are set to system defaults
              >
              > # Performance pack. The shared library must be accessible from your
              > # PATH (NT) or from your shared library path (UNIX; the name of the
              > # variable varies: LD_LIBRARY_PATH, SHLIB_PATH, etc.)
              > weblogic.system.nativeIO.enable=true
              >
              > # Outputs logging information to the console as well as to the log file
              > weblogic.system.enableConsole=true
              >
              > # Sets the directory or URL for the WebLogic Admin help pages
              > # The help pages are shipped in the "docs/adminhelp" directory, in the
              > # default document root in public_html
              > weblogic.system.helpPageURL=d:/weblogic/myserver/public_html/docs/adminhelp/
              >
              > # If you prefer to access the most recent help pages, you can do so
              > online
              > # by commenting out the previous property and uncommenting this one:
              > #weblogic.system.helpPageURL=http://www.weblogic.com/docs45/adminhelp/
              >
              > # Properties for tuning the server's performance
              > # ------------------------------------------------
              > # Number of WebLogic Server execute threads.
              > weblogic.system.executeThreadCount=15
              >
              > # Other optional system properties
              > # ------------------------------------------------
              > # Limits size of weblogic.log (in K) and versions old log
              > weblogic.system.maxLogFileSize=1024
              >
              > # Adjust minimum length of password
              > weblogic.system.minPasswordLen=8
              >
              > # UNIX only: If running on port 80 on UNIX, enable the setUID program
              > #weblogic.system.enableSetUID=false
              >
              > # UNIX only: Unprivileged user to setUID to after starting up
              > # WebLogic Server on port 80
              > #weblogic.system.nonPrivUser=nobody
              >
              > # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
              > # CLUSTER-SPECIFIC PROPERTIES
              > # ------------------------------------------------
              > # Cluster-specific properties in this section are set to system
              > defaults.
              > # CLUSTER USERS: Note that ALL Cluster-specific properties should be set
              >
              > # in the per-cluster properties file ONLY.
              > #
              > # Time-to-live (number of hops) for the cluster's multicast messages
              > # (default 1, range 1-255).
              > #weblogic.cluster.multicastTTL=1
              > #
              > # Sets the load-balancing algorithm to be used between
              > # replicated services if none is specified. If not specified,
              > # round-robin is used.
              > #weblogic.cluster.defaultLoadAlgorithm=round-robin
              >
              > # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
              > # SERVER-SPECIFIC CLUSTER PROPERTIES
              > # ------------------------------------------------
              > # Cluster-related properties in this section are set to system defaults.
              >
              > # CLUSTER USERS: Note that these server-specific cluster-related
              > properties
              > # should be set in the per-server properties file ONLY.
              > #
              > # Sets the weight of the individual server for the weight-based
              > load-balancing.
              > # Range is 0 - 100.
              > # Larger numbers increase the amount of traffic routed to this server.
              > #weblogic.system.weight=100
              >
              > # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
              > # SYSTEM STARTUP FILES - Examples
              > # ------------------------------------------------
              > # CLUSTER USERS: Note that ONLY startup registrations for pinned RMI
              > # objects should be registered in the per-server properties file.
              > # All other startup classes should be registered in the per-cluster
              > # properties file.
              > #
              > # For more info on writing and using startup file, see the
              > # Developers Guide "Writing a WebLogic Client application," at
              > # http://www.weblogic.com/docs45/classdocs/API_t3.html
              > #
              > # Register a startup class by giving it a virtual name and
              > # supplying its full pathname.
              > #weblogic.system.startupClass.[virtual_name]=[full_pathname]
              > #
              > # Add arguments for the startup class
              > #weblogic.system.startupArgs.[virtual_name]={argname]=[argvalue]
              > #
              > # This example shows the entry for examples/t3client/StartupQuery.java
              > #weblogic.system.startupClass.doquery=examples.t3client.StartupQuery
              > #weblogic.system.startupArgs.doquery=\
              > # query=select * from emp,\
              > # db=jdbc:weblogic:pool:demoPool
              > #
              > # Other system startup files for use with VisiBroker
              > # ------------------------------------------------
              > # Starts the VisiBroker WebLogic Server proxy with the WebLogic Server
              > # You must have installed Visigenic 2.5 for use with
              > # the WebLogic Server before you uncomment these properties
              > #weblogic.system.startupClass.dovisi=weblogic.corba.visi.t3server.Startup
              >
              > #weblogic.system.startupArgs.dovisi=\
              > # clientName=T3Client Manager,\
              > # connName=T3Connection Manager
              >
              > # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
              > # SYSTEM SHUTDOWN FILES - Examples
              > # ------------------------------------------------
              > # For more info on writing and using shutdown file, see the
              > # Developers Guide "Writing a WebLogic Client application," at
              > # http://www.weblogic.com/docs45/classdocs/API_t3.html
              > #
              > # Register a shutdown class by giving it a virtual name and
              > # supplying its full pathname.
              > #weblogic.system.shutdownClass.[virtual_name]=[full_pathname]
              > #
              > # Add arguments for the shutdown class
              > #weblogic.system.shutdownArgs.[virtualName]={argname]=[argvalue]
              > #
              > # This example shows the entry for examples/t3client/ShutdownTest.java
              > #weblogic.system.shutdownClass.ShutdownTest=examples.t3client.ShutdownTest
              >
              > #weblogic.system.shutdownArgs.ShutdownTest=\
              > # outfile=c:/temp/shutdown.log
              >
              > # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
              > # SECURITY-RELATED PROPERTIES FOR WORKSPACES
              > # ------------------------------------------------
              > # For backward compatibility, the following entries disable Access
              > # Control on Workspaces
              > weblogic.allow.read.weblogic.workspace=everyone
              > weblogic.allow.write.weblogic.workspace=everyone
              >
              > # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
              > # JOLT FOR WEBLOGIC PROPERTIES
              > # ------------------------------------------------
              > # These properties configure a BEA Jolt connection pool for use with
              > # the simpapp and bankapp examples, and register a servlet for use with
              > # with the simpapp example. The default server address provided here
              > # points to a public TUXEDO server that is hosted by BEA for use with
              > # this example.
              > #
              > # Servlet registration for simpapp example:
              > # ------------------------------------------------
              > #weblogic.httpd.register.simpapp=examples.jolt.servlet.simpapp.SimpAppServlet
              >
              > #
              > # Pool creation and cleanup
              > # note this example is set up to work with the public
              > # demo TUXEDO server available from BEA's website:
              > # ------------------------------------------------
              > #weblogic.system.startupClass.demojoltpoolStart=\
              > # bea.jolt.pool.servlet.weblogic.PoolManagerStartUp
              > #weblogic.system.startupArgs.demojoltpoolStart=\
              > # poolname=demojoltpool,\
              > # appaddrlist=//beademo1.beasys.com:8000,\
              > # failoverlist=//beademo1.beasys.com:8000,\
              > # minpoolsize=1,\
              > # maxpoolsize=3
              > #
              > #weblogic.system.shutdownClass.demojoltpoolStop=\
              > # bea.jolt.pool.servlet.weblogic.PoolManagerShutDown
              > #weblogic.system.shutdownArgs.demojoltpoolStop=\
              > # poolname=demojoltpool
              >
              > # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
              > # WEBLOGIC ENTERPRISE CONNECTIVITY PROPERTIES
              > # ------------------------------------------------
              > # The registrations enable a BEA IIOP connection pool and
              > # register servlets for use with the simpapp and university examples.
              > # Configure for your environment and uncomment to use.
              > # Uncommenting these properties requires WebLogic Enterprise
              > Connectivity
              > # and an operating WebLogic Enterprise Server.
              > #
              > # Servlet registration for simpapp servlet example
              > # ------------------------------------------------
              > #weblogic.httpd.register.SimpappServlet=\
              > # examples.wlec.servlets.simpapp.SimpappServlet
              > #
              > #weblogic.allow.execute.weblogic.servlet.SimpappServlet=everyone
              > #
              > # Servlet registration for simpapp EJB example
              > # (You'll need to add the wlec_ejb_simpapp.jar to the
              > # weblogic.ejb.deploy property in this file.)
              > # --------------------------------------------
              > #weblogic.httpd.register.ejbSimpappServlet=\
              > # examples.wlec.ejb.simpapp.ejbSimpappServlet
              > #weblogic.allow.execute.weblogic.servlet.ejbSimpappServlet=everyone
              > #
              > # Pool creation and cleanup for the simpapp example
              > # -------------------------------------------------
              > #weblogic.CORBA.connectionPool.simplepool=\
              > # appaddrlist=//wlehost:2468,\
              > # failoverlist=//wlehost:2468,\
              > # minpoolsize=2,\
              > # maxpoolsize=3,\
              > # username=wleuser,\
              > # userrole=developer,\
              > # domainname=simpapp
              > #
              > # Servlet registration for university Servlet example:
              > # ---------------------------------------------------
              > #weblogic.httpd.register.UniversityServlet=\
              > # examples.wlec.servlets.university.UniversityServlet
              > #weblogic.allow.execute.weblogic.servlet.UniversityServlet=everyone
              > #
              > # Pool creation and cleanup for the University example:
              > # ----------------------------------------------------
              > #weblogic.CORBA.connectionPool.Univpool=\
              > # appaddrlist=//wlehost:2498,\
              > # failoverlist=//wlehost:2498,\
              > # minpoolsize=2,\
              > # maxpoolsize=3,\
              > # username=wleuser,\
              > # userrole=developer,\
              > # apppassword=wlepassword,\
              > # domainname=university
              >
              > # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
              > # WEBLOGIC FILE PROPERTIES
              > # ------------------------------------------------
              > # Maps a volume name to a path, for client file read/write
              > #weblogic.io.fileSystem.[volumeName]=[fullPathName]
              >
              > # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
              > # WEBLOGIC JMS DEMO PROPERTIES
              > # -------------------------------------------------
              > # CLUSTER USERS: Note that ALL JMS deployment should be done in the
              > # per-cluster properties file ONLY.
              > #
              > # You set up a JDBC connection pool if you want persistent messages
              > # (including durable subscriptions). To use JMS and EJBs in the same
              > # transaction, both must use the same JDBC connection pool. Uncomment
              > # the following property to use the default JDBC connection pool
              > # 'demo', which is defined in the Demo connection pool section of this
              > file.
              > #
              > #weblogic.jms.connectionPool=demoPool
              > #
              > # The JMS Webshare example demonstrates how the ClientID for a
              > # durable subscriber is configured in the connection factory:
              > #
              > #weblogic.jms.topic.webshareTopic=jms.topic.webshareTopic
              > #weblogic.jms.connectionFactoryName.webshare=jms.connection.webshareFactory
              >
              > #weblogic.jms.connectionFactoryArgs.webshare=ClientID=webshareUser
              > #weblogic.httpd.register.webshare=examples.jms.webshare.WebshareServlet
              > #
              > # The JMS trader example shows how to use JMS with an EJB. In addition
              > # to uncommenting the following properties, you must also set up and
              > # deploy the EJB example examples.ejb.basic.statefulSession.Trader to
              > # try out this JMS example:
              > #
              > #weblogic.jms.topic.exampleTopic=javax.jms.exampleTopic
              > #weblogic.jms.connectionFactoryName.trader=jms.connection.traderFactory
              > #weblogic.jms.connectionFactoryArgs.trader=ClientID=traderReceive
              > #weblogic.httpd.register.jmstrader=examples.jms.trader.TraderServlet
              > #
              > # Registers the underlying servlet
              > #weblogic.httpd.register.jmssender=examples.jms.sender.SenderServlet
              > #
              > # These properties are used with the ServerReceive JMS example,
              > # which demonstrates how to establish a JMS message consumer
              > # in a startup class:
              > #
              > #weblogic.system.startupClass.serverReceive=\
              > # examples.jms.startup.ServerReceive
              > #weblogic.system.startupArgs.serverReceive=\
              > # connectionFactory=javax.jms.TopicConnectionFactory,\
              > # topic=javax.jms.exampleTopic
              > #
              > # These properties are used with the PoolReceive JMS example,
              > # which demonstrates how to establish a pool of JMS message consumers
              > # in a startup class:
              > #weblogic.system.startupClass.poolReceive=\
              > # examples.jms.startup.PoolReceive
              > #weblogic.system.startupArgs.poolReceive=\
              > # connectionFactory=javax.jms.TopicConnectionFactory,\
              > # topic=javax.jms.exampleTopic
              >
              > # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
              > # WEBLOGIC RMI DEMO PROPERTIES
              > # ------------------------------------------------
              > # CLUSTER USERS: Note that pinned RMI objects should be registered
              > # in the per-server properties file ONLY. All other RMI startup
              > # classes should be registered in the per-cluster properties file.
              > #
              > # Remote classes registered at startup after the pattern:
              > #weblogic.system.startupClass.[virtualName]=[fullPackageName]
              > #
              > # These examples can be compiled to see RMI in action. Uncomment to use:
              >
              > #weblogic.system.startupClass.multihello=examples.rmi.multihello.HelloImpl
              >
              > #weblogic.system.startupClass.hello=examples.rmi.hello.HelloImpl
              >
              > # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
              > # WEBLOGIC EJB DEMO PROPERTIES
              > # -------------------------------------------------
              > # CLUSTER USERS: Note that ALL EJB deployment should be done in the
              > # per-cluster properties file ONLY.
              > #
              > # See WebLogic Demo Connection Pool below for a connection pool
              > # to use with these examples.
              > #
              > # Deploys EJBeans. Uncomment the appropriate lines below and
              > # modify DBMS-related info and paths to match your particular
              > installation:
              > #weblogic.ejb.deploy=\
              > # d:/weblogic/myserver/cluster_ejb.jar, \
              > # d:/weblogic/myserver/ejb_basic_beanManaged.jar, \
              > # d:/weblogic/myserver/ejb_basic_containerManaged.jar, \
              > # d:/weblogic/myserver/ejb_basic_statefulSession.jar, \
              > # d:/weblogic/myserver/ejb_basic_statelessSession.jar, \
              > # d:/weblogic/myserver/ejb_extensions_isModified.jar, \
              > # d:/weblogic/myserver/ejb_extensions_isModifiedBeanManaged.jar, \
              >
              > # d:/weblogic/myserver/ejb_sequence_jdbc.jar, \
              > # d:/weblogic/myserver/ejb_sequence_oracle.jar, \
              > # d:/weblogic/myserver/ejb_subclass.jar, \
              > # d:/weblogic/myserver/jolt_ejb_bankapp.jar
              > #
              > # Servlets used by the EJB basic examples beanManaged and
              > # containerManaged. Uncomment to use:
              > #weblogic.httpd.register.beanManaged=\
              > # examples.ejb.basic.beanManaged.Servlet
              > #weblogic.httpd.register.containerManaged=\
              > # examples.ejb.basic.containerManaged.Servlet
              > #
              > # Add a list of users (set the password with
              > weblogic.password.[username]=XXX)
              > # to set an ACL for this servlet:
              > #weblogic.allow.execute.weblogic.servlet.beanManaged=user1,user2,etc
              > #weblogic.allow.execute.weblogic.servlet.containerManaged=user1,user2,etc
              >
              > #weblogic.password.user1=user1Password
              > #weblogic.password.user2=user2Password
              >
              > # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
              > # WEBLOGIC ZAC DEMO PROPERTIES
              > # -------------------------------------------------
              > # These registrations enable the ZAC Publish Wizard.
              > #
              > weblogic.zac.enable=true
              > #
              > # Set the publish root for a WebLogic Server. Edit and
              > # uncomment to use
              > #
              > #weblogic.zac.publishRoot=d:/weblogic/zac
              > #
              > # Set an ACL for each package you publish. The [name] is
              > # the "Package name" you assign in the ZAC Publish Wizard.
              > # Publish a package, edit this property, and uncomment to use.
              > #weblogic.allow.read.weblogic.zac.[name]=[user list]
              > #weblogic.allow.write.weblogic.zac.[name]=system
              >
              > # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
              > # HTTPD ADMINISTRATIVE PROPERTIES
              > # ------------------------------------------------
              > # Enables logging of HTTPD info in common log format and
              > # sets the log file name (default is "access.log" in "myserver")
              > weblogic.httpd.enableLogFile=true
              > weblogic.httpd.logFileName=access.log
              >
              > # Tracks HTTPD requests with events delivered to WEBLOGIC.LOG.HTTPD
              > weblogic.httpd.enableEvents=false
              >
              > # Enables HTTP sessions
              > weblogic.httpd.session.enable=true
              >
              > # Sets an optional cookie name. The default name is "WebLogicSession".
              > # Prior to version 4.0, the default was "TengahSession". To make
              > # this backward compatible with cookies generated from previous
              > # installations, you should set this property to "TengahSession".
              > # Uncomment t

  • Object/variable synchronization

    i need to synchronize a primitive type (or object), am i doing it correctly?
    private static boolean threadStarted = false;
    public void init(){
        sunchronized (threadStarted){
            if (!threadStarted){
                schedulerThread = new Scheduler();
                schedulerThread.start();
                threadStarted = true;
    }this is basically a servlet that does some database maintainance (I'm forced to make it a Servlet - so we can do different DB maintainance task from anywhere, by using the HTTP GET).
    what i wanted to happen is that on init(), the servlet will create an instance of the Scheduler(which extends Thread to create and starts severals TimeTask objects using a Timer). i wanted to make sure only the scheduler thread is ever created get created once and started once. is the above code guareentee to start only one instance of the scheduler.
    my previous code does not have synchronization, and i noticed that the scheduler is created twice 9therby - doing the same DB maintainance twice - which is extremely costly)
    I thought of making the Scheduler a Singleton, and return null if the instance has been created...like the code below
    public class Scheduler extends Thread{
        private static Scheduler scheduler = null;
        private Scheduler(){
            // .. initialize some local variables in here
        public synchronized static Scheduler getInstance(){
            if (scheduler == null)
                return new Scheduler();
            return null; 
        public void run(){
            // do some thread stuff here
    public void init(){
        Scheduler temp = Scheduler.getInstance();
        if (temp != null){
            schedulerThread = temp;
            schedulerThread.start();
    } any comment or better design? (yes, i have to use a servlet)

    First, synchronized has a 'y' in it, not a 'u'. :^)yeah, i have a bad habit of typo. for me, most compile error (90%) aare typo
    i really need to take a typing class or two.
    Second, your methodology of checking null before creating the object involves
    a race condition. Two requests, theoretically, could come in at the same time,
    and you might get unexpected results. actually..the method is synchronized, so there wont (shouldn't) be any race condition. the first time the method is invoke..it will lock the method from all other..until the method is complete. I think this is pretty much a standard way of doing a Singleton (cept return null should be returning the scheduler object.)
    I aslo knows about double locks and its flaw..that's why the method is synchronized instead of using lazy creation method.
    You can only synchronize an object, so you would have to wrap boolean in an
    instance of java.lang.Boolean. cool, this i didn't know about. guess i can make the primitive a Boolean instead of a boolean.
    Be VERY wary of spinning off your own threads in a J2EE container (e.g.,
    Servlet). The J2EE specification specifically requests you avoid doing this. The
    primary reason is that the container should be responsible for multi-threading
    and thread management. That having been said, you CAN spin off your own
    threads, just be very careful.yes, i heard about this so many time..but there's really no choice but to use thread in my application. that's why i come here to ask..hoping someone works with this type of problem before..and know a better design.

  • How to save the client file to DB?

    I use ENCTYPE="multipart/form-data" in the html,post the file binary stream to my servlet,but I don't know how to get the file binary stream and save them to the DB :
    The html:
    <form name="frmMain" method="POST" ENCTYPE="multipart/form-data" action="servlet/myservlet">
    <input type="file" name="fileName" size=35>
    <input type="submit" value="submit" >
    </form>
    The servlet included:
    String sql="insert into test(id,photo) values(?,?)";
    PreparedStatement ps=conn.prepareStatement(sql);
    ps.setInt(1,getNextId());
    ps.setBinaryStream(2,in,in.available()); //"in" is InputStream
    ps.executeUpdate();
    ps.close() ;
    how to get InputStream?how to write my servlet ?
    Thank for any help!
    Thanks in advance!

    Well, I'm not sure to have understood what you want to do, but you can get the inputStream of the client with HttpServletRequest.getInputStream() (for example in the doPost() method of your servlet).
    Just be careful that, in this way, you will retrieve the whole HTTP stream, including headers and multipart separators. You should parse this stream if you want to get only the binary stream of the file posted...
    Well, in fact you just have to implement/obtain a basic upload servlet...
    Hope it helps...

  • Page extends vs page import

    What is the difference between
              <%@ page extends="com.beasys.commerce.portal.admin.PortalJspBase"%>
              and
              <%@ page import="com.beasys.commerce.portal.admin.PortalJspBase"%>
              

    "Kenneth Lee" <[email protected]> wrote in message news:<3bebfe13$[email protected]>...
              > What is the difference between
              > <%@ page extends="com.beasys.commerce.portal.admin.PortalJspBase"%>
              > and
              > <%@ page import="com.beasys.commerce.portal.admin.PortalJspBase"%>
              On the terminology extends vs import:- First, your jsp is basically a
              servlet. Whether your servlet is a kind of another class (extends) or
              use (import) another class is up your requirement.
              In your case, in theory, it shouldn't make a difference. Why? Because
              PortalJspBase is like a utility "Singleton" class (seemed like most of
              the functions and variables are static)! Deriving this class would
              possibly save some coding effort. However, since you are making a
              portlet (aren't you?), making it to be a "kind-of" weblogic portlet
              means that you must derive (or in the Java world, extend) from the
              above.
              Only my 2 cents worth.
              Regards
              drit
              

  • How can i use session to save properties?

    How can i use session to save properties?

    Hi,
    Session Tracking is one of the most powerful features of Servlets and JSP. Basically, the servlet engine takes care of using Cookies in the right way to preserve state across successive requests by the same user. Your servlet just needs to call a single method (getSession) and it has access to a persistent hashtable of data that's unique to the current user.
    Otherwise Visit Servlet Essentials tutorial
    http://www.novocode.com/doc/servlet-essentials/

  • Invalid session error when trying to transfer line items to shopping basket

    Hi All,
    I have a requirement in E-Commerce application.
    when a user searches for a product in B2B webshop in 'products' tab in left frame, search results table get displayed which will have a shopping basket icon for each line item.
    There we can transfer only a single item to shopping basket.
    if we want to transfer more than one item, again shopping basket icon has to be clicked..
    Now my requirement is that I have to add check boxes before each line item and a button below the results table ,so that when it is cliked, all the checked items should move to shopping basket in a shot.
    I added a button and called '/catalog/updateitems.do' (onclick of buttton) which is the action called when  'transferselection' button in 'productISA.jsp' is clicked.
    Now I am getting  an error saying 'Invalid session' when that button is clicked. I am not able to guess the reason.
    And also I want to ask experts, is this the correct way of proceeding for the requirement ?
    I am new to E-Commerce and any pointers in this regard will be of great help.
    Thanks,
    Anasuya.

    Hello Anasuya,
    Any reason why Catalog is not used but "Product" search list is used in the process? Catalog gives a more organized way of displaying and searching capabilities and makes the buying experience simple. Product search is a convenience tool for power users when you know the product.
    Without major UI changes - like de-framing, the use of Product search for "Add to Cart" of all "selected" products from search list will not excite the end users. Catalog is a powerful tool that is available to you. Unless you have a strong business reason, it is better to use the features the way they are intended. You need to go back to the drawing board with your customer.
    Anyway, I am assuming that you are doing a POC. I will give the same help I provided for your previous message on a similar topic. Re: Null poiner exception when trying to store extension data in existing BO.  We need to understand the basics of Servlet / JSP. Just adding any action (calling servlet) from any page (JSP) may not help. We must understand that the action (servlet) may be expecting many values in the request context which is available in the page (JSP) it was placed in. If that action is blindly placed in another page, it is highly unlikely that it will work, unless, you also took the pain to provide the servlet behind that action with the data it is expecting. So, adding the action from _'productsISA.jsp' _ in organizer-content-product-search1.jsp will have bad results. If you have done the required changes to the JSP, then let us know the changes you have done to really understand the issue.
    If you have not done so, here is what you can do for the POC. If you look at the JSP organizer-content-product-search1.jsp, it doesn't have any useful <INPUT tags that would pass on the Product data to the servlet. So
    Surround the product (tech key) with <Input tag. (Hint: see productISA.jsp)
    I am sure you already have this for the quantity1 and the new checkbox.
    Add a button to a custom action.
    inside the custom action read all the items and create a simple Java List of  BasketTransferItem. Use BasketTransferItemImpl to actually use the instance.
    Use methods setProductKey(String techKey), setQuantity(String quantity) and if you know the UoM use setUnit(String unit) to set the BasketTransferItemImpl object.
    Add each instance of BasketTransferItem to the java List.
    Now, place this list object in the request context under the attribute name baskettransferitemlist.
    On success forward to "addtodocument"
    Make proper changes to config.xml
    I hope this will work without much changes.
    (Note: This is not a cake served in a plate, but just a tested recipe for the cake. Please cook it nicely. If you need the cake immediately, then hire a Chef! - )
    Easwar Ram
    http://www.parxlns.com

Maybe you are looking for

  • Problem with display of JFrame

    I have a run opperation in which i call a method that creates a j frame and displays it. all the j frame is used for is displaying the text "adding sample data...". It works fine when I have my main window open but when I have my layout editor open,

  • J2se version="1.6+" in JNLP not working on a client with Java 1.5

    Hi all, In my deployment scenario I have two jnlp files, one for the app and one for its installer extension. The deployment process works fine on a client with J2SE 1.6 but there are some problems when the client has an older Java installed. I am tr

  • MacBook Pro to iMac--Extended Desktop

    I work primarily on my MacBook Pro. I have an iMac (24" display-2.4GHz Intel Core 2 Duo) at work that I would like to connect to the MacBook Pro to create an extended desktop b/n the two. Just to be sure, I'd like to know what adaptors/connectors I n

  • Project "Installer Build Product version" vs exe version

    Hi,  Can someone help me understand why the "Installer Build" in a project has a "product version", which later shows up in the Windows add/remove programs?   I must be missing something because to me it seems very strange that what they call "produc

  • Send to Premiere Pro - Which codec?

    I tested ingesting some sample footage, copying the original footage to a folder, then also two transcodes, ProRes 422 and Prores Proxy each to their own folders.  I then sent the project to Premiere Pro. Is there some rule about which codec Premiere