Weblogic Servlet to IIS/ASP

Hello,
          Big picture: We have a 3rd party IIS server with ASP behind our firewall.
          We need our WebLogic server to "forward" request to it.
          I implemented this with a Servlet under WL that uses HttpURLConnection to
          open a connection pass on POSTed parameters, set up the cookies, read the
          html back from the IIS server and then send it back to the browser.
          Problem is, the IIS machine is requesting "Connection" "Keep-alive" in the
          header and has timing problems with its session since HttpURLConnection
          doesn't support Keep-alive.
          It looks like the package weblogic.net.http provides the functionality I
          need but where is a tutorial or sample code? Please help by either
          suggesting another entire approach or telling me how to use
          weblogic.net.http package.
          Thanks!!
          MWW
          

I think you are already using weblogic.net.* implementation
          because weblogic sets 'java.protocol.handler.pkgs' system property,
          which includes weblogic.net package, which contains http.Handler,
          so when you create new URL and open connection it will automatically
          use weblogic.net.http.HttpURLConnection.
          Mark Walter <[email protected]> wrote:
          > Hello,
          > Big picture: We have a 3rd party IIS server with ASP behind our firewall.
          > We need our WebLogic server to "forward" request to it.
          > I implemented this with a Servlet under WL that uses HttpURLConnection to
          > open a connection pass on POSTed parameters, set up the cookies, read the
          > html back from the IIS server and then send it back to the browser.
          > Problem is, the IIS machine is requesting "Connection" "Keep-alive" in the
          > header and has timing problems with its session since HttpURLConnection
          > doesn't support Keep-alive.
          > It looks like the package weblogic.net.http provides the functionality I
          > need but where is a tutorial or sample code? Please help by either
          > suggesting another entire approach or telling me how to use
          > weblogic.net.http package.
          > Thanks!!
          > MWW
          Dimitri
          http://dima.dhs.org
          

