Using additional jars in portal (jregex1.2_01.jar ) and use of javabeans

Hi
I want to use code that parses regular expressions with java and to that end I would like to use jregex1.2_01.jar (if there is a native jar file in oracle that does the same, that woule be good, but I could not find anything that refers to regex or jregex).
I tried to put that new jar file in two locations in the portal area under WEB-INF\lib, namely in:
C:\oracle\ora9ias\j2ee\OC4J_Portal\applications\portal\portal\WEB-INF\lib
where there are a lot of other jar files and also in:
C:\oracle\ora9ias\j2ee\OC4J_Portal\applications\jpdk\jpdk\WEB-INF\lib
However, when I try to compile my code, it fails on the import line:
import jregex.util.io.*;
(the line itself is correct)
Obviously the jregex1.2_01.jar file is not in my classpath, but when oracle was installed, it did not create a CLASSPATH environment variable, so I would not like to make one that may exclude others oracle jars that then are not listed in CLASSPATH.
I have two questions:
1. How does import additional jars into Oracle, so that they can be used by java programs, and are there any inherent dangers in doing that?
2. Where do I place my class file, if I want to use that class file as a javabean. The bean will be referred to by a jsp file which has been imported as a portlet. I assumed I would place my beans under
C:\oracle\ora9ias\j2ee\OC4J_Portal\applications\jpdk\jpdk\WEB-INF\lib
as my jsp files are residing close to that, namely in:
C:\oracle\ora9ias\j2ee\OC4J_Portal\applications\jpdk\jpdk\htdocs\myjsps
but I am not sure.
Can anyone help me with setting up additional jars so they can be used by java files (to be used as javabeans) and with the location and use of javabeans in Oracle Portal?
Any help will be greatly appreciated.
Thanks very much
Hugo

Hi Hugo,
When developing server-side applications, forget about the CLASSPATH environment variable. You must instead become familiar with how the server's classloading scheme operates.
From your post, it looks as though you already are familiar to some degree, because you have correctly identified one of the places to put extra jar files, namely WEB-INF/lib.
At first glance, I would have expected your import to work with the jar file located in WEB-INF/lib - have you made sure you bounced the server?
Also, make sure that any dependencies of jregex are also included in WEB-INF/lib.
Another thing to try is add an entry into ${OH}/j2ee/OC4J_Portal/config/application.xml which explicitly references the jregex jar file.
Regards,
Gareth
(PDK team)

