A problem with servlets with  WebLogic 4.5.1 SP11

          Hello,
          We have developed a client that connects to servlets in WebLogic 4.5.1. Some of the servlets use sessions to store data, and they receive some parameters from the client to retrieve information from a database.
          When we use WebLogic 4.5.1, everything works fine. However, when we upgrade it to Service Pack 11, we find a problem. If we make a servlet that receives some parameters, but it does no use sessions, everything is correct. If we make a servlet that does not receive any parameter, and we use sessions, we find no problem either. But if we make a servlet that receives parameters and uses sessions within the doPost() method, there is an exception when we call the method Request.getSession(true).
          I would thank any help about this point, since I'm not sure if this is the result of a bug, or if there is a new parameter that we have to set in the file weblogic.properties, or any other reason.
          The code of our servlet is as simple as follows:
          public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException {
               ObjectInputStream in = new ObjectInputStream(request.getInputStream());
               String arg = null;
               String arg2 = null;
               String arg3 = null;
               try{
                    arg = (String)in.readObject();
                    arg2 = (String)in.readObject();
                    arg3 = (String)in.readObject();
               }catch(Exception e){
               // Get the session and the counter param attribute
               HttpSession session = request.getSession(true);
          // WE GET THE EXCEPTION AT THIS POINT.
               Integer ival = (Integer) session.getValue("simplesession.counter");
               if (ival == null)
                    // Initialize the counter
                    ival = new Integer(1);
               else
                    // Increment the counter
                    ival = new Integer(ival.intValue() + 1);
               // Set the new attribute value in the session
               session.putValue("simplesession.counter", ival);
               // Output data
               ObjectOutputStream out = new ObjectOutputStream(response.getOutputStream());
               out.writeObject(ival);
               out.close();
          On the other hand, the client invokes the serlvets using the following code:
          public int servletClient(String usuario,String password) {
               int numero = 0;     
               try{
                    // Input parameters
                    Serializable[] objs = {"login",usuario, password};
                    // Invokes the servlet
                    ObjectInputStream in = ServletWriter.postObjects(urlServlet, objs); // SEE BELOW...
                    // Get the results
                    numero = ((Integer)in.readObject()).intValue();
                    in.close();
               }catch(Exception e){
                    e.printStackTrace();
          static public ObjectInputStream postObjects(URL servlet, Serializable objs[]) throws Exception
                    URLConnection con = servlet.openConnection();
                    con.setDoInput(true);
                    con.setDoOutput(true);
                    con.setUseCaches(false);
                    con.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
                    // Write the arguments as post data
                    ObjectOutputStream out = new ObjectOutputStream(con.getOutputStream());
                    int numObjects = objs.length;
                    for (int x = 0; x < numObjects; x++) {
                         out.writeObject(objs[x]);
                    out.flush();
                    out.close();
                    return new ObjectInputStream( con.getInputStream() );
          // THE CLIENT CODE FINISHES HERE
          The exception we get is the following:
          Mon Feb 21 13:47:41 GMT-02:00 2000:<E> <ServletContext-Servlets> Servlet failed with RuntimeException
          Mon Feb 21 13:47:41 GMT-02:00 2000:<E> <ServletContext-Servlets> java.io.IOException: Unexpected end of POST data. Read 0 bytes. Content-length = 20
          at java.lang.Throwable.<init>(Compiled Code)
          at java.lang.Exception.<init>(Compiled Code)
          at java.io.IOException.<init>(Compiled Code)
          at weblogic.servlet.internal.ServletRequestImpl.mergePostParams(Compiled Code)
          at weblogic.servlet.internal.ServletRequestImpl.parseQueryParams(Compiled Code)
          at weblogic.servlet.internal.ServletRequestImpl.getParameter(Compiled Code)
          at weblogic.servlet.internal.ServletRequestImpl.initSessionInfo(Compiled Code)
          at weblogic.servlet.internal.ServletRequestImpl.getSession(Compiled Code)
          at SGBA.servlets.HelloWorldServlet.doPost(Compiled Code)
          at javax.servlet.http.HttpServlet.service(Compiled Code)
          at javax.servlet.http.HttpServlet.service(Compiled Code)
          at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Compiled Code)
          at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled Code)
          at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled Code)
          at weblogic.socket.MuxableSocketHTTP.invokeServlet(Compiled Code)
          at weblogic.socket.MuxableSocketHTTP.execute(Compiled Code)
          at weblogic.t3.srvr.ExecuteThread.run(Compiled Code)
          --------------- nested within: ------------------
          weblogic.utils.NestedRuntimeException: cannot parse POST parameters of request /HelloWorldServlet
          - with nested exception:
          [java.io.IOException: Unexpected end of POST data. Read 0 bytes. Content-length = 20]
          at java.lang.Throwable.<init>(Compiled Code)
          at java.lang.Exception.<init>(Compiled Code)
          at java.lang.RuntimeException.<init>(Compiled Code)
          at weblogic.utils.NestedRuntimeException.<init>(Compiled Code)
          at weblogic.servlet.internal.ServletRequestImpl.mergePostParams(Compiled Code)
          at weblogic.servlet.internal.ServletRequestImpl.parseQueryParams(Compiled Code)
          at weblogic.servlet.internal.ServletRequestImpl.getParameter(Compiled Code)
          at weblogic.servlet.internal.ServletRequestImpl.initSessionInfo(Compiled Code)
          at weblogic.servlet.internal.ServletRequestImpl.getSession(Compiled Code)
          at SGBA.servlets.HelloWorldServlet.doPost(Compiled Code)
          at javax.servlet.http.HttpServlet.service(Compiled Code)
          at javax.servlet.http.HttpServlet.service(Compiled Code)
          at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Compiled Code)
          at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled Code)
          at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled Code)
          at weblogic.socket.MuxableSocketHTTP.invokeServlet(Compiled Code)
          at weblogic.socket.MuxableSocketHTTP.execute(Compiled Code)
          at weblogic.t3.srvr.ExecuteThread.run(Compiled Code)
          I hope all this information can help you making an idea of our problem. We will be looking forward to receiving your answer.
          Thanks in advance,
          Frankie Carrero.
          

          Hello,
          We have developed a client that connects to servlets in WebLogic 4.5.1. Some of the servlets use sessions to store data, and they receive some parameters from the client to retrieve information from a database.
          When we use WebLogic 4.5.1, everything works fine. However, when we upgrade it to Service Pack 11, we find a problem. If we make a servlet that receives some parameters, but it does no use sessions, everything is correct. If we make a servlet that does not receive any parameter, and we use sessions, we find no problem either. But if we make a servlet that receives parameters and uses sessions within the doPost() method, there is an exception when we call the method Request.getSession(true).
          I would thank any help about this point, since I'm not sure if this is the result of a bug, or if there is a new parameter that we have to set in the file weblogic.properties, or any other reason.
          The code of our servlet is as simple as follows:
          public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException {
               ObjectInputStream in = new ObjectInputStream(request.getInputStream());
               String arg = null;
               String arg2 = null;
               String arg3 = null;
               try{
                    arg = (String)in.readObject();
                    arg2 = (String)in.readObject();
                    arg3 = (String)in.readObject();
               }catch(Exception e){
               // Get the session and the counter param attribute
               HttpSession session = request.getSession(true);
          // WE GET THE EXCEPTION AT THIS POINT.
               Integer ival = (Integer) session.getValue("simplesession.counter");
               if (ival == null)
                    // Initialize the counter
                    ival = new Integer(1);
               else
                    // Increment the counter
                    ival = new Integer(ival.intValue() + 1);
               // Set the new attribute value in the session
               session.putValue("simplesession.counter", ival);
               // Output data
               ObjectOutputStream out = new ObjectOutputStream(response.getOutputStream());
               out.writeObject(ival);
               out.close();
          On the other hand, the client invokes the serlvets using the following code:
          public int servletClient(String usuario,String password) {
               int numero = 0;     
               try{
                    // Input parameters
                    Serializable[] objs = {"login",usuario, password};
                    // Invokes the servlet
                    ObjectInputStream in = ServletWriter.postObjects(urlServlet, objs); // SEE BELOW...
                    // Get the results
                    numero = ((Integer)in.readObject()).intValue();
                    in.close();
               }catch(Exception e){
                    e.printStackTrace();
          static public ObjectInputStream postObjects(URL servlet, Serializable objs[]) throws Exception
                    URLConnection con = servlet.openConnection();
                    con.setDoInput(true);
                    con.setDoOutput(true);
                    con.setUseCaches(false);
                    con.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
                    // Write the arguments as post data
                    ObjectOutputStream out = new ObjectOutputStream(con.getOutputStream());
                    int numObjects = objs.length;
                    for (int x = 0; x < numObjects; x++) {
                         out.writeObject(objs[x]);
                    out.flush();
                    out.close();
                    return new ObjectInputStream( con.getInputStream() );
          // THE CLIENT CODE FINISHES HERE
          The exception we get is the following:
          Mon Feb 21 13:47:41 GMT-02:00 2000:<E> <ServletContext-Servlets> Servlet failed with RuntimeException
          Mon Feb 21 13:47:41 GMT-02:00 2000:<E> <ServletContext-Servlets> java.io.IOException: Unexpected end of POST data. Read 0 bytes. Content-length = 20
          at java.lang.Throwable.<init>(Compiled Code)
          at java.lang.Exception.<init>(Compiled Code)
          at java.io.IOException.<init>(Compiled Code)
          at weblogic.servlet.internal.ServletRequestImpl.mergePostParams(Compiled Code)
          at weblogic.servlet.internal.ServletRequestImpl.parseQueryParams(Compiled Code)
          at weblogic.servlet.internal.ServletRequestImpl.getParameter(Compiled Code)
          at weblogic.servlet.internal.ServletRequestImpl.initSessionInfo(Compiled Code)
          at weblogic.servlet.internal.ServletRequestImpl.getSession(Compiled Code)
          at SGBA.servlets.HelloWorldServlet.doPost(Compiled Code)
          at javax.servlet.http.HttpServlet.service(Compiled Code)
          at javax.servlet.http.HttpServlet.service(Compiled Code)
          at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Compiled Code)
          at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled Code)
          at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled Code)
          at weblogic.socket.MuxableSocketHTTP.invokeServlet(Compiled Code)
          at weblogic.socket.MuxableSocketHTTP.execute(Compiled Code)
          at weblogic.t3.srvr.ExecuteThread.run(Compiled Code)
          --------------- nested within: ------------------
          weblogic.utils.NestedRuntimeException: cannot parse POST parameters of request /HelloWorldServlet
          - with nested exception:
          [java.io.IOException: Unexpected end of POST data. Read 0 bytes. Content-length = 20]
          at java.lang.Throwable.<init>(Compiled Code)
          at java.lang.Exception.<init>(Compiled Code)
          at java.lang.RuntimeException.<init>(Compiled Code)
          at weblogic.utils.NestedRuntimeException.<init>(Compiled Code)
          at weblogic.servlet.internal.ServletRequestImpl.mergePostParams(Compiled Code)
          at weblogic.servlet.internal.ServletRequestImpl.parseQueryParams(Compiled Code)
          at weblogic.servlet.internal.ServletRequestImpl.getParameter(Compiled Code)
          at weblogic.servlet.internal.ServletRequestImpl.initSessionInfo(Compiled Code)
          at weblogic.servlet.internal.ServletRequestImpl.getSession(Compiled Code)
          at SGBA.servlets.HelloWorldServlet.doPost(Compiled Code)
          at javax.servlet.http.HttpServlet.service(Compiled Code)
          at javax.servlet.http.HttpServlet.service(Compiled Code)
          at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Compiled Code)
          at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled Code)
          at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled Code)
          at weblogic.socket.MuxableSocketHTTP.invokeServlet(Compiled Code)
          at weblogic.socket.MuxableSocketHTTP.execute(Compiled Code)
          at weblogic.t3.srvr.ExecuteThread.run(Compiled Code)
          I hope all this information can help you making an idea of our problem. We will be looking forward to receiving your answer.
          Thanks in advance,
          Frankie Carrero.
          