Similar Messages

  • BEA-101083 Connection failure.java.io.IOException: A complete message could not be read on socket: 'weblogic.servlet.internal.MuxableSocketHTTP@16907c  at weblogic.socket.SocketMuxer$TimeoutTrigger.trigger

    While trying to publish mesaage by MQ 5.3 .I got the following error
              Please help.
              <Error> <HTTP> <BEA-101083> <Connection failure.
              java.io.IOException: A complete message could not be read on socket: 'weblogic.servlet.internal.MuxableSocketHTTP@1c94ff
              3 - idle timeout: '30000' ms, socket timeout: '30000' ms', in the configured timeout period of '60' secs
              at weblogic.socket.SocketMuxer$TimeoutTrigger.trigger(SocketMuxer.java:775)
              at weblogic.time.common.internal.ScheduledTrigger.run(ScheduledTrigger.java:243)
              at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
              at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
              at weblogic.time.common.internal.ScheduledTrigger.executeLocally(ScheduledTrigger.java:229)
              at weblogic.time.common.internal.ScheduledTrigger.execute(ScheduledTrigger.java:223)
              at weblogic.time.server.ScheduledTrigger.execute(ScheduledTrigger.java:49)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
              

    Can you help me ? I have the same problem.

  • Weblogic.servlet.reloadCheckSecs in web.xml not working

    Given the following web.xml file:
              <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
              1.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
              <web-app>
              <context-param>
              <param-name>weblogic.servlet.reloadCheckSecs</param-name>
              <param-value>100</param-value>
              </context-param>
              <servlet>
              <servlet-name>CookieCounter</servlet-name>
              <servlet-class>servlets.CookieCounter</servlet-class>
              </servlet>
              <servlet-mapping>
              <servlet-name>CookieCounter</servlet-name>
              <url-pattern>monster</url-pattern>
              </servlet-mapping>
              <welcome-file-list>
              <welcome-file>hello.html</welcome-file>
              </welcome-file-list>
              <error-page>
              <error-code>404</error-code>
              <location>/error.jsp</location>
              </error-page>
              </web-app>
              It seems the weblogic.servlet.reloadCheckSecs property is not taking effect.
              The
              default value of -1 is always used. I did stop and restart weblogic.
              I also trid to set the servlet classpath in the web.xml file with
              weblogic.servlet.classpath
              property and it did not change the classpath for the servlet. It seems that
              other
              items are working such as adding new servletrs to the web application. Note
              that
              this is the cookie sample application that installes with the beta 2
              download.
              Thanks,
              Dan.
              

    Hi All:
    Thanks for all your help regarding the adfAuthentication success_url. Now I am able to configure to make this work. But now I am facing another issue i.e. I am getting 401 Not authorized message when the success_url is pointed to the jspx page.
    Note: I am using custom login module similar to DBProcOraDataSourceLoginModule so my roles are stored in the custom Role class. So I am not sure how to pass this role info to the security in ADF in order to authorize the page to be viewed.
    Could you please help and can you point me to any specific link.
    Thanks & Regards
    Sridhar Doki

  • Upgrade Oracle Client 8.1.7 to 10g on Windows 2003 with IIS / ASP

    I am having problems after I install 10201_client_win32 on Windows 2003 which uses IIS ASP application to connect via ODBC to Oracle databases.
    tnsping and m/s access can connect but for some reason my ASP application can not connect but doesn't give me any error messages just hangs during ASP database connection
    I have a mixture of 8i and 10g DSN connections which I use, I'm not sure if I need to un-install 8.1.7 driver or remove all 8i ODBC to enable this to work
    Should ASP be able to connect to a mix of 8 and 10g drivers?
    Perhaps some DLL incompatibility or install issue.
    Note it works ok on XP workstation but not so far on Win2003 server.
    Any help to verify install or things to check would be appreciated
    Paul

    Since 8.1.7 was never certified on Windows 2003, it's entirely possible that it would cause some problems and might interfere with the 10g client.
    If you are confident that the setup on your XP box is identical to the setup on the 2003 box, I would tend to suspect that the 8.1.7 client was causing the problem.
    Justin

  • Java.lang.NullPointerException at weblogic.servlet.logging.LogManagerHttp.log(LogManagerHttp.java:292)

              Hi,
              intermittently we are seeing this exception in the server log files on weblogic 6.1
              sp2, I was wondering what the cause is:
              java.lang.NullPointerException
                   at weblogic.servlet.logging.LogManagerHttp.log(LogManagerHttp.java:292)
                   at weblogic.servlet.internal.HttpServer.log(HttpServer.java:835)
                   at weblogic.servlet.internal.ServletResponseImpl.send(ServletResponseImpl.java:1002)
                   at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2209)
                   at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
                   at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              

    Did your C:\Lighthammer\Security\userdata\IlluminatorUsers.xml or other files in this directory get corrupted somehow?
    If you've rebooted the box or bounced the ServletExec-xMII service, do you see anything in the SYSTEM level messages that are forced during the initialization sequence in either the Lighthammer General log or the LHSecurity General log that would give any indications to the problem?
    Regards,
    Jeremy

  • WLS 10.3 - BEA-000337 with request weblogic.servlet.internal.ServletRequest

    Hi,
    we have an 7x24 hour application which causes sometimes (error happend e.g. 4 times in 2 weeks) following error:
    =====================
    <30.06.2009 14:41 Uhr CEST> <Error> <WebLogicServer> <BEA-000337> <[STUCK] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' has been busy for "615" seconds working on the request "weblogic.servlet.internal.ServletRequestImpl@1885c28[
    GET /tls-lmrg-ViewController-context-root/faces/lmrg0001.jspx?_adf.ctrl-state=373697585_3&Adf-Rich-Message=true&unique=1246365071463&oracle.adf.view.rich.STREAM=j_id_id4:tableWa&javax.faces.ViewState=!5ea5ac22&oracle.adf.view.rich.forceHTML=true HTTP/1.1
    Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, */*
    Referer: http://trnas029:7001/tls-lmrg-ViewController-context-root/faces/lmrg0001.jspx?_adf.ctrl-state=373697585_3
    Accept-Language: de
    UA-CPU: x86
    Accept-Encoding: gzip, deflate
    User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322)
    Connection: Keep-Alive
    Cookie: JSESSIONID=nGrHKG6SWG2Tg2Z515GzlxhJFRw1pdX7Gm3F1YYcL23ppXHy3kgj!-2050079672
    ]", which is more than the configured time (StuckThreadMaxTime) of "600" seconds. Stack trace:
    java.io.FileOutputStream.writeBytes(Native Method)
    java.io.FileOutputStream.write(FileOutputStream.java:260)
    java.io.BufferedOutputStream.write(BufferedOutputStream.java:105)
    java.io.PrintStream.write(PrintStream.java:430)
    sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:202)
    sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:272)
    sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:276)
    sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:122)
    java.io.OutputStreamWriter.flush(OutputStreamWriter.java:212)
    java.util.logging.StreamHandler.flush(StreamHandler.java:225)
    java.util.logging.ConsoleHandler.publish(ConsoleHandler.java:89)
    java.util.logging.Logger.log(Logger.java:472)
    oracle.adf.share.logging.ADFLogger.doLog(ADFLogger.java:1747)
    oracle.adf.share.logging.ADFLogger.log(ADFLogger.java:430)
    oracle.adf.share.logging.ADFLogger.severe(ADFLogger.java:986)
    oracle.adfinternal.view.faces.model.binding.CurrencyRowKeySet._computeCurrentRowKey(CurrencyRowKeySet.java:146)
    oracle.adfinternal.view.faces.model.binding.CurrencyRowKeySet.iterator(CurrencyRowKeySet.java:37)
    oracle.adfinternal.view.faces.renderkit.rich.TableRendererUtils.writePojoSelectionState(TableRendererUtils.java:308)
    oracle.adfinternal.view.faces.renderkit.rich.TableRenderer.renderDataBlockRows(TableRenderer.java:1608)
    oracle.adfinternal.view.faces.renderkit.rich.TableRenderer._renderSingleDataBlock(TableRenderer.java:1488)
    oracle.adfinternal.view.faces.renderkit.rich.TableRenderer._handleDataFetch(TableRenderer.java:918)
    oracle.adfinternal.view.faces.renderkit.rich.TableRenderer.encodeAll(TableRenderer.java:394)
    oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1050)
    org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:224)
    org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:763)
    org.apache.myfaces.trinidad.component.UIXCollection.encodeEnd(UIXCollection.java:533)
    org.apache.myfaces.trinidad.render.RenderUtils.encodeRecursive(RenderUtils.java:70)
    oracle.adfinternal.view.faces.util.rich.InvokeOnComponentUtils$RenderCallback.invokeContextCallback(InvokeOnComponentUtils.java:97)
    org.apache.myfaces.trinidad.component.UIXCollection.invokeOnComponent(UIXCollection.java:1030)
    javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:731)
    javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:731)
    javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:731)
    oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.invokeOnComponent(ContextSwitchingComponent.java:153)
    javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:731)
    oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.invokeOnComponent(ContextSwitchingComponent.java:153)
    oracle.adf.view.rich.component.fragment.UIXPageTemplate.invokeOnComponent(UIXPageTemplate.java:208)
    javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:731)
    javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:731)
    javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:731)
    javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:664)
    oracle.adfinternal.view.faces.util.rich.InvokeOnComponentUtils.renderChild(InvokeOnComponentUtils.java:29)
    oracle.adfinternal.view.faces.streaming.StreamingDataManager._pprComponent(StreamingDataManager.java:577)
    oracle.adfinternal.view.faces.streaming.StreamingDataManager.execute(StreamingDataManager.java:442)
    oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer._encodeStreamingResponse(DocumentRenderer.java:2124)
    oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer.encodeAll(DocumentRenderer.java:787)
    oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1050)
    org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:224)
    org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:763)
    org.apache.myfaces.trinidad.component.UIXComponentBase.__encodeRecursive(UIXComponentBase.java:1351)
    org.apache.myfaces.trinidad.component.UIXComponentBase.encodeAll(UIXComponentBase.java:783)
    javax.faces.component.UIComponent.encodeAll(UIComponent.java:942)
    com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:273)
    com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:204)
    javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189)
    org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:188)
    oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:652)
    oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:243)
    oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:203)
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
    weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:181)
    weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:85)
    org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:278)
    org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:238)
    org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:195)
    org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:138)
    org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
    weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    weblogic.security.service.SecurityManager.runAs(Unknown Source)
    weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
    weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
    weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
    weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    ========================
    Application is developed with ADF 11g (11.1.1.0.2) and only refreshes a graph periodically via af:poll.
    Any ideas what I can do to analyze and resolve the problem?
    regards
    Peter

    repost

  • Using weblogic.servlet.FileServlet - can it set expiration date to '0' and not cache the page?

              Hi!
              I'm using WebLogic 7.0.2 and using the weblogic.servlet.FileServlet to serve up
              various
              pages (HTML, Word, Powerpoint). If I change an HTML file and access it agin things
              are find
              since the default expirationdate for it is '0' - however if I change a Word file
              and reaccess it
              again I see the previous version of it. I have to clear out the cache and view
              it again in order
              to see the changes. Is there a way to use the weblogic.servlet.FileServlet and
              force no
              caching or a reload with every access?
              Thanks!
              -Lori
              

              Well I never heard anything so I just created a servlet that inherits from the
              weblogic
              FileServlet and puts in the expirationdate in the header before passing it on
              to the
              super class. It works fine.
              "Lori Ronning" <[email protected]> wrote:
              >
              >Hi!
              >I'm using WebLogic 7.0.2 and using the weblogic.servlet.FileServlet to
              >serve up
              >various
              >pages (HTML, Word, Powerpoint). If I change an HTML file and access
              >it agin things
              >are find
              >since the default expirationdate for it is '0' - however if I change
              >a Word file
              >and reaccess it
              >again I see the previous version of it. I have to clear out the cache
              >and view
              >it again in order
              >to see the changes. Is there a way to use the weblogic.servlet.FileServlet
              >and
              >force no
              >caching or a reload with every access?
              >Thanks!
              >-Lori
              

  • Using weblogic.servlet.security.ServletAuthentication

    I am currently using weblogic.servlet.security.ServletAuthentication.authenticate(Callback,
    request) to peform a weblogic form-based authentication/login and would like to
    see the session stored user info....
    The doc for authenticate states that a session will be created, but does this
    method also place user information into the session [after authentication]. If
    so, how exactly do I get the default user information stored in the session after
    this call?
    Is there a String title associated with the user info so that I can use getAttribute(String)?
    Using session.getAttributeNames(), I can see that the session has a "sessionContext"
    and "org.apache.struts.action.LOCALE". Is there a way I can user/parse these objects
    for the user information. Your help is very much appreciated, thanks!

    I think we have most of the functionality you've asked for.
    ServletAuthentication.runAs() associates a Subject with the session.
    weblogic.security.services.Authentication.authenticate() creates a Subject.
    ServletAuthentication.authenticate() is merely a convenience wrapper around
    these two methods. That is, it creates a CallbackHandler from the request,
    calls authenticate() and then calls runAs(). So, in answer to your question,
    yes, ServletAuthentication.authenticate() does associate the Subject with
    the current session.
    There is no direct way of getting the Subject associated with a session but
    we can give you the current Subject which is almost always the same thing
    (if you have a run-as tag the current Subject may be different than the one
    associated with the session). To get the current Subject call
    weblogic.security.Security.getCurrentSubject().
    - Neil
    "Richard " <[email protected]> wrote in message
    news:4002e8a6$[email protected]..
    >
    I am currently usingweblogic.servlet.security.ServletAuthentication.authenticate(Callback,
    request) to peform a weblogic form-based authentication/login and wouldlike to
    see the session stored user info....
    The doc for authenticate states that a session will be created, but doesthis
    method also place user information into the session [afterauthentication]. If
    so, how exactly do I get the default user information stored in thesession after
    this call?
    Is there a String title associated with the user info so that I can usegetAttribute(String)?
    >
    Using session.getAttributeNames(), I can see that the session has a"sessionContext"
    and "org.apache.struts.action.LOCALE". Is there a way I can user/parsethese objects
    for the user information. Your help is very much appreciated, thanks!

  • URLConnection returns NULL when called from within a weblogic servlet

    The following code snippet works when executed outside of weblogic, but does
    not work from within a weblogic servlet instance.
    URL u = new URL("http://" + ipString + newString.toString());
    URLConnection uc = u.openConnection();
    BufferedReader in = new BufferedReader (new InputStreamReader(uc.getInputStream()));
    String response = "", response2 = "";
    while(response2 != null)
         response = ((response2 = in.readLine()) == null) ? response : response + response2;
    The response is quite big. When this code is executed from within a weblogic servlet instance,
    in.readLine always returns a null right away. Yet a TCP/IP trace shows that the packets are coming
    back to my NT machine.
    Other info:
    Inside of weblogic:
    u's handler is of type weblogic.net.http.Hanlder
    uc is of type weblogic.net.http.HttpURLConnection
    Outside of weblogic:
    u's handler is of type sun.net.www.protocol.http.Handler
    uc is of type sun.new.www.protocol.http.HttpURLConnection
    Weblogic V4.51. Running on NT.
    Attempted the following to no avail:
    1. installing sp11
    2. changing the security to permission java.security.AllPermission;
    3. adding the following calls : uc.setRequestProperty("Content-Type", "text/xml");          
              uc.setDoInput(true);
              uc.setDoOutput(true);
    4. Started playing around with modifying the java.protocol.handler.pkgs system property,
    but I shouldn't have to do this.
    Any help would be appreciated.

    There are some problems with the WL implementations of certain protocols.
    WL hides the Sun implementations when you are in the WebLogic server. Here
    is an a solution that was posted to a similar problem:
    Https is an add-in so to speak. Try this before you create your url:
    System.setProperty ("java.protocol.handler.pkgs",
    "com.sun.net.ssl.internal.www.protocol");
    // add the default security provider (again, in JSSE1.0.1)
    int iap = java.security.Security.addProvider(new
    com.sun.net.ssl.internal.ssl.Provider() );
    dennisNote how the code overides the WL setting which overode the Sun setting.
    Cameron Purdy
    [email protected]
    http://www.tangosol.com
    WebLogic Consulting Available
    "Brian Howell" <[email protected]> wrote in message
    news:[email protected]...
    >
    The following code snippet works when executed outside of weblogic, butdoes
    not work from within a weblogic servlet instance.
    URL u = new URL("http://" + ipString + newString.toString());
    URLConnection uc = u.openConnection();
    BufferedReader in = new BufferedReader (newInputStreamReader(uc.getInputStream()));
    >
    String response = "", response2 = "";
    while(response2 != null)
    response = ((response2 = in.readLine()) == null) ? response : response +response2;
    The response is quite big. When this code is executed from within aweblogic servlet instance,
    in.readLine always returns a null right away. Yet a TCP/IP trace showsthat the packets are coming
    back to my NT machine.
    Other info:
    Inside of weblogic:
    u's handler is of type weblogic.net.http.Hanlder
    uc is of type weblogic.net.http.HttpURLConnection
    Outside of weblogic:
    u's handler is of type sun.net.www.protocol.http.Handler
    uc is of type sun.new.www.protocol.http.HttpURLConnection
    Weblogic V4.51. Running on NT.
    Attempted the following to no avail:
    1. installing sp11
    2. changing the security to permission java.security.AllPermission;
    3. adding the following calls : uc.setRequestProperty("Content-Type","text/xml");
    uc.setDoInput(true);
    uc.setDoOutput(true);
    4. Started playing around with modifying the java.protocol.handler.pkgssystem property,
    but I shouldn't have to do this.
    Any help would be appreciated.

  • Weblogic.servlet.jsp.JspException: (line 1): Error in using tag library uri

    Previously my web app was running fine using eclipse 3.1
    When I upgraded my eclipse to 3.2 then built the same web app and deployed, upon running the url i got error
    weblogic.servlet.jsp.JspException: (line 1): Error in using tag library uri='/tags/css' prefix='css' : cannot find tag class
    Your help is appreciated.

              Hi Guys
              Problem is almost certainly because I've gone and defined the get as returning
              an int, (hence no property!)
              Apols
              J
              

  • The servlet weblogic.servlet.AsyncInitServlet init method failed

    I installed WLS 9.2.2 recently with my app being on 8.1.5 for a long time.
    I chose to create a new domain instead of upgrading my existing one.
    I use the eclipse 3.2.2 with the WL plugin.
    When I start the server and login to the console not using eclipse it works fine.
    Trying to start the server and login to the console gives a internal server error.
    Any idea what could be wrong? I bolded the parts where I have looked into.
    Here is the console output:
    <Nov 19, 2008 3:13:02 PM CST> <Notice> <WebLogicServer> <BEA-000395> <Following extensions directory contents added to the end of the classpath:
    C:\bea92\weblogic92\platform\lib\p13n\p13n-schemas.jar;C:\bea92\weblogic92\platform\lib\p13n\p13n_common.jar;*C:\bea92\weblogic92\platform\lib\p13n\p13n_system.jar*;C:\bea92\weblogic92\platform\lib\wlp\netuix_common.jar;C:\bea92\weblogic92\platform\lib\wlp\netuix_schemas.jar;C:\bea92\weblogic92\platform\lib\wlp\netuix_system.jar;C:\bea92\weblogic92\platform\lib\wlp\wsrp-common.jar>
    <Nov 19, 2008 3:13:03 PM CST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM Version 1.5.0_10-b03 from Sun Microsystems Inc.>
    <Nov 19, 2008 3:13:05 PM CST> <Info> <Management> <BEA-141107> <Version: WebLogic Server 9.2 MP2 Mon Jun 25 01:32:01 EDT 2007 952826 >
    <Nov 19, 2008 3:13:10 PM CST> <Info> <WebLogicServer> <BEA-000215> <Loaded License : C:\bea92\license.bea>
    <Nov 19, 2008 3:13:10 PM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <Nov 19, 2008 3:13:10 PM CST> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>
    <Nov 19, 2008 3:13:11 PM CST> <Notice> <Log Management> <BEA-170019> <The server log file C:\bea92\user_projects\domains\domain\servers\AdminServer\logs\AdminServer.log is opened. All server side log events will be written to this file.>
    <Nov 19, 2008 3:13:15 PM CST> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
    <Nov 19, 2008 3:13:22 PM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY>
    <Nov 19, 2008 3:13:22 PM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <Nov 19, 2008 3:13:30 PM CST> <Error> <HTTP> <BEA-101359> <The servlet weblogic.servlet.AsyncInitServlet init method failed while it was run in the background. The exception was: java.lang.NoClassDefFoundError: com/bea/p13n/management/ApplicationFilePoller$Handler.
    java.lang.NoClassDefFoundError: com/bea/p13n/management/ApplicationFilePoller$Handler
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
         at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
         at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
         Truncated. see log file for complete stacktrace
    >
    <Nov 19, 2008 3:13:37 PM CST> <Notice> <Log Management> <BEA-170027> <The server initialized the domain log broadcaster successfully. Log messages will now be broadcasted to the domain log.>
    <Nov 19, 2008 3:13:37 PM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
    <Nov 19, 2008 3:13:37 PM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>
    <Nov 19, 2008 3:13:39 PM CST> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 127.0.0.1:7005 for protocols iiop, t3, ldap, http.>
    <Nov 19, 2008 3:13:39 PM CST> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "AdminServer" for domain "domain" running in Development Mode>
    <Nov 19, 2008 3:13:40 PM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
    <Nov 19, 2008 3:13:40 PM CST> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
    <Nov 19, 2008 3:22:04 PM CST> <Error> <HTTP> <BEA-101020> <[weblogic.servlet.internal.WebAppServletContext@d6c6a0 - appName: 'consoleapp', name: 'console', context-path: '/console'] Servlet failed with Exception
    java.lang.NullPointerException
         at weblogic.servlet.AsyncInitServlet.service(AsyncInitServlet.java:124)
         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.TailFilter.doFilter(TailFilter.java:26)
         Truncated. see log file for complete stacktrace
    Edited by: user5384782 on Nov 19, 2008 1:42 PM
    Edited by: user5384782 on Nov 19, 2008 3:59 PM

    Thanks for your replies adrian and david.
    The only thing I see different is that eclipse has different arguments when calling the jvm at the top.
    startWebLogic.cmd:
    C:\bea92\JDK150~1\bin\java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000
    -XX:PermSize=48m -XX:MaxPermSize=128m -Xverify:none -da -Dplatform.home=C:\b
    ea92\WEBLOG~1 -Dwls.home=C:\bea92\WEBLOG~1\server -Dwli.home=C:\bea92\WEBLOG~1\i
    ntegration -Dweblogic.management.discover=true -Dwlw.iterativeDev= -Dwlw.testC
    onsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=C:\bea92\patch_weblogic922
    \profiles\default\sysext_manifest_classpath -Dweblogic.Name=AdminServer -Djava.s
    ecurity.policy=C:\bea92\WEBLOG~1\server\lib\weblogic.policy weblogic.Server
    eclipse:
    -hotspot -Xms32m -Xmx200m -Dweblogic.ProductionModeEnabled=
    Eclipse may be calling the cmd I dont know.
    I will try upgrading my eclipse like adrian said, but in the meantime I appreciate any further advice/tips.

  • Classnotfoundexception weblogic.servlet.internal.session.WebLogicSPIFactory

    hi all, it seems that there is not any error in classpath but while deploying the application it says:classnot found exception:weblogic.servlet.internal.session.WebLogicSPIFactory. i have a shared library for this WebLogicSPIFactory class.moreover i added the jar that contains this class into the classpath but it still says "class not found exception"
    please help.

    Hiya,
    Did you manage to fix this problem. I read somwhere is actually a bug in weblogic 610sp2 but 610sp3 has a fix for it. Please confirm.

  • Error loading weblogic.servlet.WlwJSPServlet

    Hello
    Has anyone encountered the following exception in workshop when adding a process
    or web project while the server is running.
    Exception:weblogic.management.ApplicationException: prepare failed for Untitled
    Module: Untitled Error: Could not load Untitled: weblogic.managem
    ent.DeploymentException: [HTTP:101283]ServletContext(id=15265733,name=Untitled,c
    ontext-path=/Untitled): jspServlet "weblogic.servlet.WlwJSPServlet" defined in
    w
    eblogic.xml could not be loaded.
    java.lang.ClassNotFoundException: weblogic.servlet.WlwJSPServlet
    I did not use any of the predefined domains, so is it possible that I am missing
    something while configuring my own.
    Thanks

    Probably. You need a Workshop-enabled domain to run webapps from
    Workshop. I know that weblogic.servlet.WlwJSPServlet is in
    server/lib/knex.jar, but I'm not sure what other jars are required in
    the system classpath.
    You'll either want to use a Workshop domain from the Config Wizard, or
    generate a Workshop domain from the Config Wizard and see what the
    system classpath is for the server and use that in your startup script.
    For processes to work, you need an Integration domain and its system
    classpath.
    Greg
    Mike G wrote:
    Hello
    Has anyone encountered the following exception in workshop when adding a process
    or web project while the server is running.
    Exception:weblogic.management.ApplicationException: prepare failed for Untitled
    Module: Untitled Error: Could not load Untitled: weblogic.managem
    ent.DeploymentException: [HTTP:101283]ServletContext(id=15265733,name=Untitled,c
    ontext-path=/Untitled): jspServlet "weblogic.servlet.WlwJSPServlet" defined in
    w
    eblogic.xml could not be loaded.
    java.lang.ClassNotFoundException: weblogic.servlet.WlwJSPServlet
    I did not use any of the predefined domains, so is it possible that I am missing
    something while configuring my own.
    Thanks

  • Error loading servlet: weblogic.servlet.FileServlet with v. 4.0.3

    Servlets have been working for months. Suddenly, I'm getting
              this error (see below) as soon as I try to hit a servlet.
              The startup process looks normal. I've re-installed WL v 4.0.3
              several time, gotten the license in place, so on and so forth,
              but cannot get around this problem. "weblogic.properties" file
              still reads:
              weblogic.httpd.register.file=weblogic.servlet.FileServlet
              All my servlets and EJBs have been registered, and db connection and
              pool made, as usual. As I said above, everything looks normal until
              I try to hit a servlet.
              [... startup output tidied up a bit ...]
              Thu Jan 27 14:46:05 MST 2000:<I> <ListenThread> Listening on port: 80
              Thu Jan 27 14:46:06 MST 2000:<I> <SSLListenThread> Listening on port: 7002
              Thu Jan 27 14:47:32 MST 2000:<E> <ServletContext-Servlets> Error loading servlet: weblogic.servlet.FileServlet
              Thu Jan 27 14:47:32 MST 2000:<E> <ServletContext-Servlets> java.lang.IncompatibleClassChangeError: class
              weblogic.utils.classloaders.ClasspathClassFinder does not implement interface weblogic.utils.classloaders.ClassFinder
              at weblogic.utils.classloaders.GenericClassloader.findLocalClass(GenericClassloader.java:196)
              at weblogic.utils.classloaders.GenericClassloader.reallyLoadClass(Compiled Code)
              at weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader$Slave.loadClass(RecursiveReloadOnModifyClassLoader.java:221
              at weblogic.utils.classloaders.GenericClassloader.loadClass(GenericClassloader.java:66)
              at weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader.findLocalClass(RecursiveReloadOnModifyClassLoader.java:96)
              at weblogic.utils.classloaders.GenericClassloader.reallyLoadClass(Compiled Code)
              at weblogic.utils.classloaders.GenericClassloader.loadClass(GenericClassloader.java:82)
              at weblogic.utils.classloaders.GenericClassloader.loadClass(GenericClassloader.java:66)
              at weblogic.servlet.internal.ServletContextImpl.loadClass(ServletContextImpl.java:440)
              at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:121)
              at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:85)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:67)
              at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:203)
              at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:505)
              at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:263)
              at weblogic.t3.srvr.ExecuteThread.run(Compiled Code)
              Thu Jan 27 14:47:32 MST 2000:<E> <ServletContext-Servlets> Servlet failed with ServletException ...
              ... and so on with multiple cascading failures.
              Does anyone have any idea as to what could cause this?
              Thanks.
              Paul Furbacher
              [email protected]
              

    Did you register your servlets after reinstalling. FileServlet is only for handling html pages. It has no role in loading servlets.
              "Paul Furbacher [TeamB]" wrote:
              > Servlets have been working for months. Suddenly, I'm getting
              > this error (see below) as soon as I try to hit a servlet.
              > The startup process looks normal. I've re-installed WL v 4.0.3
              > several time, gotten the license in place, so on and so forth,
              > but cannot get around this problem. "weblogic.properties" file
              > still reads:
              >
              > weblogic.httpd.register.file=weblogic.servlet.FileServlet
              >
              > All my servlets and EJBs have been registered, and db connection and
              > pool made, as usual. As I said above, everything looks normal until
              > I try to hit a servlet.
              >
              > ****
              >
              > [... startup output tidied up a bit ...]
              > Thu Jan 27 14:46:05 MST 2000:<I> <ListenThread> Listening on port: 80
              > Thu Jan 27 14:46:06 MST 2000:<I> <SSLListenThread> Listening on port: 7002
              > Thu Jan 27 14:47:32 MST 2000:<E> <ServletContext-Servlets> Error loading servlet: weblogic.servlet.FileServlet
              > Thu Jan 27 14:47:32 MST 2000:<E> <ServletContext-Servlets> java.lang.IncompatibleClassChangeError: class
              > weblogic.utils.classloaders.ClasspathClassFinder does not implement interface weblogic.utils.classloaders.ClassFinder
              > at weblogic.utils.classloaders.GenericClassloader.findLocalClass(GenericClassloader.java:196)
              > at weblogic.utils.classloaders.GenericClassloader.reallyLoadClass(Compiled Code)
              > at weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader$Slave.loadClass(RecursiveReloadOnModifyClassLoader.java:221
              > at weblogic.utils.classloaders.GenericClassloader.loadClass(GenericClassloader.java:66)
              > at weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader.findLocalClass(RecursiveReloadOnModifyClassLoader.java:96)
              > at weblogic.utils.classloaders.GenericClassloader.reallyLoadClass(Compiled Code)
              > at weblogic.utils.classloaders.GenericClassloader.loadClass(GenericClassloader.java:82)
              > at weblogic.utils.classloaders.GenericClassloader.loadClass(GenericClassloader.java:66)
              > at weblogic.servlet.internal.ServletContextImpl.loadClass(ServletContextImpl.java:440)
              > at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:121)
              > at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:85)
              > at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:67)
              > at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:203)
              > at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:505)
              > at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:263)
              > at weblogic.t3.srvr.ExecuteThread.run(Compiled Code)
              >
              > Thu Jan 27 14:47:32 MST 2000:<E> <ServletContext-Servlets> Servlet failed with ServletException ...
              >
              > ... and so on with multiple cascading failures.
              >
              > ****
              >
              > Does anyone have any idea as to what could cause this?
              >
              > Thanks.
              >
              > Paul Furbacher
              > [email protected]
              

  • Problem wth weblogic.servlet.jsp.jspstub

    hai,
              i have three pages in my application iam calling a login page which verifies the user and gets the data from the database
              and iam showing the results in the secod page and logging from there.
              This process iam doing with a stress tool repeatedly.
              iam observing the created objects in the heapinspector the name of the product is optimiztit.
              iam observing the following contents are increasing on each login process.
              The objects which are increasing are as follows.
              weblogic.servlet.jsp.config,
              weblogic.servlet.jsp.jspstub,
              weblogic.socket.IoRecord,
              weblogic.rmi.internal.dgc.DGCServerHelper,
              java.lang.security.exceptions
              and some other weblogic related objects.
              and once they reach the max heap memory my application is runnig outofmemory exception.
              do i need to follow any configration setting to arrest the above object increments.
              can any body give some help to over come this.it would be a great help for me if i get any healp.
              Any ideas/pointers would be welcome. Thanks for your help.
              Thanks,
              gangadhar
              

    Hi,
              It's peculiar that you're seeing JspStub and jsp.config instances
              increasing. Can you convert your application to a stand alone app that
              doesn't do any database access and send me the application with instructions
              on how to run it. If so, I can look into it quickly - otherwise, I can only
              guess and that is a waste of time for both of us.
              Alex
              "gangadhar" <[email protected]> wrote in message
              news:[email protected]...
              > hai,
              >
              > i have three pages in my application iam calling a login page which
              verifies the user and gets the data from the database
              > and iam showing the results in the secod page and logging from there.
              >
              > This process iam doing with a stress tool repeatedly.
              >
              > iam observing the created objects in the heapinspector the name of the
              product is optimiztit.
              >
              > iam observing the following contents are increasing on each login process.
              >
              > The objects which are increasing are as follows.
              >
              > weblogic.servlet.jsp.config,
              > weblogic.servlet.jsp.jspstub,
              > weblogic.socket.IoRecord,
              > weblogic.rmi.internal.dgc.DGCServerHelper,
              > java.lang.security.exceptions
              > and some other weblogic related objects.
              >
              > and once they reach the max heap memory my application is runnig
              outofmemory exception.
              >
              > do i need to follow any configration setting to arrest the above object
              increments.
              >
              > can any body give some help to over come this.it would be a great help for
              me if i get any healp.
              >
              > Any ideas/pointers would be welcome. Thanks for your help.
              >
              > Thanks,
              > gangadhar
              

Maybe you are looking for