Issue with precompiled jsps... - Weblogic

This is a discussion on Issue with precompiled jsps... - Weblogic ; Hello All, I have been trying to find a way to use my precompiled jsps on WL 8.1 and everything seems to go well until I access them for the first time. When that happens, WL just recompiles every jsp ...

+ Reply to Thread
Results 1 to 4 of 4

Thread: Issue with precompiled jsps...

  1. Issue with precompiled jsps...


    Hello All,

    I have been trying to find a way to use my precompiled jsps on WL 8.1 and everything
    seems to go well until I access them for the first time. When that happens, WL
    just recompiles every jsp I access, ignoring the fact that the classes already
    exist and are up to date. I have been through some of the posts in this newsgroup,
    and have tried a lot of different solutions to this problem but in the end it
    happens again.

    Right now I am deploying my app in a Windows 2000 machine, using a .war file,
    and an admin/managed server configuration.

    Is there any way to prevent the recompiling of the jsps? at all?

    Thanks,
    Doug

  2. Re: Issue with precompiled jsps...

    Our config: 8.1 SP1. We resolved by doing the following:

    To get it working, I compile the jps, and put them under
    WEB-INF/classes/jsp_servlet in my war. Then I added this to my weblogic.xml
    descriptor.



    workingDir
    WEB-INF/classes


    Just adding this made it work on my local machine, but wouldn't work on the
    cluster, so I added this to my web.xml descriptor:

    JSPClassServlet
    weblogic.servlet.JSPClassServlet


    JSPClassServlet
    *.jsp




    That will prevent your jsps from recompiling.

    "Doug Becker" wrote in message
    news:40193d40$1@newsgroups.bea.com...
    >
    > Hello All,
    >
    > I have been trying to find a way to use my precompiled jsps on WL 8.1 and

    everything
    > seems to go well until I access them for the first time. When that

    happens, WL
    > just recompiles every jsp I access, ignoring the fact that the classes

    already
    > exist and are up to date. I have been through some of the posts in this

    newsgroup,
    > and have tried a lot of different solutions to this problem but in the end

    it
    > happens again.
    >
    > Right now I am deploying my app in a Windows 2000 machine, using a .war

    file,
    > and an admin/managed server configuration.
    >
    > Is there any way to prevent the recompiling of the jsps? at all?
    >
    > Thanks,
    > Doug




  3. Re: Issue with precompiled jsps...


    Susan,

    I tried your solution and it worked! Thanks!

    However, I had to keep the servlet config out of my web.xml, as it was causing
    my app to crash. I guess it has to do with our security config.

    Still, I wonder why a simple change from "C:\(...)\stage\app\app.war\WEB-INF\classes"
    to "WEB-INF\classes" made it work. I mean, it's still the same directory (I think).
    Am I missing something here?

    Also, how do I know what SP I have installed?

    Thanks,
    Doug


    "susan bartlett" wrote:
    >Our config: 8.1 SP1. We resolved by doing the following:
    >
    >To get it working, I compile the jps, and put them under
    >WEB-INF/classes/jsp_servlet in my war. Then I added this to my weblogic.xml
    >descriptor.
    >
    >
    >
    > workingDir
    > WEB-INF/classes
    >

    >
    >Just adding this made it work on my local machine, but wouldn't work
    >on the
    >cluster, so I added this to my web.xml descriptor:
    >
    > JSPClassServlet
    > weblogic.servlet.JSPClassServlet
    >

    >
    > JSPClassServlet
    > *.jsp
    >

    >
    >
    >
    >That will prevent your jsps from recompiling.
    >
    >"Doug Becker" wrote in message
    >news:40193d40$1@newsgroups.bea.com...
    >>
    >> Hello All,
    >>
    >> I have been trying to find a way to use my precompiled jsps on WL 8.1 and everything
    >> seems to go well until I access them for the first time. When that happens,

    WL
    >> just recompiles every jsp I access, ignoring the fact that the classes already
    >> exist and are up to date. I have been through some of the posts in this newsgroup,
    >> and have tried a lot of different solutions to this problem but in the end

    it
    >> happens again.
    >>
    >> Right now I am deploying my app in a Windows 2000 machine, using a .war file,
    >> and an admin/managed server configuration.
    >>
    >> Is there any way to prevent the recompiling of the jsps? at all?
    >>
    >> Thanks,
    >> Doug

    >
    >



  4. Re: Issue with precompiled jsps...

    Hey Doug,

    Can you explain the exact issue. i.e how if the war deployed
    (archived/exploded) and any specific parameters in web.xml/weblogic.xml

    Can you also let me know the sp version ur using?

    --Nagesh


    "Doug Becker" wrote in message
    news:40193d40$1@newsgroups.bea.com...
    >
    > Hello All,
    >
    > I have been trying to find a way to use my precompiled jsps on WL 8.1 and

    everything
    > seems to go well until I access them for the first time. When that

    happens, WL
    > just recompiles every jsp I access, ignoring the fact that the classes

    already
    > exist and are up to date. I have been through some of the posts in this

    newsgroup,
    > and have tried a lot of different solutions to this problem but in the end

    it
    > happens again.
    >
    > Right now I am deploying my app in a Windows 2000 machine, using a .war

    file,
    > and an admin/managed server configuration.
    >
    > Is there any way to prevent the recompiling of the jsps? at all?
    >
    > Thanks,
    > Doug




+ Reply to Thread