Where to set the classpath for custom classes in jsp

Hi,
we have created our custom classes in and ported in contentDB and that classes are internally using some jar files. Previously we have set the classpath of all the jar files provided in CDB devkit in the orion-web.xml but if are opening the explorer.jsp or any other jspx of contentDB we are getting the classcastexception and page is not opening.
Is there any problem in setting the classpath. Please if any one knows abt this, reply as soon as possible.
thanks,
swapna soni.

I think it is Oracle 10g Release 2... since when I click the top OAS link in the Enterprise Manager Console, it took me to 'Enterprise Manager 10g Grid Control Release 2' this page.
And...10g Application Server Control Release 10.1.2.0.1, I think 2.0.1 means Release 2.
Thanks and let me know if you need something else.

Similar Messages

  • How to set the classpath for external .jar files after importing?

    Hi techs,
    How to set the classpath in WSAD5.1.2 after importing the .jar file to the WEB-INF/lib folder.
    urgent

    I got it.
    after importing the jar file to the perspective,we need to right click on project name, go to proprties,
    goto java build path,
    there we need to include the external jar files.

  • Setting the CLASSPATH for the derby.jdbc embedded class

    I am new to Java and am trying to connect a simple (hello world simple) terminal app to a javadb embedded database - I am using the classFor to load the jdbc - but when I run my app I get an error saying the class can't be found. I think I just need to add the jdbc to my classpath. I've tried using
    export CLASSPATH=...
    but I still get the same error.

    Thank you SO much for your response! I have tried the following (this is where I found the derby.jar):
    javac -cp /usr/lib/jvm/java-6-sun-1.6.0.07/db/lib/derby.jar test.java
    But I am still getting the same error:
    java.lang.ClassNotFoundException: org.apache.derby.jdbc.EmbeddedDriver
    Here is my code - so far it doesn't really do anything, I just want to get it connected, then I'll start adding some simple db code and go from there:
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import java.sql.Statement;
    class HelloDave
        public static void main(String[] args)
            try
                Class.forName("org.apache.derby.jdbc.EmbeddedDriver");
            catch (Exception e)
                e.printStackTrace();
            System.out.println("Hello, Dave");
    }

  • How to set a classpath for referring classes

    I am using windows vista.....I had assigned classpath for Variable name and given address of class in variable type ..even then compiler does not recognize class path..........

    Thanks but it is not what I am really asking or I may didnt understand..
    The program is working ok through JCreator.. My problem is when I create an Installation file and then run it..
    the program is being created just fine but when it has to load the jdic then it blocks...
    This is something that must be done through variables right?
    If you ever used Install4J there are 2 columns where you declare variables..
    The first column is for Variable name and the second one is Variable Value..
    Sorry for buthering you with all this but this is the first time that I am dealing with jar files!
    Thanks again !

  • How to set the CLASSPATH for an  Sql Server 2005 database... help me please

    Hello! Guys I want to access a Sql Server 2005 database from Java.I've downloaded the JDBC 2.0 driver from Microsoft.I've copied the sqljdbc4.jar file to C:\Java\jdk1.6.0_14\db\lib.And I've added this to the classpath C:\Java\jdk1.6.0_14\db\lib\sqljdbc4.jar.The classpath variable is defined as a user variable.Well the point is that I get that nasty exception:Exception in thread "main" java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver.So if you know how to help me,please do so.Thank you :)

    Hi Timo,
    My jdev version is 10.1.3.3.0, this is for R12. By PR i mean to say process request and PFR process form request in the controller.
    In the Process request of the controller, i am finding the checkbox bean and assigning the firepartialaction for it.
    Later in the process form request for the fired event, i am trying to handle the rendered property of the messagetextinput. Is this a right approach?
    my code below
    public void processRequest(OAPageContext oapagecontext, OAWebBean oawebbean)
    super.processRequest(oapagecontext, oawebbean);
    OAApplicationModule oaapplicationmodule = oapagecontext.getApplicationModule(oawebbean);
    OAMessageCheckBoxBean oamessagecheckboxbean = (OAMessageCheckBoxBean)oawebbean.findChildRecursive("X_FLAG");
    if(oamessagecheckboxbean != null)
    oapagecontext.writeDiagnostics(this, "Message check box Bean found:", 1);
    FirePartialAction firepartialaction = new FirePartialAction("change");
    oamessagecheckboxbean.setAttributeValue(PRIMARY_CLIENT_ACTION_ATTR, firepartialaction);
    oamessagecheckboxbean.setFireActionForSubmit("change", null, null, true);
    oapagecontext.writeDiagnostics(this, "setting fire event", 1);
    public void processFormRequest(OAPageContext oapagecontext, OAWebBean oawebbean)
    super.processFormRequest(oapagecontext, oawebbean);
    oapagecontext.writeDiagnostics(this, "Inside Process Form Request", 1);
    if("change".equals(oapagecontext.getParameter(OAWebBeanConstants.EVENT_PARAM)))
    OAMessageTextInputBean bean = (OAMessageTextInputBean)oawebbean.findChildRecursive("X_NUMBER");
    if(bean!=null){
    bean.setRendered(Boolean.TRUE);}
    Thanks,
    Malar

  • How to  set the classpath for servlet and jsp???

    i add C:\tomcat-5.0\common\lib\servlet-api+jsp-api to the class path from DOS prompt, as show below:
    set CLASSPATH=%classpath%;C:\tomcat-5.0\common\lib\servlet-api.jar;C:\tomcat-5.0\common\lib\jsp-api.jar
    then, i compile the servlet:
    javac FirstServlet.java
    no error
    and i copy the .class file into C:\tomcat-5.0\webapps\servlets-examples\WEB-INF\classes
    i set the JAVA_HOME enviroment variable as below:
    set JAVA_HOME=C:\Program Files\Java\jdk1.5.0_08
    i start the tomcat version 5.0 and run web browser and type http://localhost:8080/servlets-examples/servlet/FirstServlet
    i get the error message:
    HTTP Status 404 - /servlets-examples/servlet/FirstServlet
    type Status report
    message /servlets-examples/servlet/FirstServlet
    description The requested resource (/servlets-examples/servlet/FirstServlet) is not available.
    Apache Tomcat/5.0.30
    Can anybody tell me how to solve the problem. Thanks a lot.

    You will have to create the servlet mapping in the Web.xml file
    <servlet>
                 <servlet-name>FirstServlet</servlet-name>
                 <servlet-class>FirstServlet</servlet-class>
        </servlet>
    <servlet-mapping>
            <servlet-name>FirstServlet</servlet-name>
            <url-pattern>/servlet/FirstServlet</url-pattern>
        </servlet-mapping>

  • How to set the scope for Mxml classes?

    Hi,
    i want to create the mxml class but with internal (package)
    scope (for example).
    Is it possible? (for AS classes yes)

    Don't think you can control scope like this in MXML.

  • How do I set the classpath for IWS?

    I'm using iPlanet Web Server 6.0 and I have a JSP that imports a class, ClassX. I place classX in the ClasseCache directory, which works. But when ClassX imports javax.jms.* (found in a jar file) there is a run time error because j2ee.jar doesn't seem to be found by IWS. How do I get IWS to look in j2ee.jar for these jms classes?

    Hi,
    Additional classpath values for running "jsp" as need
    to be set in contexts.properties file or jvm12.conf(/<server root/https-test/config/)file.
    For more information please look out the below link.
    http://docs.iplanet.com/docs/manuals/enterprise/50/pg/2-config.htm#1069587
    http://docs.iplanet.com/docs/manuals/enterprise/50/pg/2-config.htm#1069613
    http://docs.iplanet.com/docs/manuals/enterprise/50/servlets/xjvm.htm#21181
    Example:-
    Edit contexts.properties file.
    uncomment the below line and give your jar file path.
    # context.global.classpath=
    I hope this help.
    Thanks,
    Dakshin.
    Developer Technical Support
    Sun Microsystems
    http://www.sun.com/developers/support.

  • How to set the classpath and path from the jsp to call  java class function

    Hi Exprets,
    I have a requirement to call a java class function which returns a hashmap object from the jsp. The java class in present in one jar file and that jar file is location somewhere in unix path. So the requirement is to set the classpath for that jar file and then create the object of the java class and then call the function.
    If any one know how to achieve it, please reply as soon as possible.
    thanks in advance,
    swapna soni.

    It is never advisable to store large data sets in the session. But it will depend on a lot of factors:
    1. How costly is the query retrieving the data from the database?
    If it's a complex query with lots of joins and stuff, then it will be better to store it in the session as processing the query each time will take a lot of time and will decrease performance. On the other hand if the query is simple then it's advisable not to store it in the session, and fetch it each time.
    2. Are there chances for the data to become stale within a session?
    In this case storing the data is session will mean holding the stale data till the user session lasts which is not right.
    3. How many data sets does the session already holds?
    If there are large no. of data sets already present in the session, then it's strictly not advisable to store the data in the session.
    4. Does the server employ some kind of caching mechanism?
    Using session cache can definitely improve performance.
    You will have to figure out, what is the best way analyzing all the factors and which would be best in the situation. As per my knowledge, session is the only place where session specific data can be stored.
    Also, another thing, if the data set retrieved is some kind of data to be displayed in reports, then it would be better to use a pagination query, which will retrieve only the specific no. of rows at a time. A navigation provided in the UI will retrieve the next/previous data set to display.
    Thanks,
    Shakti

  • Does weblogic.Deployer set the CLASSPATH?

    Hi,
    I need to deploy an application with the weblogicDeployer utility. Does it automatically
    set the CLASSPATH, as is done with the Admin console? Or do I need to set the
    CLASSPATH explicitly?
    Thanks,
    -Ami

    ah. weblogic.Deployer and the console use the same underlying API to
    our Deployment subsystem. There shouldn't be any difference in
    application behavior (eg classpath).
    -- Rob
    Ami wrote:
    Hi Rob,
    When I use the Admin console to deploy a web app, the CLASSPATH for the application
    is set automatically. If I use weblogic.Deployer does that also automatically
    set the CLASSPATH for the application?
    -Ami
    Rob Woollen <[email protected]> wrote:
    Not sure I understand the question. weblogic.Deployer is a class in
    the
    weblogic.jar, so weblogic.jar has to be in your classpath to run java
    weblogic.Deployer ...
    -- Rob

  • Setting the Classpath of a VM launched using JDI

    I using VirtualMachineManager to get a LauchingConnector and fire off a new VM.
    It seems that there should be some way of me setting the classpath for this new VM.
    In general I'd like a list of the options that I can put in that argument map.

    In J2SE 5.0, jdb has a new option that will list the available connectors and the arguments that can be passed to them EG:
    jdb -listconnectors
    Available connectors are:
    Connector: com.sun.jdi.CommandLineLaunch Transport: dt_socket
    description: Launches target using Sun Java VM command line and attaches to it
    Argument: home Default value: /net/foo/p/jdk/1.5.0/jre
    description: Home directory of the SDK or runtime environment used to launch the application
    Argument: options (no default)
    description: Launched VM options
    Required Argument: main (no default)
    description: Main class and arguments, or if -jar is an option, the main jar file and arguments
    Argument: suspend Default value: true
    description: All threads will be suspended before execution of main
    Required Argument: quote Default value: "
    description: Character used to combine space-delimited text into a single command line argument
    Required Argument: vmexec Default value: java
    description: Name of the Java VM launcher
    This means that you would want to put "-classpath ......" into the 'options' argument.
    Hope this helps

  • How to set the classpath in windows operating system

    hi,
    how to set the classpath in window operating system
    i want this help for setting the classpath for the tomcat
    please help me
    thank you
    darshan soni

    Open autoexec.bat in texteditor. This is an example from my autoexec, win me. Running resin
    SET CLASSPATH=c:\jdk1.3.1_01\bin\;c:\andreas\resin\bin\jsdk23.jar;c:\Jimi\JimiProClasses.zip;
    SET PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;c:\jdk1.3.1_01\bin\;c:\andreas\resin\bin\jsdk23.jar;c:\Jimi\JimiProClasses.zip;C:\Program\MtsAndreas

  • How to set the Classpath of the Manifest to use jars which are included?

    Hi,
    I want to set the classpath for jars which are included in another jar, wihich I want to execute. At the moment I unzip them and include them afterwards, but there should be a more handy way to do this.
    Please post an example of a Classpath declaration for the Manifest, assuming the jars are at the top level of the archive.
    If it shouldn't be possible do that, please explain me why.
    Perhaps it might be diffuclt for java to decide if a classpath location starts with the current-dir or the current-jar, but I assume that there is a special syntax to sort out such probems.
    Thanks a lot in advance.
    Greetings Michael

    Java's classloader doe not support jars within jars. There are some 3rd part solutions, one is "one jar" at sourceforge. Search for others.

  • TabStripLayout-View: Where to set the text?

    Hello,
    I am using a view of the kind TabStrip. For your understanding> Not a normal view with a tabstrip. It is a view similar to Gridlayout, just TabStripLayout.
    I can not find where to set the text for the individual tabs, e.g. TAB1, TAB2 etc.
    Does anzbodz know?
    Regards Thank Mario

    I assume you are using a TabStrip layout of a viewset.  The tab 'captions' are set in the properties for the viewset.  In the explorer outline, expand Windows and click on the ViewSet and in the properties for the ViewSet it will have the captions listed for the tabs and you can change the text there.
    Be aware that the tab strip layout for viewsets is a bit limited.  As far as I can tell the navigation plugs between views do not work.  There are other forum questions/answers on how to use a normal TabStrip element rather than a viewset to get around this.
    -Cindy

  • Setting the CLASSPATH from the JVM by a class

    Hy experts
    I have an application thats searching a jar file and have to access classes from this jar file.
    There are two ways to do this:
    1.
    Loading the jar file byte by byte and create the classes to load them into memory. This is the hard way.
    2.
    Setting the CLASSPATH variable in the running program! Thats the easy way! May how does it works?
    Is there any possiblity to set the classpath in a running application or only in the shell?
    Thanks for help
    konrad

    the classpath is readin when you run the JVM ie issue the 'java' command, the environment cant be altered to update a new classpath. However, why not just put the files you wish to load at runtime within the current classpath you've setup. If you use the System.loadLibrary(), you should be able to pick up the classes you wish to readin at run time via this approach.
    good luck
    rob

