How to switch to a different JSP / EL implementation with WebLogic 10g?

Hi everyone,
we have a web application (JSP + servlets), that runs fine on Tomcat 5.5. We are porting it to WebLogic 10g3 - we've solved all of the issues except one. Some of the EL expressions are processes correctly in Tomcat, but it fails in WebLogic.
For example we have a custom tag (component inherited from a SimpleTag), that renders a combobox. The component has "textExpression" attribute, that it evaluated like
String text = (String) pageContext.getExpressionEvaluator().evaluate(textExpr, String.class, pageContext.getVariableResolver(), null);
but if the expression has two parts - i.e. something like "{...} {...}" - the parse fails, for example with the following exception:
javax.servlet.jsp.el.ELParseException: Error occured while trying to parse '${(option.partner.jmeno eq null && option.partner.prijmeni eq null && option.partner.nazevSpolecnostiFoPo ne null) ? option.partner.nazevSpolecnostiFoPo : option.partner.jmeno } ${(option.partner.jmeno eq null && option.partner.prijmeni eq null && option.partner.nazevSpolecnostiFoPo ne null) ? '' : option.partner.prijmeni}'
weblogic.jsp.internal.jsp.el.ExpressionEvaluatorImpl.parseEL(ExpressionEvaluatorImpl.java:171)
weblogic.jsp.internal.jsp.el.ExpressionEvaluatorImpl.parseExpression(ExpressionEvaluatorImpl.java:134)
weblogic.jsp.internal.jsp.el.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:125)
Is it possible to switch the JSP / EL engine to Jasper? I'd expect some property pointing to ExpressionEvaluator implementation / parameter in the deployment descriptor but I haven't found anything like that yet.
thanks
Tomas

Anyway I've achieved some progress with the Jasper - I've found that when precompiled using the JspC compiler from Jasper package, the resulting servlets are inherited from org.apache.jasper.runtime.HttpJspBase and thus should probably use the "proper" JSP EL implementation. But I still can't use these servlets from Weblogic, as I receive java.lang.NoClassDefFoundError: Could not initialize class org.apache.jasper.runtime.PageContextImpl.
java.lang.NoClassDefFoundError: Could not initialize class org.apache.jasper.runtime.PageContextImpl
     at org.apache.jsp.WEB_002dINF.jsp.servletExceptionFragment_jsp._jspService(servletExceptionFragment_jsp.java:64)
     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
     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:292)
     at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
     at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:502)
     at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:251)
     at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:145)
     at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:251)
     at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1144)
     at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:880)
