New to JAR

Hi everybody!
I'm facing a small problem . I want a copy of my mySQL driver in my $CATALINA_HOME/server/lib directory . I'm using the following driver :
org.gjt.mm.mysql.Driver
There is a class file Driver.class file in org/gjt/mm/mysql directory .
But server/lib would accept only jar file .So how to convert the class file into jar file?
Thanks .

Wasn't that class in a jar file when you got it? That jar file is what you need. Using the Driver class by itself won't work anyway because it needs all the other classes in the jar file.

Similar Messages

  • SessionManager doesn't work with new xerceimpl.jar?

    Hi,
    Does anybody know the solution to the problem below?
    The toplink sessionmanager, which loads sessions.xml for database session pooling, doesn't work with new xerce parser(xerceimpl.jar). It is tieing to old xerces.jar parser, which has been upgraded to have more functions.
    Thank you in advance.
    Praveen

    Hi Raanan,
    It works with old xerces.jar. But in-order to get new functions from new xerces jars from apache, I got xml-apis.jar, xercesImp.jar. They got modified from old ones. So this is breaking toplink sessions.xml load to work.
    Did you face this problem?
    Thanks
    Praveen

  • I am new with JAR files please help me

    Hi Dear All,
    I am new with JAR files, I know concept, but dont know how to careate JAR, and how do i use it?
    Please help me.
    Thanks

    This tutorial covers that:
    http://java.sun.com/docs/books/tutorial/deployment/jar/index.html

  • [svn:bz-trunk] 15259: Update the blazeds-core Eclipse project . classpath to point to the new jgroups jar

    Revision: 15259
    Revision: 15259
    Author:   [email protected]
    Date:     2010-04-07 10:23:37 -0700 (Wed, 07 Apr 2010)
    Log Message:
    Update the blazeds-core Eclipse project .classpath to point to the new jgroups jar
    Modified Paths:
        blazeds/trunk/development/eclipse/projects/java/blazeds-core/.classpath

    Revision: 15259
    Revision: 15259
    Author:   [email protected]
    Date:     2010-04-07 10:23:37 -0700 (Wed, 07 Apr 2010)
    Log Message:
    Update the blazeds-core Eclipse project .classpath to point to the new jgroups jar
    Modified Paths:
        blazeds/trunk/development/eclipse/projects/java/blazeds-core/.classpath

  • [svn] 963: New asc.jar from revision 958.

    Revision: 963
    Author: [email protected]
    Date: 2008-03-27 09:49:26 -0700 (Thu, 27 Mar 2008)
    Log Message:
    New asc.jar from revision 958.
    Modified Paths:
    flex/sdk/trunk/lib/asc.jar

    Revision: 963
    Author: [email protected]
    Date: 2008-03-27 09:49:26 -0700 (Thu, 27 Mar 2008)
    Log Message:
    New asc.jar from revision 958.
    Modified Paths:
    flex/sdk/trunk/lib/asc.jar

  • Reloading a new JSP/Jar in Tomcat Server

    HI,
    I face these problems now.
    My environment is Oracle Jdev 3.2.3 for JSP development. Tomcat4.0.1 as Application server plugged into IIS webserver and Using oracle 8i as the database
    1. Whenever I update my JSP's and Application jar files, I copy from staging area to the deployment Tomcat Server application specific directories. The files are getting copied(overwritten). After that when i try to access my context/application in Tomcat server, my browser simply tries to browse and doesn't bring up the homepage of my application(say index.jsp).
    I need to stop the tomcat server and restart again. Then I get it.
    Is there anyone who came across this error and possibly help me to solve this?
    2. I have a JSP (say emplist) which shows all the employees details with empno, ename, depyno and sal as 4 columns.
    I have a up and down arrow images near the column names. Upon clicking it, it will call the same page and sort the column either desc or asc based on the previous display order. The column on which the Arrow button displayed is stored in session variable.
    This sorting in JSP perfectly works in JDeveloper and when i run using WebToGo Server. But when i deployed in Tomcat,This sorting doesn't work.
    The page simply stands. and when i go back and front browsing my other pages of application, i lose the position of the arrow button and it behaves unexpectedly by showing up in some other columns.
    is there any reason for this kind of behaviour?
    3. In my JSP files, I log the user actions into a text file in the server. IN WTG, I am able to specify the path of the output directory.
    But in Tomcat Server, by default the output files are getting created in C:/Tomcat/bin directory.
    I donno how to set an output directory, where the files will be written to and set an input directory from where my custom application properties files will be read from.
    Can anyone help me in telling in which file and what attributes, i need to set the input and output directory path in Tomcat Server?
    Can someone help me in giving suggestions or solutions for the above problems?
    Thanks a lot in advance.
    Thanks
    Hari

    I added a Context Tag in server.xml file in the Host Tag
    <Context docBase="struts-blank">
    </Context>and so following comes up in the Server Console Window
    INFO: Starting service Catalina
    Feb 7, 2005 11:06:30 PM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/5.5.2
    Feb 7, 2005 11:06:30 PM org.apache.catalina.core.StandardHost start
    INFO: XML validation disabled
    java.lang.reflect.InvocationTargetException
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
            at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
    Caused by: java.lang.NullPointerException
            at java.util.Hashtable.put(Hashtable.java:396)
            at org.apache.catalina.core.StandardContext.resourcesStart(StandardConte
    xt.java:3707)
            at org.apache.catalina.core.StandardContext.start(StandardContext.java:3
    934)
            at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1003)
            at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
            at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1003)
            at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:420
            at org.apache.catalina.core.StandardService.start(StandardService.java:4
    50)
            at org.apache.catalina.core.StandardServer.start(StandardServer.java:196
    7)
            at org.apache.catalina.startup.Catalina.start(Catalina.java:541)
            ... 6 moreThanks in advance
    CSJakharia

  • I18n JSTL / How to connect to new JAR holding new properties file?

    Hi there
    This is concering i18n and how (on earth;) JSTL knows where to find the according properties files that hold all the textual information.
    Okay. I have a piece of software that works fine and has the i18n mechanism running very nicely.
    I found the properties files in WEB-INF/lib/i18n.jar in a folder 'resources/bundle/'. They all prefix 'i18n' so JSTL makes use of them like this:
         <fmt:bundle basename="resources/bundles/i18n">
              <fmt:message var="thumbnailText" key="thumbnail.label" />
    So, we work on a new project right now based on this software. How can I add new project-related properties files?
    What I did:
    1) I created a new properties files having new textual information on new labels, etc.
    2) Put this in a folder of the new project JAR, which is in WEB-INF/lib now.
    3) Referenced the basename of fm:bundle according to this folder (including correct file prefix).
    -> Doesn't work.
    Is it that by convention all i18n information will be searched for in a JAR that must be named 'i18n.jar'?
    I'd greatly appreciate any hints
    Cheers
    André

    First, a sidenote to the SUN team: Before beeing able to reply, the forum denied me access unless I comitted to a screen name. Using my 'AndreKuhn' screen name got me 'Already in use'. Yes, of course. By me! So I had to pick AndreKuhn2 which is a little annoying. There seems to be something wrong with your system.
    Okay, back to the issue.
    Thanks evnafets for your notions! I have 2 JARs having i18n information. One had already been in use (successfully) by the underlying system. It's the one mentioned above ('i18n.jar'). Now there is a second one. Actually used the same way (technically) with different folders and namings. It goes like this:
    <fmt:bundle basename="resources/i18n/bdficp">
              <fmt:message var="titleText" key="publishLink.config.title" />
    With additional i18n information in 'WEB-INF/lib/<PROJECT-NAME>.jar'. Precisely in a file 'resources\i18n\bdficp_de.properties' having the line:
    publishLink.config.title=Just\ another\ title.
    Which should be the one referenced in the snippet above. Still the app gives me: ???publishLink.config.title???
    Any clue? I'd greatly praise your name across the rooms here!
    Cheers
    André

  • Do we have a new version of comm.jar?

    The version I am using in Windows is 1.0, jared in 1998. I am wondering if there is any new comm.jar release for Windows. I can find comm 3.0 for Linux in Sun site but nothing about Windows. Does anyone have info on it? What is Sun's plan on this package for Windows? Thanks!

    Sun's plan is: "scrap it and never touch it again" as MS changed the API. Look for an alternate implementation like RXTX.

  • Installation of IPC AP 7.0 Jar is getting Failed when uploading in CRM

    Hello Experts,
    we did some changes in the previosly uploded version of IPC AP 7.0  customer user exit Jar file in eclipse.
    While uploading the new modified jar through transaction /SAPCND/UE_DEV in CRM we are getting error :" installation of module <Jar file name > has failed ".
    when we checked the logs in SM 53 we seen the below mentioned error:
    Message: Exception of type com.sap.sql.log.OpenSQLException caught: Exception of type com.sap.sql.sqlparser.CommonSQLParserException: - statement "DELETE FROM "SVMCRT_MOD_TR_T" WHERE "MODULE_NAME" LIKE ? ESCAPE ^ (reason: Modification of ABAP tables is not permit ted)" is not supported
    caught: - statement "DELETE FROM "SVMCRT_MOD_TR_T" WHERE "MODULE_NAME" LIKE ? ESCAPE ^ (reason: Modification of ABAP tables is not permitted)" is not supported
    --> com.sap.sql.log.OpenSQLException: Exception of type com.sap.sql.sqlparser.CommonSQLParserException: - statement "DELETE FROM "SVMCRT_MOD_TR_T" WHERE "MODULE_NAME" LIKE ? ESCAPE '^' (reason: Modification of ABAP tables is n" is not suppor ted
    caught: - statement "DELETE FROM "SVMCRT_MOD_TR_T" WHERE "MODULE_NAME" LIKE ? ESCAPE '^' (reason: Modification of ABAP tables is not permitted)" is not supported
    at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Ljava/lang/Class;Ljava/lang/String;[Ljava/lang/Object;)Lcom/sap/sql/log/OpenSQLException;(Syslog.java:85)
    at 
    if  required i can post the complete stack trace.
    any inputs/suggestions are most welcome.
    Thanks & regards,
    Siddharth

    Hi Mark,
    Yesterday after Posting the thread we found the same Note ,Issue occured because of  JAVA write access was not enabled on the table ,After enabling it as mentioned in SAP Note, Jar file get successfully uploaded.
    Thanks for your Help also.
    Regards,
    Siddharth

  • Loading jar files at execution time via URLClassLoader

    Hello�All,
    I'm�making�a�Java�SQL�Client.�I�have�practicaly�all�basic�work�done,�now�I'm�trying�to�improve�it.
    One�thing�I�want�it�to�do�is�to�allow�the�user�to�specify�new�drivers�and�to�use�them�to�make�new�connections.�To�do�this�I�have�this�class:�
    public�class�DriverFinder�extends�URLClassLoader{
    ����private�JarFile�jarFile�=�null;
    ����
    ����private�Vector�drivers�=�new�Vector();
    ����
    ����public�DriverFinder(String�jarName)�throws�Exception{
    ��������super(new�URL[]{�new�URL("jar",�"",�"file:"�+�new�File(jarName).getAbsolutePath()�+"!/")�},�ClassLoader.getSystemClassLoader());
    ��������jarFile�=�new�JarFile(new�File(jarName));
    ��������
    ��������/*
    ��������System.out.println("-->"�+�System.getProperty("java.class.path"));
    ��������System.setProperty("java.class.path",�System.getProperty("java.class.path")+File.pathSeparator+jarName);
    ��������System.out.println("-->"�+�System.getProperty("java.class.path"));
    ��������*/
    ��������
    ��������Enumeration�enumeration�=�jarFile.entries();
    ��������while(enumeration.hasMoreElements()){
    ������������String�className�=�((ZipEntry)enumeration.nextElement()).getName();
    ������������if(className.endsWith(".class")){
    ����������������className�=�className.substring(0,�className.length()-6);
    ����������������if(className.indexOf("Driver")!=-1)System.out.println(className);
    ����������������
    ����������������try{
    ��������������������Class�classe�=�loadClass(className,�true);
    ��������������������Class[]�interfaces�=�classe.getInterfaces();
    ��������������������for(int�i=0;�i<interfaces.length;�i++){
    ������������������������if(interfaces.getName().equals("java.sql.Driver")){
    ����������������������������drivers.add(classe);
    ������������������������}
    ��������������������}
    ��������������������Class�superclasse�=�classe.getSuperclass();
    ��������������������interfaces�=�superclasse.getInterfaces();
    ��������������������for(int�i=0;�i<interfaces.length;�i++){
    ������������������������if(interfaces[i].getName().equals("java.sql.Driver")){
    ����������������������������drivers.add(classe);
    ������������������������}
    ��������������������}
    ����������������}catch(NoClassDefFoundError�e){
    ����������������}catch(Exception�e){}
    ������������}
    ��������}
    ����}
    ����
    ����public�Enumeration�getDrivers(){
    ��������return�drivers.elements();
    ����}
    ����
    ����public�String�getJarFileName(){
    ��������return�jarFile.getName();
    ����}
    ����
    ����public�static�void�main(String[]�args)�throws�Exception{
    ��������DriverFinder�df�=�new�DriverFinder("D:/Classes/db2java.zip");
    ��������System.out.println("jar:�"�+�df.getJarFileName());
    ��������Enumeration�enumeration�=�df.getDrivers();
    ��������while(enumeration.hasMoreElements()){
    ������������Class�classe�=�(Class)enumeration.nextElement();
    ������������System.out.println(classe.getName());
    ��������}
    ����}
    It�loads�a�jar�and�searches�it�looking�for�drivers�(classes�implementing�directly�or�indirectly�interface�java.sql.Driver)�At�the�end�of�the�execution�I�have�found�all�drivers�in�the�jar�file.
    The�main�application�loads�jar�files�from�an�XML�file�and�instantiates�one�DriverFinder�for�each�jar�file.�The�problem�is�at�execution�time,�it�finds�the�drivers�and�i�think�loads�it�by�issuing�this�statement�(Class�classe�=�loadClass(className,�true);),�but�what�i�think�is�not�what�is�happening...�the�execution�of�my�code�throws�this�exception
    java.lang.ClassNotFoundException:�com.ibm.as400.access.AS400JDBCDriver
    ��������at�java.net.URLClassLoader$1.run(URLClassLoader.java:198)
    ��������at�java.security.AccessController.doPrivileged(Native�Method)
    ��������at�java.net.URLClassLoader.findClass(URLClassLoader.java:186)
    ��������at�java.lang.ClassLoader.loadClass(ClassLoader.java:299)
    ��������at�sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
    ��������at�java.lang.ClassLoader.loadClass(ClassLoader.java:255)
    ��������at�java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
    ��������at�java.lang.Class.forName0(Native�Method)
    ��������at�java.lang.Class.forName(Class.java:140)
    ��������at�com.marmots.database.DB.<init>(DB.java:44)
    ��������at�com.marmots.dbreplicator.DBReplicatorConfigHelper.carregaConfiguracio(DBReplicatorConfigHelper.java:296)
    ��������at�com.marmots.dbreplicator.DBReplicatorConfigHelper.<init>(DBReplicatorConfigHelper.java:74)
    ��������at�com.marmots.dbreplicator.DBReplicatorAdmin.<init>(DBReplicatorAdmin.java:115)
    ��������at�com.marmots.dbreplicator.DBReplicatorAdmin.main(DBReplicatorAdmin.java:93)
    Driver�file�is�not�in�the�classpath�!!!�
    I�have�tried�also�(as�you�can�see�in�comented�lines)�to�update�System�property�java.class.path�by�adding�the�path�to�the�jar�but�neither...
    I'm�sure�I'm�making�a/some�mistake/s...�can�you�help�me?
    Thanks�in�advice,
    (if�there�is�some�incorrect�word�or�expression�excuse�me)

    Sorry i have tried to format the code, but it has changed   to �... sorry read this one...
    Hello All,
    I'm making a Java SQL Client. I have practicaly all basic work done, now I'm trying to improve it.
    One thing I want it to do is to allow the user to specify new drivers and to use them to make new connections. To do this I have this class:
    public class DriverFinder extends URLClassLoader{
    private JarFile jarFile = null;
    private Vector drivers = new Vector();
    public DriverFinder(String jarName) throws Exception{
    super(new URL[]{ new URL("jar", "", "file:" + new File(jarName).getAbsolutePath() +"!/") }, ClassLoader.getSystemClassLoader());
    jarFile = new JarFile(new File(jarName));
    System.out.println("-->" + System.getProperty("java.class.path"));
    System.setProperty("java.class.path", System.getProperty("java.class.path")+File.pathSeparator+jarName);
    System.out.println("-->" + System.getProperty("java.class.path"));
    Enumeration enumeration = jarFile.entries();
    while(enumeration.hasMoreElements()){
    String className = ((ZipEntry)enumeration.nextElement()).getName();
    if(className.endsWith(".class")){
    className = className.substring(0, className.length()-6);
    if(className.indexOf("Driver")!=-1)System.out.println(className);
    try{
    Class classe = loadClass(className, true);
    Class[] interfaces = classe.getInterfaces();
    for(int i=0; i<interfaces.length; i++){
    if(interfaces.getName().equals("java.sql.Driver")){
    drivers.add(classe);
    Class superclasse = classe.getSuperclass();
    interfaces = superclasse.getInterfaces();
    for(int i=0; i<interfaces.length; i++){
    if(interfaces[i].getName().equals("java.sql.Driver")){
    drivers.add(classe);
    }catch(NoClassDefFoundError e){
    }catch(Exception e){}
    public Enumeration getDrivers(){
    return drivers.elements();
    public String getJarFileName(){
    return jarFile.getName();
    public static void main(String[] args) throws Exception{
    DriverFinder df = new DriverFinder("D:/Classes/db2java.zip");
    System.out.println("jar: " + df.getJarFileName());
    Enumeration enumeration = df.getDrivers();
    while(enumeration.hasMoreElements()){
    Class classe = (Class)enumeration.nextElement();
    System.out.println(classe.getName());
    It loads a jar and searches it looking for drivers (classes implementing directly or indirectly interface java.sql.Driver) At the end of the execution I have found all drivers in the jar file.
    The main application loads jar files from an XML file and instantiates one DriverFinder for each jar file. The problem is at execution time, it finds the drivers and i think loads it by issuing this statement (Class classe = loadClass(className, true);), but what i think is not what is happening... the execution of my code throws this exception
    java.lang.ClassNotFoundException: com.ibm.as400.access.AS400JDBCDriver
    at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:140)
    at com.marmots.database.DB.<init>(DB.java:44)
    at com.marmots.dbreplicator.DBReplicatorConfigHelper.carregaConfiguracio(DBReplicatorConfigHelper.java:296)
    at com.marmots.dbreplicator.DBReplicatorConfigHelper.<init>(DBReplicatorConfigHelper.java:74)
    at com.marmots.dbreplicator.DBReplicatorAdmin.<init>(DBReplicatorAdmin.java:115)
    at com.marmots.dbreplicator.DBReplicatorAdmin.main(DBReplicatorAdmin.java:93)
    Driver file is not in the classpath !!!
    I have tried also (as you can see in comented lines) to update System property java.class.path by adding the path to the jar but neither...
    I'm sure I'm making a/some mistake/s... can you help me?
    Thanks in advice,
    (if there is some incorrect word or expression excuse me)

  • How to delete a jar file after loading image files from it

    Hi,
    How can I delete a jar file after some image files have been loaded? For example, say, I have "a.jar" which contains an image "a.gif" in the root directory of the c drive. I would like to get the image size and then delete the jar file. Here is the code snippet:
        URL url = new URL("jar:file:/C:\\a.jar!/a.gif");
        Icon icon = new ImageIcon(url);
        System.out.println("icon size ? " + icon.getIconHeight());
        File file = new File("c:\\a.jar");
        while(file.exists())
            file.delete();
            try
                Thread.sleep(100);
            catch (InterruptedException ignored)
        System.out.println("file deleted.");I get the image size correctly but just can not delete the jar file. Apparently the file handle is not released, but how to close it? Any hint will be appreciated.
    Justin Jan

    I am sure the URLConnection.defaultUseCaches is set before it is connected otherwise I should catch an IllegalStateException on conn.setUseCaches(false).
            try
                URL url = new URL("jar:file:/C:\\a.jar!/a.gif");           
             URLConnection conn = url.openConnection();
               conn.setDefaultUseCaches(false);
             conn.setUseCaches(false);
                Icon icon = new ImageIcon(url);
                System.out.println("icon size ? " + icon.getIconHeight());
                url.openConnection().getInputStream().close();
                System.gc();
             System.runFinalization();
                File file = new File("c:\\a.jar");
                while (file.exists())
                    file.delete();
                    try
                        Thread.sleep(10);
                    catch (InterruptedException ignored)
                System.out.println("file deleted.");
            catch (Throwable t)
                t.printStackTrace();

  • New Patch Release 3.0.9.8.1 for Oracle9iAS Portal 3.0.9.8.0

    The patch can be found on metalink. The patch number is: 1841088.
    Oracle9iAS Portal 3.0.9 Patch Release Notes
    July 2001
    Contents
    For the latest release note updates, visit the Oracle Technology Network
    and click the Documentation tab.
    Installation and Setup Patch Contents
    Installation (Windows) Bugs fixed by this patch
    Installation (UNIX)
    Post-installation steps
    Installation (Windows)
    You can only apply this patch to Release 3.0.9 of Oracle Portal
    (Oracle9iAS v1.0.2.2). To apply this patch, do the following:
    From the command line prompt, execute the patch command according to
    the following syntax:
    patch.cmd [-m patch_mode] [-s schema_name]
    [-p schema_password] [-u sys_password]
    -c connect_string [-l log_file_name]
    -m patch_mode is the patch mode. Valid values are
    loginserver or portalschema. Default value is
    portalschema.
    -s schema_name is the name of the Portal schema that you
    want to patch. Default value is PORTAL30.
    -p schema_password is the password of the schema you want
    to patch. Default value is PORTAL30.
    -u sys_password is the SYS Password. Default value is
    CHANGE_ON_INSTALL.
    -c connect_string is the TNS connect string information.
    -l log_file_name is the name of the log file. Default value
    is patch.log.
    Examples:
    To patch Login Server Only:
    patch -m loginserver -s portal30_sso -p portal30_sso -u
    change_after_install -c mydatabase -l mypatch.log
    To patch Portal Schema Only
    patch -m portalschema -s portal30 -p portal30 -u
    change_after_install -c mydatabase -l mypatch.log
    To patch both Portal Schema and Login Server
    patch -m loginserver -s portal30_sso -p portal30_sso -u
    change_after_install -c mydatabase -l mypatch.log
    patch -m portalschema -s portal30 -p portal30 -u
    change_after_install -c mydatabase -l mypatch.log
    To complete the application of the patch, follow the instructions in
    Post-installation steps.
    Installation (UNIX)
    You can only apply this patch to Release 3.0.9 of Oracle Portal
    (Oracle9iAS v1.0.2.2). To apply this patch, do the following:
    From the command line prompt, execute the patch command according to
    the following syntax:
    patch.csh [-m <patch_mode>] [<-l log_file_name>]
    -m <patch_mode> is is the patch mode. Valid values are
    loginserver, portalschema, or both. Default value is both.
    -l log_file_name is the name of the log file. Default value
    is patch.log.
    Examples:
    To patch Login Server only
    patch.csh -m loginserver -l mypatch.log
    To patch Portal Schema only
    patch.csh -m portalschema -l mypatch.log
    To patch both Portal Schema and Login Server
    patch.csh -m both -l mypatch.log
    patch.csh -l mypatch.log
    To patch both Portal Schema and Login Server with default
    log file
    patch.csh -m both
    patch.csh
    To complete the application of the patch, follow the instructions in
    Post-installation steps.
    Post-installation steps
    The bug fixes for bug numbers 1817550, 1830898, 1832632, 1840420, 1664594,
    1810741, 1807325, and 1819442 are not installed via the patch script
    because you must shut down your Web server prior to applying them. The
    sections that follow describe how to apply these fixes.
    JPDK.ZIP
    On the Web server where the provider is running:
    Unzip the contents of jpdk.zip into a directory (e.g., JPDK_30901).
    Shut down your Web server.
    Change your zone.properties file to include <extract
    dir>/jpdk/lib/provider.jar in the wrapper.classpath.
    If you are using Java Portal Development Kit (JPDK) samples from a
    previous release of the JPDK, update your samples using those
    included in the zip file. Refer to <extract dir>/installing.jpdk.html
    for more details.
    Restart your Web server.
    Note: Refer to <extract dir>/release.notes.html for a list of changes made
    in this release.
    wwpage.jar
    On the middle tier where the Portal listener is running:
    Shut down your Web server.
    Create a backup of your current wwpage.jar file.
    Replace /$IAS_HOME/Apac he/Jserv/servlets/wwpage.jar with the new
    wwpage.jar provided in this patch.
    Restart your Web server.
    New Parameters
    The Parallel Page Engine now accepts two new parameters in the
    zone.properties file:
    minStall is the minimum stall value allowed for a contentfetcher
    before it assumes there is a problem and times out. This value
    defaults to 120 seconds. It was added to help upgrades from
    308, which had a normal stall value of 40 seconds. The meaning
    of stall has changed slightly, raising the need for a minimum
    value.
    minTimeout is the minimum timeout that may be sent by a
    portlet. At times portlets send very small values, like 1
    second. This almost always fails, and pages are rendered
    incomplete. The minTimeout defaults to 5 seconds, but may be
    set otherwise if this is not large enough. The minTimeout is
    different from the requestTime. The requestTime is used when no
    timeout value is sent for a portlet.
    opca.jar
    Back up your current opca.jar file, which is found in the
    <IAS_HOME>/assistants/opca/ directory.
    Copy the opca.jar file provided with this patch to the
    <IAS_HOME>/assistants/opca/ directory.
    To install the Portal repository, run the launch.bat (on NT) or
    launch.sh (on Solaris) to invoke the Portal Configuration Assistant.
    Follow the steps in the configuration assistant.
    Oracle Portal Cache
    Go to Oracle MetaLink and retrieve the patch for bug number 1817550.
    Stop your Oracle HTTP Server.
    Apply the patch you downloaded from Oracle MetaLink as per the
    instructions in the README.txt file.
    Login to your system as root and delete all cache files and
    subdirectories under the directory
    <IAS_HOME>/Apache/modplsql/cache/plsql. Make sure the directory
    <IAS_HOME>/Apache/modplsql/cache/plsql is empty.
    Start your Oracle HTTP Server.
    Bugs fixed by this patch
    This patch fixes the following known bugs:
    Bug Number Bug Subject and Description
    1817550 ON SOLARIS, WHEN RUNNING ON PORT 80, ORACLE PORTAL CACHE
    GETS DISABLED
    Due to a bug in the Oracle HTTP Server powered by Apache,
    the Oracle Portal cache gets disabled when it is running
    on port 80.
    1819194 EXCEPTION THROWN IF A USER'S PASSWORD HAS AN AMPERSAND.
    Special characters such as an ampersand (&) in passwords
    or any text node that is sent to the Web providers were
    causing errors.
    1664594 XML TAGS IN THE JAVA STACK - CAUSING PARSER TO CRASH.
    (Duplicate Bug: 1788506) Control characters were not
    being properly escaped appropriately and causing errors
    in the database SOAP parser.
    1823166 PORTLET SECURITY IS RAISING AN ERROR FOR NON-ADMIN USERS
    W/ ANY_PORTLET MANAGE.
    1782458 NOT ABLE TO CREATE MASTER DETAIL REPORT.
    1802055 308-309 UPGR: CLICKING ON "REFRESH ERROR" IN PORTLET
    REPOSITORY GIVES ERROR.
    1815257 UPGRADE: 306-309:308-309:SEARCH PEOPLE PORTLET: SHOWS
    ERROR.
    1744458 REPORTS FROM SQL: VALID SQL:GIVES AMBIGUOUS COLUMN ERROR
    FOR JOINED TABLES.
    1783257 REPORT COMPONENT AS PORTAL IN PAGE CAN'T BE ASSOCIATED
    WITH TAB.
    1801961 UPGRADE:307-309:ADD PORTLETS REGION IS SHOWING UP VERY
    SLOW.
    1807325 FETCHERS TIMEOUTS, AND PORTLET PRODUCED AN ERROR.
    This bug pertains to a synchronization issue in the 3.0.9
    fetching of portlet content. The Document could not be
    contacted error is randomly raised. However, it may be
    that other problems are causing this error. This bug only
    refers to the synchronization issue in which the Parallel
    Page Engine causes the problem.
    1810741 PROVIDER USER DOES NOT DETECT PUBLIC USER CORRECTLY.
    Previously, the JPDK did not correctly detect if the
    current user was logged in or accessing the portal using
    a public session. This bug also affected providers
    registered with a login frequency of PUBLIC. Failure to
    detect the logged in state of the user correctly caused
    ProviderUser.isPublicUser() to return an incorrect value
    when a provider written using JPDK release 3.0.9 was used
    with earlier releases of Oracle9iAS Portal.
    The most common symptom of thi s error is the Customize
    link being shown to public users when the provider
    definition specified that it should be hidden. A new
    username parameter has been added so the JPDK can
    correctly detect the logged in state of users while
    maintaining backwards compatibility with older versions
    of Oracle9iAS Portal.
    1811275 GROUP NAME IS REPEATED IN LIST OF GROUPS IN SPANISH,
    FRENCH ETC.
    1812018 PERSPECTIVES ARE REMOVED FROM ITEMS IF THEY ARE EDITED.
    1815037 OPCA HANGS AT 90%
    Oracle Portal Configuration Assistant hangs at 90% during
    the Oracle9iAS 1.0.2.2 installation.
    1819442 PROVIDE MINTIMEOUT FOR PPE TO OVERRIDE SMALLEST
    TIMEOUT(S).
    Previously, there were no minimum values for timeouts.
    The fix for this bug adds some minimum values for
    timeouts and changes the defaults such that the Parallel
    Page Engine works better without any configuration by the
    user. These changes help to prevent getting the Portlet
    could not be contacted error message.
    1830898 SSOUNLCK.SQL DOESN'T UNLOCK SSO USER ACCOUNT.
    1832632 BITMAP INDEXES IN EXPORT-IMPORT FAIL TO INSTALL ON ORACLE
    8I STANDARD.
    1833509 SITE MANAGER BUGS FOR CATEGORY, ITEMTYPE, FOLDERTYPE, AND
    PERSPECTIVE.
    This bug covers the following:
    Showing the category popup correctly when you hide
    categories.
    Same Banner appears more than once while rendering.
    All Item Types show up when you create Custom Item
    Types.
    All Folder Types show up when you create Custom
    Folder Types.
    No data found error occurs in perspective list of
    content area manager.
    All item types get hidden when you hide different
    item types in different content areas.
    Categories are not displayed appropriately when you
    go into content areas of default languages other
    than "us."
    Minor issues with Bulk action.
    1840420 CUSTOM WRITTEN EXTERNAL AUTH MODULE NEED TO BE UPDATED
    AFTER 3.0.9 UPGRADE SSOXOID.PKB DOESN'T LOAD.
    External authentication modules that were written before
    3.0.9 need to be updated after upgrading to 3.0.9.
    ssoauthx.pks is updated in 3.0.9 and contains additional
    routines that need to be implemented.
    null

    Richard,
    I have just applied patch to upgrade from Portal 3.0.9 to 3.0.9.8.1 (Patch applied to loginserver and portal schema) and the External Applications that were previously set up have gone from the portlet.
    Does this relate to your note at the bottom:
    "Minor issues with Bulk action. 1840420 CUSTOM WRITTEN EXTERNAL AUTH MODULE NEED TO BE UPDATED AFTER 3.0.9 UPGRADE SSOXOID.PKB DOESN'T LOAD.
    External authentication modules that were written before 3.0.9 need to be updated after upgrading to 3.0.9. ssoauthx.pks is updated in 3.0.9 and contains additional routines that need to be implemented." ??
    If I go to the "Login Server Administration" portlet and select the link "Administer External Applications" I get a list of 5 External Applications that have previously been set up.
    If I go back to the Home Page and select "customize" on the "External Applications" portlet I get the message "Your Login Server administrator has not registered any external applications".
    Does that mean I should just run 'ssoauthx.pks' & 'ssoxoid.pkb' or do I need to do something else ??
    Thanks
    Simo

  • How to use two different ojdbc14.jar for two web application.

    Hi,
    I have two web application running in same tomcat, I need to use the two different ojdbc14.jar for two application, now both are taking the jars from tomcat common/lib directory, I tried copying the new ojdbc14.jar in web-inf/lib folder of one application, but it is not working.
    Could you please let me know whether this will take the jar from tomcat by befault or from web-inf, and a solution how to proceed with this.
    Thanks in advance.

    Yes, I tried removing the jars from common/lib, but as the connection string is mentioned inside the server.xml it is showing db connection error while trying to connect to the database

  • Help! How to create Jar file for a packaged class?

    Hi!
    I am new in jar complexities. I made a swing frame that just prompts a JOptionPane when executed. I accomplished the same using jar without packaging my class SwingTest.
    But when i package it, it doesn't run. Can any one tell me how to make jar file of packaged classes and include images in the jar files too!
    Really Thanx!

    Call the Jar from the commandline to see the exceptions thrown.
    java -jar <jarFileName> <className>

  • How to get the entries in a jar/zip file contained within a jar/zip file?

    If I want to list the jar/zip entries in a jar/zip file contained within a jar/zip file how can I do that?
    In order to get to the entry enumeration I need a Zip/JarFile:
    ZipFile zip = new ZipFile("C:/java_dev/Java_dl/java_jdk_commander_v36d.zip");
    // Process the zip file. Close it when the block is exited.
    try {
    // Loop through the zip entries and print the name of each one.
    for (Enumeration list =zip.entries(); list.hasMoreElements(); ) {
    ZipEntry entry = (ZipEntry) list.nextElement();
    System.out.println(entry.getName());
    finally {
    zip.close();
    Zip file "java_jdk_commander_v36d.zip" contains two zip entries:
    1) UsersGuide.zip
    2) JDKcommander.exe
    How to list the entries in "jar:file:/C:/java_dev/Java_dl/java_jdk_commander_v36d.zip!/UsersGuide.zip"?
    The following code:
    URL url = new URL("jar:file:/C:/java_dev/Java_dl/java_jdk_commander_v36d.zip!/UsersGuide.zip");
    JarURLConnection jarConnection = (JarURLConnection)url.openConnection();
    zipFile = (ZipFile)jarConnection.getJarFile();
    would point to "jar:file:/C:/java_dev/Java_dl/java_jdk_commander_v36d.zip", which is no help at all and Class JarURLConnection does not have an enumeration method.
    How can I do this?
    Thanks.
    Andre

    I'm not sure I understand the problem. The difference between a zip and jar file is the manifest file; JarFile is extended from ZipFile and is able to read the manifest, other than that they are the same. Your code
    for (Enumeration list =zip.entries(); list.hasMoreElements(); ) {
    ZipEntry entry = (ZipEntry) list.nextElement();
    System.out.println(entry.getName());
    }is close to what I've use for a jar, below. Why not use the same approach? I don't understand what you're trying to do by using JarURLConnection - it's usually used to read the jar contents.
    String jarName = "";
    JarFile jar = null;
    try
        jar = new JarFile(jarName);
    catch (IOException ex)
        System.out.println("Unable to open jarfile" + jarName);
        ex.printStackTrace();
    for ( Enumeration en = jar.entries() ;  en.hasMoreElements() ;)
        System.out.println(en.nextElement());
    }

Maybe you are looking for