Maybe you are looking for

  • How do I get someone els off of my Apple ID that I let use to download apps

    My gf had to restor her iPhone and when she did it made her make a new Apple ID and I just let her use mine. When ios7 came out when she signed into my Apple ID on her phone it like combined are contacts and I can see all her texts how do I fix

  • CA-ICI-CTI version in CRM 5.0

    Hi Gurus, We are upgrading CRM 4.0 to CRM 5.0 SR3. After the upgrade we would like to connect Cisco Telephone system to IC Webclient to handle the calls. Bucher-Suter is the third party provider for Cisco. They need the following versions & features

  • Error -402653077 attaching iPad to iTunes causes freeze

    I am using Lion 10.7.2, iTunes 10.5 and a first generation iPad.  I was trying to update the iPad to the current software version of iOS5. ( to make the move to the icloud) After attempting to back up and update the iPad, I got an error message: -402

  • Cannot make os to prompt for password on every mount of enc image

    Even though I specifically tell keychain or whatever not to remember my pass the only way to make it prompt for disk image pass is to logout and log back in This is after I use a bash script to both copy files to the image and unmount it

  • Where's my Serial Number?

    Hello, this morning I received the Adobe CS5.5 Design Premium package as a present and it is a Student/Teacher Education Edition, and I went to the site it told me to, to get my serial number so I can install it on my computer. The site doesn't work,