The servlet is compiled properly, the jasper-runtime.jar is in the WEB-INF/lib directory, yet the weblogic is not able to load the PageContextImpl class :-(
Edited by: user6510516 on 25.2.2009 4:14

Similar Messages

  • How to create users and groups using WLST Offline with Weblogic 8.1.4

    How to create users and groups using WLST Offline with Weblogic 8.1.4?
    Any ideas?

    Hi this is how i created a user using WLST Offline?
    cd('/Security/' + domainName)
    # Delete the default user name weblogic
    # incase you want to remove the defualt user weblogic
    delete('weblogic','User')
    # Creating a new user defined
    create(userName, 'User')
    # Setting the password of the user you created.
    cd ('/Security/' + domainName + '/User/' + userName)
    cmo.setPassword(password)
    Regards
    Makenzo

  • JSP 2.0 with JDev 10g (9.0.5.0.0) preview

    Hi everybody,
    Is it possible to compile JSP 2.0 files with JDev 10g. If so, how ?
    I added a new library named JSP20 Runtime which points to the JSP jars from OC4J 10G (10.0.3). I added this library to my project in replacement of the default JSP Runtime library. It seems that something else must also be done to compile my JSP.
    Got any idea ?
    After this, to run my JSP, I must also figure how I can bypass the default embedded OC4J and use the preview version of OC4J 10.0.3. Will it be mandatory to deploy my project to the standalone OC4J ?
    Thank you

    tagdir is not a taglib attribute. Replace the tagdir attribute with the uri that points to the file something like this:
    <%@ taglib prefix="tags" uri="uri-where-file-is"/>
    Richard

  • JSP Refresh Problems with Weblogic 8.1

    While Integration testing with Weblogic 8.1, when I make any changes in the Java classes (like interface changes), the JSPs are not able to recognize them. If the interface being used by a JSP changes, the JSP starts giving compilation errors. The other Java classes of the project though, run fine with the changes.
    Have wasted a lot of time in this situation . PLEASE ANY1 HELP!!!
    regards,
    SR

    Not sure on the first problem, store-version-in-cache is a valid element. Make sure you are using the same version of the Mapping Workbench and the runtime library. Please attach the XML for the version locking policy that was generated and the error message.
    The abstract method error seems to indicate that the setFetchSize method is missing on your driver.
    setFetchSize has been part of JDBC and JDK since JDBC 2.0/JDK 1.2, how old is the driver that you are trying to use? I noticed the COM is uppercase, so I assume this is a very old driver, can you use the more update version? TopLink requires JDK 1.3 support as a minimum.

  • How to switch to a different app store? I am trying to update my apps but am getting a popup that says your account is not valid for use in the uS store. you must switch to the Canadian Store before purchasing. How do I do this?  I can't find the place

    I am trying to update my apps but keep getting a popup that says "Your Account is not valid for use in the US store. you must switch to the Canadian Store before purchasing." I can not find where to do this! Please help! Thank you!

    [Apologies to pdesteele for this slight OT bit, but it's all relevant to your question, I think ]
    We do have a place in the UK which we could use as an address, but for various reasons it gets a bit complex even though we still have a UK bank account. We moved to France when there were no iDevices and apps around, just bought the occasional music, so it wasn't a problem. Funny thing is I can't even download the free UK bank app because it's not available in the French store .
    I'll live with the problem for now as we plan to move back to the UK in a year or so - we miss the weather .

  • How to switch from legacy to native Android app with minimal interruption

    It's gotten to the point where I'm recommending that my client switch their DPS app for Android from legacy to native. Can anyone offer any insight into the process of changing that over for an existing app? Most of the Adobe support documents are written for starting a new app in native format. I need to give the client an idea of how the transition will affect existing subscribers on the Android platform (i.e. will they need to download a new app, or will it work as an update) and what we can do to retain readers if they do need to download an entirely new app.
    Complicating the situation is that the client likely will want to keep the legacy app as long as we can to continue offering it on Amazon, because Kindle devices account for 60 percent of our non-iOS downloads.
    Thank you!

    To replace the existing legacy viewer, simply use the same Bundle ID used in the legacy app when you build the native Android viewer, and then submit the app as a new version in the Google Play Developer Portal. To locate the Bundle ID for the legacy viewer, open the desktop version of DPS App Builder and look at the list of apps. It might include a .air prefix, depending on when the app was built. If it does, use the .air prefix when you specify the Bundle ID for the native viewer, even though it's not an AIR app. The Bundle ID just needs to be the same. If you want two separate apps--which I don't recommend--use a different Bundle ID and submit it in the Developer Portal as a new app.
    The Amazon app is a different app that's unrelated to the Google Play app. You can continue to leave the app in the Amazon Appstore.

  • How can I prevent two different profiles from interfering with one another?

    I have a serious profiles problem. I created a new profile with Profile Manager and then copied a well-established profile's contents into its directory before starting the new profile. Now, when I start either profile, it contains whatever tabs I had in the previously opened profile. I deleted a bunch of tabs and a window from the new profile but when I opened it after having opened and closed the old profile, the tabs and window reappeared. If I open some tabs in the new profile and then close it and open the old profile, the tabs appear in it, and vice versa.
    I open the original profile through a shell script:
    <pre>/Applications/Firefox.app/Contents/MacOS/firefox -P "profile 1"</pre>
    I open the second one the same way but with the <i>-no-remote</i> parameter:
    <pre>/Applications/Firefox.app/Contents/MacOS/firefox -P "profile 1 clone" -no-remote</pre>
    Why do the two profiles collide like that and how can I prevent this from happening?

    Are you using Sync then ?
    Or are you setting a bunch of tabs as the homepage ?
    If you cloned a profile they will start off the same and that will include the set of open tabs from the file ''sessionstore.js'' however profiles are independent and so should have there own sessionstore and History once they have been used.

  • JSP not reloading with weblogic 4.5.1 & SP13

    Hi All,
              We are using weblogic 4.5.1 & We recently upgraded to service pack 13 on Sun
              Solaris 2.6, JDK1.1.7b
              It seems that the JSP gets recompiled if the JSP-file changes(in fact for
              each hit from browser, its compiling again!!), but some times it isn't
              reloaded (the changes are not visible in the generated HTML-file).
              It seems, whenever JSP changes, weblogic recognizing that JSP has changed &
              its compiling. But its SOME TIMES not reloading the class. So whenever
              new request come from browser for that JSP, again its compiling the JSP!!
              but again its not reloading. If I restart the weblogic server, its working
              fine. BUt we don't want to bounce the server for each change in JSP..
              Any help is appreciated.
              thanks,
              -ramu
              

              Make sure that your JSP workingDir is NOT in your WEBLOGICCLASSPATH. If it is - the JSP will load correctly
              or compile and load correctly the first time. Afterwards it will compile, but not reload.
              Mike
              "Ramu" <[email protected]> wrote:
              >Hi All,
              >
              >We are using weblogic 4.5.1 & We recently upgraded to service pack 13 on Sun
              >Solaris 2.6, JDK1.1.7b
              >
              >It seems that the JSP gets recompiled if the JSP-file changes(in fact for
              >each hit from browser, its compiling again!!), but some times it isn't
              >reloaded (the changes are not visible in the generated HTML-file).
              >
              >It seems, whenever JSP changes, weblogic recognizing that JSP has changed &
              >its compiling. But its SOME TIMES not reloading the class. So whenever
              >new request come from browser for that JSP, again its compiling the JSP!!
              >but again its not reloading. If I restart the weblogic server, its working
              >fine. BUt we don't want to bounce the server for each change in JSP..
              >
              >Any help is appreciated.
              >
              >thanks,
              >-ramu
              >
              >
              

  • How to switch  to an other  appstore in my iphone?

    Pls, help me how to switch to a different store in my Iphone.

    Settings > iTunes & App Stores > Apple ID: > View Apple ID > Country/Region...change here.
    Note: requires a verified billing address located in the country whose store you want to use.

  • Is it possible to use the same Switch for two different clusters.

    I have 10g Rac setup on windows.
    Now I am planning to install 11gR2 on different servers.
    Is it possible to use the same Switch for two different clusters.

    user9198027 wrote:
    I have 10g Rac setup on windows.
    Now I am planning to install 11gR2 on different servers.
    Is it possible to use the same Switch for two different clusters.
    Yes.  Technically there will not be any conflict as long as the private addresses used by the 2 clusters do not collide, and provided that the switch's port capacity and bandwidth will not be exceeded.
    Your NA (netadmin) can also configure the switch to separate the 2 Interconnects from one another (called partitioning when using Infiniband) - if the switch supports such features.
    A major consideration is not to make the switch, public. That typically cause a range of problems and can have a serious impact on an Interconnect. But using 2 private networks on the same infrastructure should not have the same problems - if configured and implemented correctly.

  • Missing fonts: How to switch off the coloured background?

    Hallo!
    I am making JPEG-Snapshots of InDesign CS4 documents.
    But whe a font is missing the text has a background colour.
    Does anybody know how to switch of the background colour for text with missing fonts?
    Thanks,
    Alois Blaimer

    Hi Alois,
    I would expect this is due to kBNTextAdornmentBoss. Please verify and use kRemovePageItemAdornmentCmdBoss to remove the adornment from whereever they are applied to (story / textframe / ...).
    HTH,
    Peter Schülke

  • How can I use the same object in the different jsp files?

    I am doing a project. I have finished my jave source files and compiled them successfully. And I also wrote a main method to test my classes, they also worked well. Now I am trying to use my jave code in the jsp files. But I meet a problem, in my method of java source file, I can generate a object of a class, and use it in the whole main method. But in the different jsp files, how can I do same thing?
    For example, in the .java file,
    Vector vl = new Vector();
    While ...{
    vl.add(...)
    In each of my .jsp file I want to do one loop of the above, meanwhile I want to do that in the same object.
    I hope you can understand what I mean. Really need your help!

    put your object into a session and you can the use it in all the jsps as long as the session is valid. Or you could create a static variable in the class that only creates one instance off an object and then create a static method to return this object.

  • How to go to different jsp pages based on different selection?

    I put SELECT and OPTION in the page. I want to go to different jsp
              pages when different OPTION been selected, but there is only one URL
              in the action attribute. How can I do it ?
              

    add a javascript on the select tagg:
              onchange=javascript:jump(this);
              Then make a javascript to pull out the url from the value attribute in the
              selected option tagg.
              http://javascript.internet.com/
              "hgui" <[email protected]> wrote in message
              news:[email protected]..
              > I put SELECT and OPTION in the page. I want to go to different jsp
              > pages when different OPTION been selected, but there is only one URL
              > in the action attribute. How can I do it ?
              

  • I just updated my iphone to 5 and it switched to a different language. how do you change it back to English

    i just updated my iphone to 5 and it switched to a different language. how do you change it back to English

    Go to:
    Settings (gear icon)
    Scroll to General (gear icon) (Third option box from top)
    Scroll all the way down > Select Third option from bottom (international)
    Select first option (language)
    Select English
    Select Done

  • How do you switch to a different apple id in iMessage?

    How do you switch to a different Apple ID in iMessage?

    i tried that unsuccessfully.  when I added the 2nd email address i got a popup that says "Unable to verify email because it is already in use."  Thats the one I would like to switch to.  So.... i would like to delete the current apple ID and replace it with the Apple ID that is "already in use".

Maybe you are looking for

  • [Solved] postfix local mail delivery fails

    Hi Guys, on my home pc i use postfix (gmail as a smtp relay) and fetchmail for sending/receiving mails, this works very well, however sending a mail to a local user fails, I'm lost here and need your help guys. if i send a mail like : $>echo "Test" |

  • Invoke Adobe reader in BB10, how to open encrypted files without prompting for password.

    Hello All, I am developing a BB10 application that invokes Adobe Reader as a card for viewing my encrypted pdf books, all books have the same password and I don't want to expose the password to the users to prevent copying copyrighted books. Is it po

  • Looking for a way to "deselect all" and "hold page" for bsp tableview

    Hallo Experts, I'm quite new to bsp programming. My first application is nearly complete, but I'd like to add some more convenience. I got two issues to solve, both connected with the tableview element. 1) User is clicking through the pages of the ta

  • Video is not scaling properly when importing a flv file into dreamweaver

    Hi I have recently imported a flv video into dreamweaver and i have specified the width and height (including skin size)  but i keep getting white margins at the bottom or the top of the video.  It has nothing to do with the css because ive checked a

  • Nokia Maps / Ovi Maps Installer

    Hi All, I heard that we were now able to get maps and navigatoin for free, is this correct? I have a n95 and when I go to use the navigation feature in Nokia Maps (just updated it), it says that navigation is a premium service and that I have to pay