Similar Messages

  • You can't open photo library using this version of iphoto. you have made changes to your photo library using a newer version of iphoto. please quit and use the latest version of iphoto

    you can't open photo library using this version of iphoto. you have made changes to your photo library using a newer version of iphoto. please quit and use latest version of iphoto. iphoto 11 is installed.

    This is a message you got?
    If so, as your post isn't clear, it may be a bogus message caused by a corrupt database.
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

  • I have boot camp in my mac to use autocad. Can I use the magic mouse on my windows side and use it to work in autocad?

    I have boot camp in my MacBook Pro to use AutoCAD. Can I use the magic mouse on my Windows side and use it to work in AutoCAD?

    Yes and no. The gestures wont work so it just becomes a regular scroll-wheel mouse.

  • I am considering purchase of the new iPad and already own iphone 3GS, can I use my phone to tether to the iPad and use the phones 3G connection? This will allow me to buy the cheaper version of the iPad without 3G.

    I am considering purchase of the new iPad and already own iPhone 3GS, can I use my phone to tether to the iPad and use the phones 3G connection?
    This will allow me to buy the cheaper version of the iPad without 3G.

    You can tethe, but depending on carrier you may need to pay for that option... I've decided to have my phone on one provider and my ipad on another so i always have connectivity... More expensive in the long run, but I need to make sure I am always "on" for work
    YMMV

  • Webcenter Spaces/Portal integration with UCM and use of FrameworkFolders

    Hi All,
    We are looking at the possibility of using Desktop Integration Suite organisation wide.. We are also in the process of an organisation wide roll out of Webcenter spaces.
    The preference is to use FrameworkFolders because its replacing the folders_g component and address the limitations posed by folders_g (for example can have a max of only 1000 content within a folder, time to load the pages when a folder has large no of content items).
    Since only folders_g can be used for integrating with Webcenter Spaces/Portal we are not sure of what our strategy should be. Is there plan to use framework folders with Webenter in the future?
    Thanks,
    Manjunath
    Edited by: 890922 on 14-Aug-2012 18:20

    Since only folders_g can be used for integrating with Webcenter Spaces/Portal we are not sure of what our strategy should be. Is there plan to use framework folders with Webenter in the future?Certainly there are. Unfortunately, no exact date/release has been communicated so far. If you need a quick implementation (following few next months) I'm afraid you will have to go with folder_g

  • IPad2 and a new MacBook running Lion, Both Devices use the same Apple ID which is a Hotmail eMail id. Can I create a new iCloud eMail Id and use iCloud eMail and continue to use my Hotmail Id for my Apple Id and use it for iTunes, iCloud

    I have an iPad2 and a new MacBook running Mountain Lion. Both Devices use the same Apple ID which is a Hotmail eMail id. Can I create a new iCloud eMail Id and use iCloud eMail and continue to use my current Hotmail Id for my Apple Id for iTunes, iCloud.
    Note, I will use both Hotmail and iCloud eMail.

    Welcome to the Apple Community.
    In order to change your Apple ID or password for your iCloud account on your iOS device, you need to delete the account from your iOS device first, then add it back using your updated details. (Settings > iCloud, scroll down and hit "Delete Account")

  • Using an external monitor with the computer closed and using a bluetooth ke

    Can you use a bluetooth keyboard and mouse with the computer closed and using an external monitor?

    Yea i do this all the time on my big screen I just go in to system preferences and bluetooth and tell it to allow devices to wake the computer and then close the desplay then wake it with mouse or keyboard.

  • HI, i am using a 17inch macbook pro which i bought in January 2011. Lion 10.7.3. I have used a HDMI cable from my second display and used the thunderbolt adaptor to get access to this second screen. However, every time i do this,i lose my internet? help?

    I am using a 17inch macbooj pro that i bought in Jan 2012. Runs Lion 10.7.3. I used a second non apple screen and used a thunderbolt (DVI to thunderbolt) adaptor to used my screen. However everytime i do this my macbook pro loses its internet connectivity. I also use the firewire for my audio external soundcard but dont think this makes any difference.
    Any help please?

    When you have kernel panics, the pertinent information is in the panic report.
    These instructions must be carried out as an administrator. If you have only one user account, you are the administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad and start typing the name.
    In the Console window, select
              DIAGNOSTIC AND USAGE INFORMATION ▹ System Diagnostic Reports
    (not Diagnostic and Usage Messages) from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar.
    There is a disclosure triangle to the left of the list item. If the triangle is pointing to the right, click it so that it points down. You'll see a list of reports. A panic report has a name that begins with "Kernel" and ends in ".panic". Select the most recent one. The contents of the report will appear on the right. Use copy and paste to post the entire contents—the text, not a screenshot.
    If you don't see any reports listed, but you know there was a panic, you may have chosen Diagnostic and Usage Messages from the log list. Choose DIAGNOSTIC AND USAGE INFORMATION instead.
    In the interest of privacy, I suggest that, before posting, you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if it’s present (it may not be.)
    Please don’t post other kinds of diagnostic report.
    I know the report is long, maybe several hundred lines. Please post all of it anyway.

  • Using a Meter control in LV Touch Panel, and using shared variables that are custom controls.

    I Just started using LV touch Panel module with an NI TPC-2106.
    I have two differenct problems:
    1) I was planning on using the "Meter" control quite a bit. I can set up the meter exactly how I like on the host PC, but on the touch Panel computer it seems to ignore my adjustments, mainly the start and end of the scale - i.e. I would like control to run from 0 to 360 with 0 straight up, using the entire circle. However, on the Touch panel computer it always puts 0 at about 7 o'clock and 360 at about 5 o'clock. I have also tried adding markers to no avail.
    2) I am communicating with a compact fieldpoint controller. I can creat a shared variable that is a simple double with no problems. However, I have some shared variables that use a custom control for the variable type - bascially a cluster with a couble doubles, a time stamp, and an enumeration. It lets me drag the shared variable into my diagram, but it seems to ignore it when I run it.

    Ipshita_C,
    - I am using LV 8.6.1f1and LV Touch Panel 8.6.1.
    - I have attached a simplified VI that shows how I want to use the meter. Notice that the placement of the endpoitns does not work correctly on the touch panel, and that it ignores the arbitrary markers that I placed.
    - I also have included an XY graph control that displays on the TPC with margins around the graph area that I removed from the graph control.
    - For the shared variable, it appears to be an issue related to the touch panel, not fieldpoint. I found another thread in this forum that mentioned that clusters containing Enumerations do not work in shared variables on the touch panel. I changed the enumeration to an integer and it now works fine.
    In general, there seem to be a disappointing number of limitations in the touch panel implementation. My biggest concern is that I have not found any documentation from NI that lists these limitations. I seem to have to try things out and see what works and what does not work. Can you point me to a comprehensive list of touch panel modules limitations?
    Attachments:
    test 2.vi ‏10 KB

  • I'm no longer able to use hotmail. I'm on windows 98 and use firefox 2.0.0.20

    Just today, about an hour ago, I can no longer work the hotmail site.
    I can't upgrade my system, it's windows 98. I use firefox 2.0.0.20
    == URL of affected sites ==
    http://www.hotmail.com

    I

  • I am using OS 10.6.8 on my iMac and using Appleworks V 6. I can drag a document or spread sheet to pages V4.1 or numbers v 2.1 and convert them. If i upgrade to Mavericks can i continue to do this?

    I am using OS 10.6.8 on my iMac. I am also using Apple Works V 6, Pages V 4.1 and Numbers V 2.1.  I can drag a document or spreadsheet from Apple Works to Pages or Numbers icons on my doc and convert them to Pages or Numbets documents and spreadsheets.  If I upgrade my OS to Mavericks will I be able to continue these conversions?

    Thanks for your help.  Even though you can drag all documents or spreadsheets in an Appleworks folder at once to a Pages or Numbers icon on the Doc, you end up with all items as seperate Pages or Numbers documents or spreadsheets. Then you the have to move each one into new folder.  Is there a way to transform an entire Appleworks folder into a Pages or Numbers folder?  It would make for much less work.  Again, I appreciate your assistance.

  • Problem in using 2 IDs for iTunes music purchase downloads and using iTunes Match for 1 ID

    Dear support managers,
    We are using 1 macbook pro and 2 apple ID for purchasing iTunes music together (Me and my wife).
    Actually, I have bought 1 year service of iTunes match on my apple ID and have been using well the service after download the purchased musics under the apple ID I am using.
    But once my wife associated the macbook pro with her apple ID to download the musics she purchased,
    I have not been able to use the iTunes Match service I have subscribed already.
    The message said
       "This computer is already associated with an Apple ID. You can use iTunes Match on this computer with just one Apple ID every 90 days. You cannot associate this computer with a different Apple ID for 90 days"
    I can neither purchase another computer for solving this situation nor want to purchase another iTunes Match service on my wife's apple ID.
    Please help me out to solve this issue.
    Thanks and best regards,

    Hi,
    You can only use one Apple ID with iTunes match. Purchasing another match subscription using wife's Apple ID is not a solution. I can only suggest that you use your ID for match and all iTunes music purchases.
    Jim

  • HT204053 Old Apple ID used with new iPhone OS, how to sync and use new Apple ID?

    My iCloud account on my iPhone is my old Apple ID. My MacBookPro and iTunes are with the new Apple ID. I updated my iPhone with the new operating system and my iCloud account was with my old Apple ID and wouldn't accept the Apple ID or password so I had to skip the step where it synced my FaceTime, iMessage and iCloud. How can I change my Apple ID on my phone so it reflects my Apple ID on all my other devices?

    Welcome to the Apple Community.
    In order to change your Apple ID or password for your iCloud account on your iOS device, you need to delete the account from your iOS device first, then add it back using your updated details. (Settings > iCloud, scroll down and hit "Delete Account")

  • Is there a way to download and use an old verison (3) while also maintaining and using the newer verion? One of my clients using an invocing system that only supports up to version 3.

    I have a major client whose invoicing system only supports up to version 3 of Firefox. I'd love to be able to invoice them from home, but I don't want to downgrade my newest version of Firefox just for them.
    Is there a way to download Firefox 3 and install it, while still maintaining my version 6? I am using a new MacBookPro with OS 10.6.8.

    you can restore from your backup again just to get the notes. once you've restored from the backup, copy your notes into your icloud notes group or email them to yourself - basically, get them somewhere else so they're not just locally stored on the device. once you've moved your notes elsewhere, restore the device as new again like apple had you do. this will again put a fresh version of the operating system on your phone like it has right now
    there's no other way to access the notes that are in your backup

  • HT4437 I get good response when I use the remote app but when I try and use airplay it could be five minutes between frames. Any ideas?

    Seems to work very sporadically on airplay but no problem on Remove app.

    Hi Bob,
    When I went to see what version of the TDM Excel Add-in I had installed, I discovered that my previously working TDM Excel Add-in was suddenly exactly reproducing your symptoms (totally unresponsive) -- I too have Win XP SP2 and Excel 2003.  I then followed the steps from the web site that Julia posted above:
    1)  Manually deleted the TDM Excel Add-in from the Excel toolbar
    2)  Manually uninstalled the "Excel TDM Add-in" from "Add and Remove Programs"
    3)  Manually installed the "Excel TDM Add-in" from this web page:
         http://zone.ni.com/devzone/cda/epd/p/id/2944
    Now when I restart Excel, I get the floating TDM Excel Add-in icons, and they work perfectly.  I was able to verify that the version that works on my computer is indeed 2.0.1.4.  By the way, how do you know what version you're using, if the "About" icon is unresponsive?
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

Maybe you are looking for