Big jsp Bug in Weblogic! UnNoticed by weblogic!

          <%@ page language="java" contentType="text/html" %> <%! public void jspInit() { System.out.println("Hello"); } %> <% out.println("jsp executed"); %>
          The above code displays "Hello" on the command line or Dos and "jsp executed" on the browser!
          When this jsp is loaded first time it executes correctly. when it is again loaded then jsp init method is not executed. This is also fine.
          But the problem is when I restart my weblogic server and clear the browser cache and then load the jsp file then the init method is called TWO times! "Hello" is displayed two times!
          why this is so? Is there any bug in weblogic5.1? Or am I doing something wrong? please tell
          

          You hit the JSP and the .class file gets loaded into memory and jspInit() executes. Fine.
          Once loaded into memory, the next thing the JSP does is check if it 'isStale()' -
          this compares the date-stamp that was on the .jsp file when the jsp was compiled
          with the date-stamp on the .jsp file on disk. This is in the code of the JSP itself, it
          does not compare the date of the .class file with the date of the .jsp file - so it was
          necessary to load the JSP in memory (an call jspInit()) simply to check the if it was
          up-to-date. In your case, it is not up-to-date. The JSP is compiled, loaded into
          memory and jspInit() executes - again.
          Mike Reiche
          Robert Patrick <[email protected]> wrote:
          >Hi,
          >
          >Please realize that this is NOT an official BEA support forum. All BEA personnel that monitor this newsgroup and answer questions do it on their own time because we (yes, I work for
          >BEA) want to help people be successful with our products. If you want an official response from BEA to your problem, then I suggest that you send mail to [email protected], call our toll
          >free support number (888)232-7878 and/or talk with your BEA Account Representative.
          >
          >As for your problem, I am not sure what is happening but this may be a simple matter of not understanding how JSP reloading works. I am more than willing to help you but you need to
          >provide me with a more detailed description of exactly what it is that you are doing, what service pack level are you using, etc.
          >
          >Thanks,
          >Robert
          >
          >gopal wrote:
          >
          >> <%@ page language="java" contentType="text/html" %> <%! public void jspInit() { System.out.println("Hello"); } %> <% out.println("jsp executed"); %>
          >>
          >> The above code displays "Hello" on the command line or Dos and "jsp executed" on the browser!
          >>
          >> When this jsp is loaded first time it executes correctly. when it is again loaded then jsp init method is not executed. This is also fine.
          >>
          >> But the problem is when I restart my weblogic server and clear the browser cache and then load the jsp file then the init method is called TWO times! "Hello" is displayed two times!
          >>
          >> why this is so? Is there any bug in weblogic5.1? Or am I doing something wrong? please tell
          >
          