Similar Messages

  • Problem accessing Servlet  in Weblogic 6.0

              Using the console I verified that the servlet is available on examplesWebApp. When I try to access it as http:127.0.0.1:localhost/examplesWebApp/myServlet, I get the following error:
              Error 404--Not Found
              From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
              10.4.5 404 Not Found
              The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
              If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.
              Does anyone have any suggestions.
              Thanks
              

    From your servlet-class declaration, it seems that your servlet should be in
              (WEB-INF\)classes\examples\servlets, not (WEB-INF\)classes\servlets.
              "Varughese John" <[email protected]> wrote in message
              news:[email protected]...
              >
              > The directory structure is as follows
              > wlserver6.0\config\examples\applications\examplesWebApp\Web-inf\
              >
              > The contents of the web.xml is:
              > <servlet>
              > <servlet-name>myServlet</servlet-name>
              > <servlet-class>examples.servlets.myServlet</servlet- class>
              > </servlet>
              > <servlet-mapping>
              > <servlet-name>myServlet</servlet-name>
              > <url-pattern>/myServlet/*</url-pattern>
              > </servlet-mapping>
              >
              > myServlet.class is placed in the classes\servlets directory.
              >
              > I still get the following error:
              > Error 404--Not Found
              > From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
              > 10.4.5 404 Not Found
              > The server has not found anything matching the Request-URI. No indication
              is given of whether the condition is temporary or permanent.
              >
              > If the server does not wish to make this information available to the
              client, the status code 403 (Forbidden) can be used instead. The 410 (Gone)
              status code SHOULD be used if the server knows, through some internally
              configurable mechanism, that an old resource is permanently unavailable and
              has no forwarding address.
              >
              > Shold I manipulate the properties of the Internet Explorer.
              >
              > Thanks for the help.
              >
              >
              > Dana Jeffries <[email protected]> wrote:
              > >in the web.xml file you should have a component entry for the servlet
              class and a mapping entry.
              > >
              > >the servlet has to be in the correct package below WEB-INF/classes
              > >
              > >Varughese John wrote:
              > >
              > >> I need to update the url that I mentioned in the previous thread. I
              meant http:127.0.0.1:7001/examplesWebApp/myServlet.
              > >> I had used the deployment descriptor to register the servlet.
              > >> The error mentioned in the previos thread remains.
              > >> Thanks in advance for the help.
              > >>
              > >> "Varughese John" <[email protected]> wrote:
              > >> >
              > >> >Using the console I verified that the servlet is available on
              examplesWebApp. When I try to access it as
              http:127.0.0.1:localhost/examplesWebApp/myServlet, I get the following
              error:
              > >> >
              > >> >Error 404--Not Found
              > >> >From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
              > >> >10.4.5 404 Not Found
              > >> >The server has not found anything matching the Request-URI. No
              indication is given of whether the condition is temporary or permanent.
              > >> >
              > >> >If the server does not wish to make this information available to the
              client, the status code 403 (Forbidden) can be used instead. The 410 (Gone)
              status code SHOULD be used if the server knows, through some internally
              configurable mechanism, that an old resource is permanently unavailable and
              has no forwarding address.
              > >> >
              > >> >Does anyone have any suggestions.
              > >> >
              > >> >Thanks
              > >> >
              > >> >
              > >
              >
              

  • Frames with Servlets. Techniques?

    I built some frames with servlets with Jdevelopper
    like HOTEL EJB application from the Technet.
    Working in a frameset, after getting the parameter from fhe
    first frameset, i want to generate a new page in an other
    frameset or another frame ( from left to right for example).
    I don't know how to make it.
    Does anybody has an idea?
    Thanks
    null

    Chris Tournier (guest) wrote:
    : I built some frames with servlets with Jdevelopper
    : like HOTEL EJB application from the Technet.
    : Working in a frameset, after getting the parameter from fhe
    : first frameset, i want to generate a new page in an other
    : frameset or another frame ( from left to right for example).
    : I don't know how to make it.
    : Does anybody has an idea?
    : Thanks
    I had the same doubts as you.
    In the main page (FRAMESET) you should set the name of
    the frames , for example "LPAGE" for left frame and
    "MAIN" for right frame.
    In the hyperlinks of left page you must put the
    reserved word "TARGET" with the destination frame name :
    <A> HREF="www.dummy.com" TARGET="MAIN" dummy page </A>
    This should resolve your problem.
    Eduardo Murai
    [email protected]
    Discover Technology
    null

  • Emergency problem with HttpSession on Weblogic 4.5.1 Service Pack 9

    Hi folks,
              We have such configuration:
              2 WLS instances running as front-end of the system. They basically have
              HttpClusterServlet enabled and act as proxies routing the traffic between
              clients and other WLS servers on back-end.
              2 WLS instances which heavily use servlets with HttpSession and form
              WebLogic cluster.
              DNS round-robining takes care of routing all requests to proxy servers.
              In order to have very good failover we decided to have two proxies, so if
              any of them fails another one will keep routing the traffic.
              The problem is that if one of the proxy servers goes down, then location of
              some HttpSession objects can not be resolved by second running proxy server.
              As far as I know HttpClusterServlet keeps track of all HttpSession object
              created by servlets, their locations (primary & secondary server) and
              basically takes care of redirecting each http request within the same
              session to appropriate server in cluster. I thought that if we have to WLS
              proxies then this mapping about each session is stored in both proxies. It
              looks that it is not the case. It seems to us, that particular HttpSession
              object is managed all time by single proxy server and second one does not
              know anything about such session. The result is that when one the proxy goes
              down, then servlet which calls getHttpSession( true ) ends up with brand new
              session created by another proxy.
              Can it be avoided, so each proxy server knows about all HttpSession objects
              and can still route the traffic if another one is down? Is it possible in
              WebLogic?Are we missing something? Maybe this proxy servers should also form
              another cluster, but then we still need to define entry point? If NOT, we
              need to have official statement.
              It is urgent !!!
              Waldek
              

    Waldek Kozaczuk wrote:
              > Hi folks,
              >
              > We have such configuration:
              >
              > 2 WLS instances running as front-end of the system. They basically have
              > HttpClusterServlet enabled and act as proxies routing the traffic between
              > clients and other WLS servers on back-end.
              Are these configurations identical? I believe both of them are active.
              > 2 WLS instances which heavily use servlets with HttpSession and form
              > WebLogic cluster.
              >
              > DNS round-robining takes care of routing all requests to proxy servers.
              >
              > In order to have very good failover we decided to have two proxies, so if
              > any of them fails another one will keep routing the traffic.
              >
              > The problem is that if one of the proxy servers goes down, then location of
              > some HttpSession objects can not be resolved by second running proxy server.
              Who is redirecting the requests to these proxy servers. Is it possible that
              they dropped the cookie, when the first proxy failed.
              > As far as I know HttpClusterServlet keeps track of all HttpSession object
              > created by servlets, their locations (primary & secondary server) and
              > basically takes care of redirecting each http request within the same
              > session to appropriate server in cluster. I thought that if we have to WLS
              > proxies then this mapping about each session is stored in both proxies. It
              > looks that it is not the case. It seems to us, that particular HttpSession
              > object is managed all time by single proxy server and second one does not
              > know anything about such session. The result is that when one the proxy goes
              > down, then servlet which calls getHttpSession( true ) ends up with brand new
              > session created by another proxy.
              >
              > Can it be avoided, so each proxy server knows about all HttpSession objects
              > and can still route the traffic if another one is down?
              > Is it possible in WebLogic?
              Yes
              > Are we missing something? Maybe this proxy servers should also form
              > another cluster,
              No.
              > but then we still need to define entry point? If NOT, we
              > need to have official statement.
              >
              > It is urgent !!!
              >
              > Waldek
              To help us diagonise the problem you could send us the log files on all the
              servers with weblogic.debug.httpd=true.
              Thanks
              - Prasad
              

  • Problem with security in Weblogic 8.1

    Hi, my name is Jesús Chávez Reyes and it is my first time in this forum.
    My problem is related with security in WL 8.1 because I am new in this matter. My problem is :
    I work in change completely the security of an enterprise application that is deployed in WebLogic 8.1 and your security is a based in a RDBMS Custom Realm in Compatibility Security.
    This application is composed by 18 EJB and 4 web applications.
    The objective of this change is:
    1.- Use a external system for authentication (though a web service).
    2.- If is possible: unbind security of WL for in a future deploy the application in other Server(Jboss for example).
    I'm trying to implement security with Acegi and Spring in a one of the four web applications. I deleted all it has to do with security in deploy descriptors and deleted the realm.
    At this point I can login in , using the Web Service of the external application, without difficulty.
    The problem arises when the application makes an instance of the EJB's. This is the way how the application makes the instances of the EJB:
    InitialContext context = new InitialContext( null );
    Object   = context.lookup(name); // name=GroupSessionFacade   (JNDI Name of EJB)
    EJBHome home = (EJBHome) objref;
    +...+
    GroupSessionFacadeHome home = (GroupSessionFacadeHome) objref;
    groupFacade = home.create();
    In this point GroupSessionFacadeHome home = (GroupSessionFacadeHome) objref the application throws ClassCastException. This happens with all EJB.
    The application work fine before of to use Acegi and remove all it has to do with security. I inspect the Object " objref " before and after and this happen:
    BEFORE
    Class Name: control.ejb.GroupSessionFacadek1696tHomeImpl
    SuperClass : weblogic.ejb20.internal.StatelessEJBHome
    Implement : weblogic.ejb20.internal.StatelessEJBHome , control.ejb.GroupSessionFacadeHome
    AFTER
    Class Name: control.ejb.GroupSessionFacadek1696tHomeImpl
    SuperClass : weblogic.ejb20.internal.StatelessEJBHome
    Implement : weblogic.ejb20.internal.StatelessEJBHome
    Here The object no implements the InterfaceHome "control.ejb.GroupSessionFacadeHome" !!!!!!!!!, this is the cause of ClassCastException.
    What is the problem? Is it a security problem? and if so what do I need to remove or add in the application and has no dependence on anything for the security of Web Logic?
    The deploy descriptors are:
    IN THE WEB APPLICATION
    web.xml
    +<ejb-ref>+
    +<description>Reference to the GroupSessionFacade</description>+
    +<ejb-ref-name>ejb/GroupSessionFacade</ejb-ref-name>+
    +<ejb-ref-type>Session</ejb-ref-type>+
    +<home>control.ejb.GroupSessionFacadeHome</home>+
    +<remote>control.ejb.GroupSessionFacade</remote>+
    +</ejb-ref>+
    IN THE EJB
    ejb-jar.xml
    +<?xml version="1.0"?>+
    +<!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN' 'http://java.sun.com/dtd/ejb-jar20.dtd'>+
    +<ejb-jar>+
    +<enterprise-beans>+
    +<session>+
    +<description>GroupSessionFacade</description>+
    +<ejb-name>GroupSessionFacade</ejb-name>+
    +<home>control.ejb.GroupSessionFacadeHome</home>+
    +<remote>control.ejb.GroupSessionFacade</remote>+
    +<ejb-class>control.ejb.GroupSessionFacadeEJB</ejb-class>+
    +<session-type>Stateless</session-type>+
    +<transaction-type>Container</transaction-type>+
    +<ejb-ref>+
    +<ejb-ref-name>ejb/UserManager</ejb-ref-name>+
    +<ejb-ref-type>Session</ejb-ref-type>+
    +<home>control.ejb.UserManagerHome</home>+
    +<remote>control.ejb.UserManager</remote>+
    +</ejb-ref>+
    +<resource-ref>+
    +....+
    +     </enterprise-beans>+
    +<assembly-descriptor>+
    +<container-transaction>+
    +<method>+
    +<ejb-name>GroupSessionFacade</ejb-name>+
    +<method-name>*</method-name>+
    +</method>+
    +<trans-attribute>NotSupported</trans-attribute>+
    +</container-transaction>+
    +</assembly-descriptor>+
    +</ejb-jar>+
    weblogic-ejb-jar.xml
    +<?xml version="1.0"?>+
    +<!DOCTYPE weblogic-ejb-jar PUBLIC+
    +"-//BEA Systems, Inc.//DTD WebLogic 8.1.0 EJB//EN"+
    +"http://www.bea.com/servers/wls810/dtd/weblogic-ejb-jar.dtd">+
    +<weblogic-ejb-jar>+
    +<weblogic-enterprise-bean>+
    +<ejb-name>GroupSessionFacade</ejb-name>+
    +<transaction-descriptor>+
    +<trans-timeout-seconds>600</trans-timeout-seconds>+
    +</transaction-descriptor>+
    +...+
    +<enable-call-by-reference>True</enable-call-by-reference>+
    +<jndi-name>GroupSessionFacade</jndi-name>+
    +</weblogic-enterprise-bean>+
    +</weblogic-ejb-jar>+

    Hi,
    This is the forum to discuss questions and feedback for Microsoft Visio, I'll move your question to the SSIS forum
    http://social.technet.microsoft.com/Forums/sqlserver/en-US/home?forum=sqlintegrationservices
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    George Zhao
    TechNet Community Support

  • Caching problem of javascript with servlet

    Hi guys
    There is a problem of caching with the our project. This project contains two servlets first is getAdServlet and second is richMediaServlet. getadservlet is called thru <script src=""> following is the code:
    <script LANGUAGE="JAVASCRIPT" src="http://192.168.1.6:8080/advert_java/servlet/GetAdServlet?region=1&zone=1&type=nossi&cachevar=yes">
    </script>
    getadservlet returns the javascript statments. These javascript statments are able to create an <iframe>. Now cotents of the iframe are supplied by the second servlet ie richMediaServlet. This servlet is called like
    iframeURL = fullHttpDir+"/servlet/RichMediaServlet?";
    iframeURL += "bannerCode="+ RNBanner;
    iframeURL += "&cachebust="+ cachebust + refresh+"&getAd=y";
    iframeURL += "&hheight="+hheight+"&wwidth="+wwidth;
    out.println("document.write(\"<iframe src='" + iframeURL + "' height=" + hheight +" width="+ wwidth + " SCROLLING=no FRAMEBORDER=0 MARGINWIDTH=2 MARGINHEIGHT=2 onfocus='window.focus(); return iframeFocus()'>\");");
    out.println("document.write(\"</iframe>\");");
    This richmediaServlet returns HTML into <iframe>. when richmediaservlet is called, a parameter 'bannerCode' is passed. then richmediaServlet fatches the banner from the database and displays the banner into the <iframe>.
    Now the problem is when i run the html file containing the script tag mentioned above, and supply different bannerCodes from getAdServlet to richMediaServlet then first banner is cached and displayed every time.
    i have also used the following code to prevent the caching of both the setvlets
         long currentTime = System.currentTimeMillis();
         response.setHeader("Cache-Control", "no-cache, must-revalidate");
         response.setHeader("Pragma", "no-cache");
         response.setDateHeader("Last-modified", currentTime);
         response.setHeader("Expires", "Sat, 6 May 1995 12:00:00 GMT");
    and following in the iframe's head tag before the iframe tag in the getAdServlet.
    out.println("document.write('<head>');");
    out.println("document.write('<meta http-equiv=\"Cache-Control\" content=\"no-cache,must-revalidate\">');");
    out.println("document.write('<meta http-equiv=\"Pragma\" content=\"no-cache\">');");
    out.println("document.write('<meta http-equiv=\"Last-modified\" content=\""+ currentTime + "\">');");
    out.println("document.write('<meta http-equiv=\"expires\" content=\"Sat, 6 May 1995 12:00:00 GMT\">');");
    out.println("document.write('</head>');");
    this problem does not arises when i call the getAdServlet from a testServlet and run the testServlet thru get request.
    pl tell me what's wrong i m doing.

    First, post your code in tags if you want people to read your code...

  • Problem with Servlets

    Hi,
    I am Tejas , a newbie with servlets. Now, I have a servlet which contains a Javascript method. On clicking a link , the Javascript method is called.
    But however, I find that there is some trouble. I created a class called MainFrames.java, the object of which I am instantiating in the Javascript method.
    But this code doesnt work properly. I have given the snippet below
    out.println("<script type='text/javascript'>");
    out.println("function threader()");
    out.println("{");
    out.println("alert('Inside Threader');");
    out.println("<%@ page import=\"XcForm.MainFrames\"%>"); //I have a hunch that this statement is the problem
    out.println("<%");
    out.println("MainFrames mainframes = new MainFrames();"); //without the import statement above, the MainFrames.java class is not being recognised
    out.println("%>");
    out.println("}");
    out.println("</script>");
    Thanks in advance,
    Tejas

    Do not put presentation code in servlets. Put them in JSPs. And mixing serverside code (scriptlets) and clientside code (javascript) this way is indeed not going to work. That code will certainly not be executed in the order as you write. Serverside code is executed at the server and is finished when the response is completed. So any serverside code inside clientside code is alreay executed. Clientside code is executed at the client and will only execute when the response is completed (onload, etc) or when the client invokes it (onclick, onsubmit, etc). Further on, do not put business code in presentation code. Put them in servlets.

  • Problem building application with weblogic.jar placed out of bea install.

    Weblogic version: 10.3
    EJB Version: 2.x
    Method for generating webservices fomr EJBs: servicegen task.
    Application Build steps:
    Step1) Maven to build the complete application and generate ejb-jar.jar and other projects jars and wars.
    Step2) Post maven build success there is an ant script used to generate webservices using ejb’s in the project using servicegen task. Attached is build.xml for ant.
    Following is the class path :
    .;C:\PROGRA~1\IBM\SQLLIB\java\db2java.zip;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc.jar;C:\PROGRA~1\IBM\SQLLIB\java\sqlj.zip;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc_license_cu.jar;C:\PROGRA~1\IBM\SQLLIB\bin;C:\PROGRA~1\IBM\SQLLIB\java\common.jar;C:\Program Files\IBM\RationalSDLC\ClearQuest\cqjni.jar;C:\bea10.3\wlserver_10.3\server\lib\weblogic.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\webservices.jar;%JAVA_HOME%\lib\tools.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\libslf4j-log4j12-1.5.2.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\struts.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\bootstrap.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\db2jcc.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\db2jcc_license_cu.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\ehcache-core-2.0.0.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\j2ee.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\jdom.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\log4j-1.2.9.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\slf4j-api-1.5.8.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\Deployment\ulc-dto.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\Deployment\ulc-jar.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\Deployment\scheduler-ejb.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\com.bea.core.xml.beaxmlbeans_2.0.0.0_2-5-1.jar;
    Problem Area:
    As you could notice in the yellow highlighted one that am referring to weblogic.jar from bea installation folder. Now if I use the weblogic.jar from the installation folder then build happens successfully.
    However if I copy weblogic.jar to some other location say : C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\weblogic.jar
    And include this path in the class path in place of weblogic.jar from the installation path, then I get the following errors: Please refer red highlighted part below…
    C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\ulc-ear>ant
    Buildfile: build.xml
    ejbwebservice:
    [servicegen] weblogic.xml.process.ProcessorFactoryException: XML document does not appear to contain a properly formed D
    OCTYPE header
    [servicegen] at weblogic.xml.process.ProcessorFactory.getProcessor(ProcessorFactory.java:301)
    [servicegen] at weblogic.xml.process.ProcessorFactory.getProcessor(ProcessorFactory.java:241)
    [servicegen] at weblogic.ejb20.dd.xml.DDUtils.processXML(DDUtils.java:320)
    [servicegen] at weblogic.ejb20.dd.xml.DDUtils.processXML(DDUtils.java:295)
    [servicegen] at weblogic.ejb20.dd.xml.DDUtils.processEjbJarXML(DDUtils.java:265)
    [servicegen] at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:118)
    [servicegen] at weblogic.webservice.dd.EJBJarIntrospector.<init>(EJBJarIntrospector.java:47)
    [servicegen] at weblogic.webservice.util.WebServiceEarFile.init(WebServiceEarFile.java:177)
    [servicegen] at weblogic.webservice.util.WebServiceEarFile.readDD(WebServiceEarFile.java:235)
    [servicegen] at weblogic.webservice.util.WebServiceEarFile.<init>(WebServiceEarFile.java:74)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:177)
    [servicegen] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    [servicegen] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [servicegen] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [servicegen] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [servicegen] at java.lang.reflect.Method.invoke(Method.java:597)
    [servicegen] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [servicegen] at org.apache.tools.ant.Task.perform(Task.java:348)
    [servicegen] at org.apache.tools.ant.Target.execute(Target.java:357)
    [servicegen] at org.apache.tools.ant.Target.performTasks(Target.java:385)
    [servicegen] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    [servicegen] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    [servicegen] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    [servicegen] at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    [servicegen] at org.apache.tools.ant.Main.runBuild(Main.java:758)
    [servicegen] at org.apache.tools.ant.Main.startAnt(Main.java:217)
    [servicegen] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
    [servicegen] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
    [servicegen] --------------- nested within: ------------------
    [servicegen] Error processing file 'META-INF/ejb-jar.xml'. weblogic.xml.process.XMLProcessingException: XML document doe
    s not appear to contain a properly formed DOCTYPE header - with nested exception:
    [servicegen] [weblogic.xml.process.ProcessorFactoryException: XML document does not appear to contain a properly formed
    DOCTYPE header]
    --------------- nested within: ------------------
    weblogic.webservice.util.WebServiceJarException: Could not process ejb-jar C:\DOCUME~1\ac30416\LOCALS~1\Temp\ulc-ear.ear
    -86826932\ejb.jar - with nested exception:
    [weblogic.webservice.dd.EJBProcessingException: Can read in ejb DD files. - with nested exception:
    [Error processing file 'META-INF/ejb-jar.xml'. weblogic.xml.process.XMLProcessingException: XML document does not appear
    to contain a properly formed DOCTYPE header - with nested exception:
    [weblogic.xml.process.ProcessorFactoryException: XML document does not appear to contain a properly formed DOCTYPE heade
    r]]]
    at weblogic.webservice.util.WebServiceEarFile.init(WebServiceEarFile.java:183)
    at weblogic.webservice.util.WebServiceEarFile.readDD(WebServiceEarFile.java:235)
    at weblogic.webservice.util.WebServiceEarFile.<init>(WebServiceEarFile.java:74)
    at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:177)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:357)
    at org.apache.tools.ant.Target.performTasks(Target.java:385)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    at org.apache.tools.ant.Main.runBuild(Main.java:758)
    at org.apache.tools.ant.Main.startAnt(Main.java:217)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
    Please help as its urgent for me as we cannot have local installation of weblogic. We may just use the required jars.

    Weblogic version: 10.3
    EJB Version: 2.x
    Method for generating webservices fomr EJBs: servicegen task.
    Application Build steps:
    Step1) Maven to build the complete application and generate ejb-jar.jar and other projects jars and wars.
    Step2) Post maven build success there is an ant script used to generate webservices using ejb’s in the project using servicegen task. Attached is build.xml for ant.
    Following is the class path :
    .;C:\PROGRA~1\IBM\SQLLIB\java\db2java.zip;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc.jar;C:\PROGRA~1\IBM\SQLLIB\java\sqlj.zip;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc_license_cu.jar;C:\PROGRA~1\IBM\SQLLIB\bin;C:\PROGRA~1\IBM\SQLLIB\java\common.jar;C:\Program Files\IBM\RationalSDLC\ClearQuest\cqjni.jar;C:\bea10.3\wlserver_10.3\server\lib\weblogic.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\webservices.jar;%JAVA_HOME%\lib\tools.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\libslf4j-log4j12-1.5.2.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\struts.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\bootstrap.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\db2jcc.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\db2jcc_license_cu.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\ehcache-core-2.0.0.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\j2ee.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\jdom.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\log4j-1.2.9.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\slf4j-api-1.5.8.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\Deployment\ulc-dto.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\Deployment\ulc-jar.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\Deployment\scheduler-ejb.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\com.bea.core.xml.beaxmlbeans_2.0.0.0_2-5-1.jar;
    Problem Area:
    As you could notice in the yellow highlighted one that am referring to weblogic.jar from bea installation folder. Now if I use the weblogic.jar from the installation folder then build happens successfully.
    However if I copy weblogic.jar to some other location say : C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\weblogic.jar
    And include this path in the class path in place of weblogic.jar from the installation path, then I get the following errors: Please refer red highlighted part below…
    C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\ulc-ear>ant
    Buildfile: build.xml
    ejbwebservice:
    [servicegen] weblogic.xml.process.ProcessorFactoryException: XML document does not appear to contain a properly formed D
    OCTYPE header
    [servicegen] at weblogic.xml.process.ProcessorFactory.getProcessor(ProcessorFactory.java:301)
    [servicegen] at weblogic.xml.process.ProcessorFactory.getProcessor(ProcessorFactory.java:241)
    [servicegen] at weblogic.ejb20.dd.xml.DDUtils.processXML(DDUtils.java:320)
    [servicegen] at weblogic.ejb20.dd.xml.DDUtils.processXML(DDUtils.java:295)
    [servicegen] at weblogic.ejb20.dd.xml.DDUtils.processEjbJarXML(DDUtils.java:265)
    [servicegen] at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:118)
    [servicegen] at weblogic.webservice.dd.EJBJarIntrospector.<init>(EJBJarIntrospector.java:47)
    [servicegen] at weblogic.webservice.util.WebServiceEarFile.init(WebServiceEarFile.java:177)
    [servicegen] at weblogic.webservice.util.WebServiceEarFile.readDD(WebServiceEarFile.java:235)
    [servicegen] at weblogic.webservice.util.WebServiceEarFile.<init>(WebServiceEarFile.java:74)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:177)
    [servicegen] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    [servicegen] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [servicegen] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [servicegen] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [servicegen] at java.lang.reflect.Method.invoke(Method.java:597)
    [servicegen] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [servicegen] at org.apache.tools.ant.Task.perform(Task.java:348)
    [servicegen] at org.apache.tools.ant.Target.execute(Target.java:357)
    [servicegen] at org.apache.tools.ant.Target.performTasks(Target.java:385)
    [servicegen] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    [servicegen] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    [servicegen] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    [servicegen] at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    [servicegen] at org.apache.tools.ant.Main.runBuild(Main.java:758)
    [servicegen] at org.apache.tools.ant.Main.startAnt(Main.java:217)
    [servicegen] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
    [servicegen] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
    [servicegen] --------------- nested within: ------------------
    [servicegen] Error processing file 'META-INF/ejb-jar.xml'. weblogic.xml.process.XMLProcessingException: XML document doe
    s not appear to contain a properly formed DOCTYPE header - with nested exception:
    [servicegen] [weblogic.xml.process.ProcessorFactoryException: XML document does not appear to contain a properly formed
    DOCTYPE header]
    --------------- nested within: ------------------
    weblogic.webservice.util.WebServiceJarException: Could not process ejb-jar C:\DOCUME~1\ac30416\LOCALS~1\Temp\ulc-ear.ear
    -86826932\ejb.jar - with nested exception:
    [weblogic.webservice.dd.EJBProcessingException: Can read in ejb DD files. - with nested exception:
    [Error processing file 'META-INF/ejb-jar.xml'. weblogic.xml.process.XMLProcessingException: XML document does not appear
    to contain a properly formed DOCTYPE header - with nested exception:
    [weblogic.xml.process.ProcessorFactoryException: XML document does not appear to contain a properly formed DOCTYPE heade
    r]]]
    at weblogic.webservice.util.WebServiceEarFile.init(WebServiceEarFile.java:183)
    at weblogic.webservice.util.WebServiceEarFile.readDD(WebServiceEarFile.java:235)
    at weblogic.webservice.util.WebServiceEarFile.<init>(WebServiceEarFile.java:74)
    at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:177)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:357)
    at org.apache.tools.ant.Target.performTasks(Target.java:385)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    at org.apache.tools.ant.Main.runBuild(Main.java:758)
    at org.apache.tools.ant.Main.startAnt(Main.java:217)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
    Please help as its urgent for me as we cannot have local installation of weblogic. We may just use the required jars.

  • Problem with character set with servlets and Oracle 9i AS

    I am deploying a servlet with Jserv on a Sun machine.
    My servlet is working but some special characters in text fields like "i", "h", "`" (French language) are replaced by "?" when refreshing the HTML pages.
    Is that a Jserv or Oracle 9i AS settings problem or machine settings problem ?
    Thanks for you help
    Lilian

    The solution to this problem is described in MetaLink note #211920.1. But this note is published with LIMITED access as it involves using a hidden parameter.
    You can get access to the note through Oracle Support only.
    The problem itself is solved generically, if the source database is at least 10.1.0.3 and the target database is 10.2
    -- Sergiusz

  • Is there a problem with JMS and Weblogic?

              Hi,
              I am using JMS and Weblogic (Not Message Driven bean).
              My problem is that after some time my listeners disappears.
              I am sending them a message and instead of 6 listeners
              I get only 4 messages.
              So, My question is: Is there any problem working with JMS
              and Weblogic???
              Thanks,
              Tal.
              

    Too little information and a very vague question. Need more info.
              "Tal" <[email protected]> wrote in message
              news:[email protected]..
              >
              > Hi,
              > I am using JMS and Weblogic (Not Message Driven bean).
              > My problem is that after some time my listeners disappears.
              > I am sending them a message and instead of 6 listeners
              > I get only 4 messages.
              > So, My question is: Is there any problem working with JMS
              > and Weblogic???
              > Thanks,
              > Tal.
              

  • Some problems with servlet.jar and tomcat 4.1.27

    Hello everybody,
    I used to work with tomcat 3.3.1 and i've decided to use tomcat 4.1.27 now. The manual explains that we have to change de version of servlet.jar, it's done with servlet-2.3.jar but on tomcat starting i have this message:
    jar not loaded. See servlet spec [...]. Offending class: javax/servlet/Servlet.class
    what can i do, i've red all de documentation and i think all versions a OK??
    thanks per advance
    antoine

    I am running Tomcat 4.1.18, so your configuration may be slightly different. I found the Servlet.class file you are missing residing in the Tomcat/common/lib directory in the Servlet.jar file. Check your path and also make sure your Servlet.jar file contains the missing class.

  • Help needed. Problem with servlet.

    Hello ppl. Ok. I've never really needed to implement servlets in my projects before but I experimented by writing a simple helloworld servlet. It compiled successfully and I tested it in the examples servlet dir and it worked. To test it in the ROOT dir, I placed the servlet in the ROOT/WEB-INF/classes folder and edited the web.xml file with:
    <servlet>
              <servlet-name>HelloWorldExample</servlet-name>
              <servlet-class>HelloWorldExample</servlet-class>
         </servlet>
         <servlet-mapping>
              <servlet-name>HelloWorldExample</servlet-name>
              <url-pattern>servlet/*</url-pattern>
         </servlet-mapping>
    When I try and execute the servlet by using this URL: localhost:8080/servlet/helloworld I get an internal server error and the server crashes. I removed the entry from the web.xml file and Tomcat started up again. What went wrong? Can someone enlighten me in how to get my test servlet working becuase i may use them in the future. Thanks.

    Nope, Still didnt work. As soon as I put in:
    <servlet>
         <servlet-name>HelloWorldExample</servlet-name>
         <servlet-class>HelloWorldExample</servlet-class>
         </servlet>
         <servlet-mapping>
         <servlet-name>HelloWorldExample</servlet-name>
         <url-pattern>servlet/HelloWorldExample</url-pattern>
         </servlet-mapping>
    Tomcat went offline!
    I have another entry which is:
    <servlet>
              <servlet-name>org.apache.jsp.index_jsp</servlet-name>
              <servlet-class>org.apache.jsp.index_jsp</servlet-clas
    >
         </servlet>
         <servlet-mapping>
              <servlet-name>org.apache.jsp.index_jsp</servlet-name>
              <url-pattern>/index.jsp</url-pattern>
         </servlet-mapping>
    Do you think they may be conflicting? Thanks.Tomcat going offline is quite weird. However,
    <url-pattern>/index.jsp</url-pattern>
    this is perfectly valid. Lemme ask you this: did u come up with this stuff on your own or was it generated for you by the container? It looks like it was generated upon compilation of the jsp. If that is the case it should cause any conflicts. However now if you want to invoke the servlet/jsp you must use a URL like:
    http://localhost:<PORT_NO>/index.jsp
    Cheers

  • Problem in midlet interact with servlet application

    while i was trying to connect midlet with servlet
    there found a warning like this
    Warning: To avoid potential deadlock, operations that may block, such as
    networking, should be performed in a different thread than the
    commandAction() handler.
    why this because

    The warning exactly states why, what else is there to ask... Besides, this question has been asked many times before. A simple search would have given you an answer in no-time.

  • What is the URL to access a particular servlet with URI mapping?

    I am trying to port my app from jrun to weblogic. I was able to port
              from jrun to tomcat without much of a problem.
              However with weblogic it has been a nightmare.
              Both jrun and tomcat(and websphere) provide the /servlet mapping by
              default. However weblogic doesn't do that. You have to add a mapping for
              every servlet which is a nightmare for any reasonably sized
              application(other than HelloWorld). How can one add 100 servlets to the
              web.xml ? Also if you have an app which can be extended by the client,
              you have to ask him to add each servlet to the web.xml instead of just
              asking him to put the classes in a directory. I wonder who is using
              weblogic to deploy servlets base apps.
              I hope there is a workaround or that i am wrong. Let me know if i am.
              Srini
              

    I am trying to port my app from jrun to weblogic. I was able to port          > from jrun to tomcat without much of a problem.
              > However with weblogic it has been a nightmare.
              Hmm. Well you are right. jRun and Tomcat are definitely easier to use.
              (Don't get me started on Websphere. An earlier version took one of my
              engineers a month to get it running. I'm still mad about that.)
              > Both jrun and tomcat(and websphere) provide the /servlet mapping by
              > default.
              Yes, Weblogic also occasionally deviates from standards as well,
              unfortunately for you not this time. ;-)
              Have you looked at Weblogic's ServletServlet. I think it does what you
              want.
              > How can one add 100 servlets to the
              > web.xml ?
              How can one develop an application that doesn't have 100 servlets? ;-) (I
              like to have only one personally.)
              Generally if you have to do it:
              1) Notepad IDE using the advanced Ctrl-C/Ctrl-V document-transmogrification
              feature
              2) ANT
              3) A tool that writes the XMLs for you (my personal preference)
              > Also if you have an app which can be extended by the client,
              > you have to ask him to add each servlet to the web.xml instead of just
              > asking him to put the classes in a directory.
              Wow. I'm really not sure if I'm comfortable with this chaos that you are
              describing. I'm having issues.
              Peace,
              Cameron Purdy
              Tangosol, Inc.
              http://www.tangosol.com
              +1.617.623.5782
              WebLogic Consulting Available
              "Srini Kurella" <[email protected]> wrote in message
              news:[email protected]...
              > I am trying to port my app from jrun to weblogic. I was able to port
              > from jrun to tomcat without much of a problem.
              > However with weblogic it has been a nightmare.
              > Both jrun and tomcat(and websphere) provide the /servlet mapping by
              > default. However weblogic doesn't do that. You have to add a mapping for
              > every servlet which is a nightmare for any reasonably sized
              > application(other than HelloWorld). How can one add 100 servlets to the
              > web.xml ? Also if you have an app which can be extended by the client,
              > you have to ask him to add each servlet to the web.xml instead of just
              > asking him to put the classes in a directory. I wonder who is using
              > weblogic to deploy servlets base apps.
              > I hope there is a workaround or that i am wrong. Let me know if i am.
              >
              > Srini
              >
              >
              

  • Errors with webapps in WebLogic 9.2

    Hi.
    Well, the problem is I when I access to the webapp it gives me a error. The app is deployed and started without any problem.
    The first war I tested gives me that error when I access to the app.
    Error 500--Internal Server Error
    java.net.MalformedURLException: The path for getResource() must begin with a '/'
         at weblogic.servlet.internal.WebAppServletContext.getResource(WebAppServletContext.java:709)
         at jsp_servlet.__cmd._jspService(__cmd.java:1290)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3244)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2010)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1916)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    You can download the war here war
    After that I thought I was doing something wrong so I downloaded jeexplorer , installed the war and finally started it. But when I try to access to the webapp it gives me that error:
    <!--
    java.lang.NullPointerException
         at java.io.File.<init>(File.java:194)
         at jexplorer.web.jsp.ExplorerJSP.a(Unknown Source)
         at jexplorer.web.jsp.ExplorerJSP.<init>(Unknown Source)
         at jsp_servlet.__jeexplorer._jspService(__jeexplorer.java:337)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
         at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:394)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:309)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3244)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2010)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1916)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    -->
         <b>An error occurred - please check the server log for details.</b>
    I only want to have a manager with the basic functions to upload, download and execute commands...
    Thanks for any help and sorry for my bad English.

    Thanks David and weblogicRocks..
    David,
    I have installed the workshop also during installation. Actually I have searched for the class which is missing from the weblogic 9.2 installation folder. The missing class is is in different package path in weblogic 9.2 (knex81.jar) as shown below. Also, this class is generated by workshop while building in 8.1. So, I think I have to rebuild the work file in 9.2 to avoid referring to this class.
    Missing Class location (weblogic 8.1) (knex.jar): com/bea/wlw/runtime/core/bean/SLSBContainerBean
    Missing Class location (weblogic 9.2) (knex81.jar): com/bea/wlw/knex/runtime/core/bean/SLSBContainerBean
    weblogicRocks,
    I saw in the weblogic site that the webservices built from 8.1 will still work in 9.2 with out the need for changing the code. Pls, let me know whether I need to rebuild them on 9.2. If yes, I have used .jws files(sample class definition below) for my webservices and I came to know that in 9.2 new jws annotations are added, do I need to change my source code to add any new annotations so as to work in 9.2? Also, I have used wlwBuildTask using Ant to build the code in 8.1 and this task is not available in 9.2. Let me know what all I need to change for webservices created from workshop to migrate to 9.2. I am really struggling in resolving the issues as it is very urgent for me. Appreciate you quick response.
    Below is my .jws webserice class definition.
    public class MyWebService implements com.bea.jws.WebService
    private String reqImpl;
    * @common:operation
    * @jws:conversation phase="none"
    public String submitRequest(String var)
    <Method Logic>
    }

Maybe you are looking for