Similar Messages

  • Weblogic.httpd.defaultWebApp  & weblogic.httpd.webApp. name : PROBLEM!!!

    i have a client that give this error: ---------------------------------------------
    javax.naming.CommunicationException. Root exception is java.lang.ClassNotFoundException:
    class com.dat.abs.ejb.GenClassSessionEJBHomeImpl_WLStub previously not found at
    weblogic.rjvm.MsgAbbrev.read(MsgAbbrev.java, Compiled Code) at java.lang.Exception.<init>(Exception.java,
    Compiled Code) at java.lang.ClassNotFoundException.<init>(ClassNotFoundException.java,
    Compiled Code) at weblogic.rjvm.MsgAbbrev.read(MsgAbbrev.java, Compiled Code)
    at weblogic.socket.JVMAbbrevSocket.readMsgAbbrevs(JVMAbbrevSocket.java:505) at
    weblogic.rjvm.MsgAbbrevInputStream.prime(MsgAbbrevInputStream.java:134) at weblogic.rjvm.RJVMImpl.dispatch(RJVMImpl.java:700)
    at weblogic.rjvm.ConnectionManagerClient.handleRJVM(ConnectionManagerClient.java:34)
    at weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:630) at weblogic.socket.JVMAbbrevSocket.dispatch(JVMAbbrevSocket.java:393)
    at weblogic.socket.JVMSocketT3.dispatch(JVMSocketT3.java, Compiled Code) at weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java,
    Compiled Code) at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:23)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
    --------------- nested within: ------------------ weblogic.rmi.UnmarshalException:
    Unmarshalling return - with nested exception: [java.lang.ClassNotFoundException:
    class com.dat.abs.ejb.GenClassSessionEJBHomeImpl_WLStub previously not found]
    at weblogic.jndi.toolkit.BasicWLContext_WLStub.lookup(BasicWLContext_WLStub.java:256)
    at weblogic.jndi.toolkit.WLContextStub.lookup(WLContextStub.java, Compiled Code)
    at javax.naming.InitialContext.lookup(InitialContext.java:349) at com.dat.gen.GenEJBHelper.getHomeFor(GenEJBHelper.java:32)
    at abs.ABSGenClassInfo.getGenClassSessionHome(ABSGenClassInfo.java:743) at abs.ABSGenClassInfo.getGenClass(ABSGenClassInfo.java:266)
    at abs.ABSGenClassInfo.buildInheritanceStack(ABSGenClassInfo.java, Compiled Code)
    at abs.ABSGenClassInfo.<init>(ABSGenClassInfo.java:247) at abs.ABSGenClassInfo.getClassInfoFor(ABSGenClassInfo.java:217)
    at abs.ABSVerifyClassDependencies.doItWithContext(ABSVerifyClassDependencies.java,
    Compiled Code) at abs.ABSMainThread.verifyClassDependencies(ABSMainThread.java,
    Compiled Code) at abs.ABSMainThread.run(ABSMainThread.java, Compiled Code) java.lang.NullPointerException:
    at abs.ABSGenClassInfo.getGenClass(ABSGenClassInfo.java:266) at abs.ABSGenClassInfo.buildInheritanceStack(ABSGenClassInfo.java,
    Compiled Code) at abs.ABSGenClassInfo.<init>(ABSGenClassInfo.java:247) at abs.ABSGenClassInfo.getClassInfoFor(ABSGenClassInfo.java:217)
    at abs.ABSVerifyClassDependencies.doItWithContext(ABSVerifyClassDependencies.java,
    Compiled Code) at abs.ABSMainThread.verifyClassDependencies(ABSMainThread.java,
    Compiled Code) at abs.ABSMainThread.run(ABSMainThread.java, Compiled Code) Class
    AngelaForBatch not found!! java.lang.NullPointerException at abs.ABSVerifyClassDependencies.doItWithContext(ABSVerifyClassDependencies.java,
    Compiled Code) at abs.ABSMainThread.verifyClassDependencies(ABSMainThread.java,
    Compiled Code) at abs.ABSMainThread.run(ABSMainThread.java, Compiled Code) javax.naming.CommunicationException.
    Root exception is java.lang.ClassNotFoundException: class com.dat.abs.ejb.GenClassSessionEJBHomeImpl_WLStub
    previously not found at weblogic.rjvm.MsgAbbrev.read(MsgAbbrev.java, Compiled
    Code) at java.lang.Exception.<init>(Exception.java, Compiled Code) at java.lang.ClassNotFoundException.<init>(ClassNotFoundException.java,
    Compiled Code) at weblogic.rjvm.MsgAbbrev.read(MsgAbbrev.java, Compiled Code)
    at weblogic.socket.JVMAbbrevSocket.readMsgAbbrevs(JVMAbbrevSocket.java:505) at
    weblogic.rjvm.MsgAbbrevInputStream.prime(MsgAbbrevInputStream.java:134) at weblogic.rjvm.RJVMImpl.dispatch(RJVMImpl.java:700)
    at weblogic.rjvm.ConnectionManagerClient.handleRJVM(ConnectionManagerClient.java:34)
    at weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:630) at weblogic.socket.JVMAbbrevSocket.dispatch(JVMAbbrevSocket.java:393)
    at weblogic.socket.JVMSocketT3.dispatch(JVMSocketT3.java, Compiled Code) at weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java,
    Compiled Code) at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:23)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
    --------------- nested within: ------------------ weblogic.rmi.UnmarshalException:
    Unmarshalling return - with nested exception: [java.lang.ClassNotFoundException:
    class com.dat.abs.ejb.GenClassSessionEJBHomeImpl_WLStub previously not found]
    at weblogic.jndi.toolkit.BasicWLContext_WLStub.lookup(BasicWLContext_WLStub.java:256)
    at weblogic.jndi.toolkit.WLContextStub.lookup(WLContextStub.java, Compiled Code)
    at javax.naming.InitialContext.lookup(InitialContext.java:349) at com.dat.gen.GenEJBHelper.getHomeFor(GenEJBHelper.java:32)
    at abs.ABSGenClassInfo.getGenClassSessionHome(ABSGenClassInfo.java:743) at abs.ABSGenClassInfo.getGenClass(ABSGenClassInfo.java:266)
    at abs.ABSGenClassInfo.buildInheritanceStack(ABSGenClassInfo.java, Compiled Code)
    at abs.ABSGenClassInfo.<init>(ABSGenClassInfo.java:247) at abs.ABSGenClassInfo.getClassInfoFor(ABSGenClassInfo.java:217)
    at abs.ABSGenDirectory.retrieveGenClassPackage(ABSGenDirectory.java:110) at abs.ABSGenDirectory.doItWithContext(ABSGenDirectory.java,
    Compiled Code) at abs.ABSMainThread.verifyClassDependencies(ABSMainThread.java,
    Compiled Code) at abs.ABSMainThread.run(ABSMainThread.java, Compiled Code) java.lang.NullPointerException:
    at abs.ABSGenClassInfo.getGenClass(ABSGenClassInfo.java:266) at abs.ABSGenClassInfo.buildInheritanceStack(ABSGenClassInfo.java,
    Compiled Code) at abs.ABSGenClassInfo.<init>(ABSGenClassInfo.java:247) at abs.ABSGenClassInfo.getClassInfoFor(ABSGenClassInfo.java:217)
    at abs.ABSGenDirectory.retrieveGenClassPackage(ABSGenDirectory.java:110) at abs.ABSGenDirectory.doItWithContext(ABSGenDirectory.java,
    Compiled Code) at abs.ABSMainThread.verifyClassDependencies(ABSMainThread.java,
    Compiled Code) at abs.ABSMainThread.run(ABSMainThread.java, Compiled Code) javax.ejb.EJBException:
    at abs.ABSGenClassInfo.<init>(ABSGenClassInfo.java:253) at abs.ABSGenClassInfo.getClassInfoFor(ABSGenClassInfo.java:217)
    at abs.ABSGenDirectory.retrieveGenClassPackage(ABSGenDirectory.java:110) at abs.ABSGenDirectory.doItWithContext(ABSGenDirectory.java,
    Compiled Code) at abs.ABSMainThread.verifyClassDependencies(ABSMainThread.java,
    Compiled Code) at abs.ABSMainThread.run(ABSMainThread.java, Compiled Code)
    javax.ejb.EJBException: at abs.ABSGenClassInfo.<init>(ABSGenClassInfo.java:253)
    at abs.ABSGenClassInfo.getClassInfoFor(ABSGenClassInfo.java:217) at abs.ABSGenDirectory.retrieveGenClassPackage(ABSGenDirectory.java:110)
    at abs.ABSGenDirectory.doItWithContext(ABSGenDirectory.java, Compiled Code) at
    abs.ABSMainThread.verifyClassDependencies(ABSMainThread.java, Compiled Code) at
    abs.ABSMainThread.run(ABSMainThread.java, Compiled Code) --------------------------------------------------------
    the com.dat.abs.ejb.GenClassSessionEJB Class is correctly deployed.
    in the Weblogic.properties i use:
    weblogic.httpd.defaultWebApp=d:/nowui (and no documentRoot).
    If i use instead of weblogic.httpd.defaultWebApp : weblogic.httpd.webApp.pippo=d:/nowui
    ALL WORKS FINE!!!!
    i'm using Weblogic 510 with SP9 in a Windows 2000 Prof environment
    i think that is a bug of weblogic...
    Can someone help me ?
    thankx

    String cookieName =
              T3Services.getT3Services().config().getProperty("weblogic.httpd.session.cook
              ie.name");
              Cheers - Wei
              Kirby Drumm <[email protected]> wrote in message
              news:8j68e4$lqi$[email protected]..
              > Is there any way to determine the value of
              > weblogic.httpd.session.cookie.name from a java server page?
              >
              >
              >
              

  • About weblogic proxy call weblogic cluster's servlet error

              I use weblogic server 5.1, configruation tow weblogic cluster server and a weblogic
              web server, through weblogic web server received browser's http request only,
              weblogic cluster server do with jsp and servlet, now html&jsp is ok but servlet
              can not do with, if through weblogic cluster server do with jsp and servlet direct,
              it's ok.
              this is my weblogic.properties section:
              weblogic.httpd.register.*.html=\
              weblogic.servlet.internal.HttpClusterServlet
              weblogic.httpd.initArgs.*.html=\
              defaultServers=132.147.35.221:7001|132.147.35.222:7001
              weblogic.httpd.register.*.jsp=\
              weblogic.servlet.internal.HttpClusterServlet
              weblogic.httpd.initArgs.*.jsp=\
              defaultServers=132.147.35.221:7001|132.147.35.222:7001
              weblogic.httpd.register.*.servlet=\
              weblogic.servlet.internal.HttpClusterServlet
              weblogic.httpd.initArgs.*.servlet=\
              defaultServers=132.147.35.221:7001|132.147.35.222:7001
              these are weblogic server as proxy webserver errors:
              &#26143;&#26399;&#19968; &#20843;&#26376; 20 17:42:38 GMT+08:00 2001:<I> <ServletContext-General>
              helloWorld: init
              &#26143;&#26399;&#19968; &#20843;&#26376; 20 17:42:38 GMT+08:00 2001:<E> <ServletContext-General>
              Servlet failed with Exception
              java.lang.NullPointerException
              at weblogic.servlet.internal.HttpClusterServlet.init(HttpClusterServlet.java:99)
              at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:499)
              at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java,
              Compiled Code)
              at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:442)
              at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:200)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:115)
              at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:922)
              at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:886)
              at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:269)
              at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:380)
              at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:268)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
              tell me a right configuration please ,thanks.
              

    ############### Cluster Proxy Configuration ########################
              weblogic.httpd.register.cluster=weblogic.servlet.internal.HttpClusterServlet
              weblogic.httpd.initArgs.cluster=defaultServers=132.147.35.221:7001|132.147.3
              5.222:7001
              weblogic.httpd.defaultServlet=cluster
              weblogic.allow.execute.weblogic.clustler=everyone
              "chris" <[email protected]> wrote in message
              news:[email protected]...
              >
              > I use weblogic server 5.1, configruation tow weblogic cluster server and
              a weblogic
              > web server, through weblogic web server received browser's http request
              only,
              > weblogic cluster server do with jsp and servlet, now html&jsp is ok but
              servlet
              > can not do with, if through weblogic cluster server do with jsp and
              servlet direct,
              > it's ok.
              >
              > this is my weblogic.properties section:
              > -----------------------------------------------------------------
              > weblogic.httpd.register.*.html=\
              > weblogic.servlet.internal.HttpClusterServlet
              > weblogic.httpd.initArgs.*.html=\
              > defaultServers=132.147.35.221:7001|132.147.35.222:7001
              > weblogic.httpd.register.*.jsp=\
              > weblogic.servlet.internal.HttpClusterServlet
              > weblogic.httpd.initArgs.*.jsp=\
              > defaultServers=132.147.35.221:7001|132.147.35.222:7001
              > weblogic.httpd.register.*.servlet=\
              > weblogic.servlet.internal.HttpClusterServlet
              > weblogic.httpd.initArgs.*.servlet=\
              > defaultServers=132.147.35.221:7001|132.147.35.222:7001
              > -----------------------------------------------------------------
              >
              >
              >
              > these are weblogic server as proxy webserver errors:
              > -----------------------------------------------------------------
              > &#26143;&#26399;&#19968; &#20843;&#26376; 20 17:42:38 GMT+08:00 2001:<I>
              <ServletContext-General>
              > helloWorld: init
              > &#26143;&#26399;&#19968; &#20843;&#26376; 20 17:42:38 GMT+08:00 2001:<E>
              <ServletContext-General>
              > Servlet failed with Exception
              > java.lang.NullPointerException
              > at
              weblogic.servlet.internal.HttpClusterServlet.init(HttpClusterServlet.java:99
              > at
              weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java
              :499)
              > at
              weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.ja
              va,
              > Compiled Code)
              > at
              weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.jav
              a:442)
              > at
              weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:20
              0)
              > at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :115)
              > at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
              l.java:922)
              > at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
              l.java:886)
              > at
              weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
              Manager.java:269)
              > at
              weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:380)
              > at
              weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:268)
              > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
              Code)
              > -----------------------------------------------------------------
              >
              > tell me a right configuration please ,thanks.
              

  • Issues with interoperability between Weblogic 12 and Weblogic 8.1

    Hi, I'm experiencing issues trying to perform a JNDI lookup from Weblogic 12C to a Weblogic 8.1 Weblogic instance.  The error I am receiving is:
    javax.naming.CommunicationException [Root exception is weblogic.socket.UnrecoverableConnectException: [Login failed: 'Incompatible version: Incompatible versions - this server:8.1.5.0 client:12.1.1.0]]
    This same test when performed from a Weblogic 11G to Weblogic 8.1 instance works fine.  Can anyone enlighten me to whether this is a bug or if its no longer supported.  Also, if this is no longer a supported configuration is there any methods of achieving this without upgrading all of the applications and queues on the Weblogic 8.1 instance.
    Thanks
    Steve

    can you set the domain sensor logger to debug on the windows installation and post the log file results for the problematic case? For the default domain, this would be the default.collaxa.cube.sensor logger (accessible from the manage bpel domain link in the upper right hand corner of the console and then the logging subtab). The log messages appear in the orabpel/domains/<domain name>/logs/domain.log file.

  • Difference between prefer-application-packages in weblogic.xml and weblogic-application.xml?

    Hi!
    When deploying a WAR to WebLogic 10.3.5, what is the difference between the prefer-application-packages element in the files weblogic.xml and weblogic-application.xml?
    In my WARs WEB-INF/lib/ I have a JAR that contains classes that are already provided by the container (but older versions).
    If I do not use prefer-application-packages then my app gets the classes provided by the container.
    If I use prefer-application-packages in weblogic.xml then I get the classes from WAR/WEB-INF/lib which is expected.
    But if I use prefer-application-packages in weblogic-application.xml then I get the container versions. Why?
    Is there a difference between those two options?
    The exact data I use is:
    (foo.bar.* is the conflicting package; I add or remove the linex marked with XXXX)
    WEB-INF/weblogic.xml :
    <?xml version="1.0" encoding="UTF-8"?>
    <wls:weblogic-web-app
        xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-web-app"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.2/weblogic-web-app.xsd">
        <wls:container-descriptor>
            <wls:show-archived-real-path-enabled>true</wls:show-archived-real-path-enabled>
            <wls:prefer-application-packages> <!-- XXXX -->
                <wls:package-name>foo.bar.*</wls:package-name> <!-- XXXX -->
            </wls:prefer-application-packages> <!-- XXXX -->
            <wls:prefer-application-resources>
                <wls:resource-name>META-INF/services/some....</wls:resource-name>
                <wls:resource-name>META-INF/services/unrelated...</wls:resource-name>
                <wls:resource-name>META-INF/services/stuff...</wls:resource-name>
            </wls:prefer-application-resources>
        </wls:container-descriptor>
        <wls:jsp-descriptor>
            <wls:page-check-seconds>-1</wls:page-check-seconds>
            <wls:precompile>true</wls:precompile>
            <wls:precompile-continue>true</wls:precompile-continue>
            <wls:keepgenerated>true</wls:keepgenerated>
        </wls:jsp-descriptor>
        <wls:session-descriptor>
            <wls:persistent-store-type>replicated_if_clustered</wls:persistent-store-type>
        </wls:session-descriptor>
    </wls:weblogic-web-app>
    META-INF/weblogic-application.xml :
    <?xml version="1.0" encoding="UTF-8"?>
    <weblogic-application
        xmlns="http://xmlns.oracle.com/weblogic/weblogic-application"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/javaee_5.xsd http://xmlns.oracle.com/weblogic/weblogic-application http://xmlns.oracle.com/weblogic/weblogic-application/1.2/weblogic-application.xsd">
        <application-param>
            <param-name>webapp.encoding.default</param-name>
            <param-value>UTF-8</param-value>
        </application-param>
        <xml>
            <parser-factory>
                <saxparser-factory>
                    org.apache.xerces.jaxp.SAXParserFactoryImpl
                </saxparser-factory>
                <document-builder-factory>
                    org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
                </document-builder-factory>
                <transformer-factory>
                    org.apache.xalan.processor.TransformerFactoryImpl
                </transformer-factory>
            </parser-factory>
        </xml>
        <prefer-application-packages>
            <package-name>foo.bar.*</package-name> <!-- XXXX -->
            <package-name>javax.jws.*</package-name>
            <package-name>javax.xml.ws.*</package-name>
            <package-name>org.apache.cxf.*</package-name>
            <package-name>antlr.*</package-name>
            <package-name>org.xmlsoap.schemas.wsdl.*</package-name>
        </prefer-application-packages>
    </weblogic-application>

    weblogic-application.xml has no meaning in WARs, it is only used in EARs.

  • Ant task for creating a new weblogic domain in weblogic 10.3

    Hi,
    Can anybody help me in writing an ant task in build.xml for creating a new weblogic domain in weblogic 10.3, like as in <target name="new-domain">
         <echo message=""/>
         <echo message="Attempting to create new domain:"/>
         <delete dir="C:\bea\user_projects\domains" />
         <mkdir dir="C:\bea\user_projects\domains"/>
         <wlserver dir="C:\bea\user_projects\domains" domainname="mydomain"
         host="127.0.0.1" port="7001"
         generateConfig="true" servername="AdminServer" username="weblogic"
         password="weblogic" action="start"/>
         </target>
    Please suggest me adding something to the above in order to create the domain successfully.

    Hi,
    Can anybody help me in writing an ant task in build.xml for creating a new weblogic domain in weblogic 10.3, like as in <target name="new-domain">
         <echo message=""/>
         <echo message="Attempting to create new domain:"/>
         <delete dir="C:\bea\user_projects\domains" />
         <mkdir dir="C:\bea\user_projects\domains"/>
         <wlserver dir="C:\bea\user_projects\domains" domainname="mydomain"
         host="127.0.0.1" port="7001"
         generateConfig="true" servername="AdminServer" username="weblogic"
         password="weblogic" action="start"/>
         </target>
    Please suggest me adding something to the above in order to create the domain successfully.

  • SimpleCallbackHandler no longer in weblogic.jar for WebLogic 10.3g

    I was using the weblogic.security.SimpleCallbackHandler in WebLogic 9.2 to authenticate users. I looked at the documentation for 10.3g and it still mentions this class is available, however it is not in the weblogic.jar file nor in the javadocs. Here is the URL where I was looking. http://e-docs.bea.com/wls/docs103/security/thin_client.html#wp1035574.
    The only CallbackHandler in the 10.3g release seems to be the weblogic.security.URLCallbackHandler class. I tried replacing the SimpleCallbackHandler with this class. When I put the weblogic.jar in my classpath and build, I get the following error.
    class file for weblogic.security.acl.internal.AuthenticatedSubject not found
    ServletAuthentication.runAs(mySubject, request);
    Indeed, this class is not in the weblogic.jar file. Both SimpleCallbackHandler and AuthenticatedSubject were in the weblogic.jar for WebLogic 9.2
    <code>
    import javax.security.auth.Subject;
    import weblogic.security.SimpleCallbackHandler;
    import weblogic.security.services.Authentication;
    public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
    LoginForm loginForm = (LoginForm) form;
    Subject subject = Authentication.login(new SimpleCallbackHandler(loginForm.getUsername(), loginForm.getPassword().getBytes()));
    weblogic.servlet.security.ServletAuthentication.runAs(subject, request);
    <./code>
    Why were these removed and not deprecated???

    SimpleCallbackHandler does not exist in weblogic.jar. Used the following code to get around this. WebLogic documentation offers this as an alternative to using SimpleCallbackHandler.
    Subject subject = Authentication.login(new URLCallbackHandler(uid, pwd));
    weblogic.servlet.security.ServletAuthentication.runAs(subject, request);
    This code agrees with the snippet provided in WebLogic documentation
    Project does not compile with the following error:
    Project: C:\apps\11g\PrismMainApp\ViewController\ViewController.jpr
    C:\apps\11g\PrismMainApp\ViewController\src\adr\prismmain\view\managed\PrismLogin.java
    Error(70,28): cannot access weblogic.security.acl.internal.AuthenticatedSubject

  • Need Weblogic.jar from Weblogic server 9.2

    Hi All,
    I need weblogic.jar from Weblogic server 9.2.
    but i dont want to download & install Weblogic Server 9.2.
    Is thereany way i can get only the .jar file?
    Thanks & Regards,
    BOB

    We are having this problem as well. I e-mailed BEA support, but they just said we needed to include the jar in the EAR (this is all supposed to be assembled automatically by the workshop).
    For us the issue seems to be the files not being put into the EAR automatically as they are with other types of projects. If we have to manually copy/jar up our class files then we might as well just use notepad and some batch files and skip BEA altogether.
    Edited by jmckitt at 09/18/2007 11:04 AM
    Edited by jmckitt at 09/18/2007 11:05 AM

  • Weblogic singleto with weblogic timer

    Pls give some sample for using both weblogic singleton and weblogic timer.

    weblogic sibgleton should invoke weblogic timer service?

  • JSP bug or JSP container bug?

    This the following a JSP bug or JSP container bug?
    When I put:
    <jsp:declaration>
         void method() {
    </jsp:declaration>in a JSP page it runs fine, but when I put:
    <jsp:declaration>
         void method() {
              for(int idx=0; idx<5; idx++) {
    </jsp:declaration>in a JSP page I get:
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: /doc/c11/XmlSyntaxDeclarations.jsp(54,17) Unterminated <jsp:declaration> tag
         org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
         org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
         org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:134)
         org.apache.jasper.compiler.Parser.parseXMLDeclaration(Parser.java:695)
         org.apache.jasper.compiler.Parser.parseElements(Parser.java:1545)
         org.apache.jasper.compiler.Parser.parse(Parser.java:126)
         org.apache.jasper.compiler.ParserController.doParse(ParserController.java:220)
         org.apache.jasper.compiler.ParserController.parse(ParserController.java:101)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:203)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:470)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.0.27 logs.
    Apache Tomcat/5.0.27

    What gives? I'm having the same problem with a scriptlet!
    This works:
    <jsp:scriptlet>
         cntInt++;
         out.println("cntInt = "+cntInt);
    </jsp:scriptlet>but this doesn't works:
    <jsp:scriptlet>
         cntInt++;
         out.println("cntInt = "+cntInt);
         for(int idx=0; idx<cntInt; idx++) {
    </jsp:scriptlet>...it can't seem to handle for loop? Does anyone know why?

  • Weblogic Server vs Weblogic Enterprise

    What is the difference in security functionality between Weblogic Server and
    Weblogic Enterprise? Can I use Weblogic Server in conjunction with a single
    user sign on to secure my EJB objects?
    thanks
    scott

    I suggest taking a look at our external website: www.BEA.com. A summary of
    the WLS security is located there -- and you can also look at the product
    WLE to check out the security functionality there.
    Thanks,
    Michael
    Michael Girdley
    BEA Systems Inc
    "scott mcfadden" <[email protected]> wrote in message
    news:[email protected]..
    What is the difference in security functionality between Weblogic Serverand
    Weblogic Enterprise? Can I use Weblogic Server in conjunction with asingle
    user sign on to secure my EJB objects?
    thanks
    scott

  • Differences between Weblogic Server and Weblogic Server Suite?

    Hi
    What is the differences between Weblogic Server and Weblogic Server Suite, beside licens costs?
    Regards
    /Martin

    WebLogic server standard edition, you get the WebLogic with no clustering.
    Clustering is available in the WebLogic Enterprise Edition.
    The WebLogic Suite also gives you Coherence and JRockit real-time
    A desciption of the various products can be found here: http://www.oracle.com/us/products/middleware/application-server/index.html

  • Differences Between Weblogic 10 and Weblogic 11g

    Hi,
    I like to know the differnces b/w Weblogic 10 and Weblogic 11g, can someone provide those information.
    your help will be highly appriciated!!
    Regards,
    Sarath

    Here is a list that I understand as critical/major differences:
    1. JDK has changed from 1.5 to 1.6 (WLS10.0 uses JDK 1.5 and WLS10.3 uses JDK 1.6)
    2. Console has been improved with great improvements in performance and when it is deployed
    3. WLS10.3 is fully JEE5.0 EJB compliant while WLS10.0 is only JEE5.0 Entity bean compliant
    4. New deployment features like fast-swap and on-demand
    5. WLDF enhancements
    6. ASML2.0 support was introduced in 10.3 in terms of Security enhancements
    7. JDBC4.0 supportability
    AND a lot more (but the above are more significant to me)
    (This is not a comprehensive list of all the differences)
    Arun

  • JSP Failed to Compile in BEA WebLogic!

    Hi All,
              I am getting the following error message while executing the JSP pages in WebLogic Server 8.1 SP5.
              Explicit cast needed to convert java.lang.Throwable to java.lang.Exception.
              The JSP page was working fine in JRun application Server. But it is throwing this error message in BEA WebLogic Server 8.1 SP5.
              Can someone from BEA team help to resolve this issue. Looks like it is a bug in BEA WebLogic Server?
              Thanks in Advance,
              Raghuram

    You'd have to provide more detail to have a chance of getting a reasonable response to this. Can you show an excerpt of the JSP page that is getting the error? If you really do have a scriptlet that assigns a Throwable to an Exception object, then the compile error is understandable.

  • JSP output does not change on Weblogic 5.1 / Visual Age 3.5

    I'm making developmen on Weblogic 5.1 and Visual Age 3.5.
              I change a JSP and when I reload it in my browser, I can see that the
              page is actually being recompiled, and if there are errors in the
              page, error messages are being displayed.
              However, if the page compiles without the error, it displays the
              output of the previous version of the page. No matter what I do, the
              page does not reflect the changes. The only solution is restarting
              the server.
              What might be the cause of this problem?
              Thanks,
              Sadik
              

    I'm making developmen on Weblogic 5.1 and Visual Age 3.5.
              I change a JSP and when I reload it in my browser, I can see that the
              page is actually being recompiled, and if there are errors in the
              page, error messages are being displayed.
              However, if the page compiles without the error, it displays the
              output of the previous version of the page. No matter what I do, the
              page does not reflect the changes. The only solution is restarting
              the server.
              What might be the cause of this problem?
              Thanks,
              Sadik
              

Maybe you are looking for

  • Rebuild Index VS Drop and Rebuild?

    Hey all, I am currently redesigning a weekly process (weekly coz we pre determined the rate of index fragmentation) for specific indexes that get massive updates. The old process has proved to be able to fix and maintain reports performance. In this

  • Can I update my old macbook to a newer OS

    I have the the older black macbook. I am currently running Mac OS X version 10.5.8 and I was wondering if it would be poosible to update to the newest OS X. thank you for any help

  • I want to know when apple Ipod 5g is coming out, and please the specific time!

    People keep telling me, "it's coming out in october!" can you at least tell me the week? Like this week, or next week, and yes, i have checked hot news.

  • Effects of Syncing Between Different Macs?

    Hi. <background> My iPhone is currently sync'd to an iBook (500 MHz, dual USB) at my house - Mail, Safari, iCal, Address Book, the works. That iBook only has 1GB remaining on the hard drive which results in an iTunes Library consisting of only 1 albu

  • How to export & import interface type data object to memory

    Hi experts, My greetings to all. we have came across a situation where we need to pass interface type data object to memory and import same from memory. DATA context TYPE REF TO if_timecontext. its not possible with regular export statement. is their