Which jar file for the classpath ?

At my office on my machine i have weblogic 8.1 and tomcat installed.
weblogic have 2.3 version of servlet and
tomcat have 2.4 version of servlet
weblogic is for production purpose (development of servlet, jsp and ejb)
and tomcat is for my own practice. (just for servlet and jsp)
i have weblogic.jar as well as servlet-api.jar in my class path.
now when i compile my servlets which jar file the compiler will use to create the classes.
if the compiler chooses servlet-api.jar will my servlet run in weblogic
else
if the compiler chooses weblogic.jar will my servlet run in tomcat

i have weblogic.jar as well as servlet-api.jar in my class path.What does this mean? Do you have a system CLASSPATH environment variable?
Bad idea.
now when i compile my servlets which jar file the
compiler will use to create the classes.You should set CLASSPATH using the -classpath option on javac.exe.
The compiler won't "choose" anything, because it has no idea how you'll deploy. It'll use the one that you tell it to. If you have just a system CLASSPATH it'll always use the first JAR that it finds with the packages it needs.
You need to specify exactly what you want the compiler to use.
In the case of servlet.jar it might not matter, because that's pretty standard. JSPs and EJBs are another story, however. If you change deployment, it's best to recompile and repackage the Web app.
Learn Ant. It'll help you automate this.
%

Similar Messages

  • Including jars file to the classpath using javac

    Hi
    I'd like to compile a file including a jar file to the classpath.
    In wich way is it possible?

    Click on the appropriate operating system for the item "Setting the Classpath"
    at http://java.sun.com/j2se/1.4.2/docs/tooldocs/tools.html

  • Which jar file has the class TaskFlowBindingAttributes?

    Hi,
    I'm using JDeveloper version - 11.1.1.6
    I want to know which jar file consists the TaskFlowBindingAttributes class?
    I looked into following location - JDEV_HOME\oracle_common\modules\oracle.adf.controller_11.1.1\ and didn't find this class in jar files located here. (adf-controller.jar, adf-controller-api.jar and adf-controller-rt-common.jar)
    Any inputs would be helpful.
    Thanks
    Ravi

    Hi,
    I found it in ADF 11g R2 documentation - http://docs.oracle.com/cd/E24382_01/web.1112/e16182/taskflows_regions.htm#insertedID10
    I guess this is 11g R2 feature.
    I have a requirement to display the multiple regions dynamically. This feature suits my requirement perfectly, but unfortunately it is not available in 11g R1.
    Can we achieve the similar functionality in 11g R1 through other means?
    Thanks
    Ravi

  • Which jar files for pcm.system.ISystems package?

    Hi ,
    Which jar files are needed for the packages:
    com.sap.portal.pcm.system.ISystems
    com.sap.portal.pcm.system.ISystem
    and under which path I coul dfind them.
    Thnx
    Regards
    Meesum.

    Hi Meesum
    just install WinRAR (yeah, get a licence, it's worth), point the dir to .../irj/root/WEB-INF/portal/portalapps and search for ISystem*.class - and you're done.
    This time I have done it for you:
    Application com.sap.portal.ivs.api_landscape/lib/com.sap.portal.ivs.api_landscapeapi.jar
    Hope it helps
    Detlev

  • How to create a .jar file for the BPEL project

    hi all,
    how can i create a .jar file for my BPEL project, i am trying to deploy the project but getting an error :
    "Error: [Error ORABPEL-10902]: compilation failed [Description]: in "C:\OraBPELPM\integration\jdev\jdev\mywork\Workspace_BPELDemo\BPEL_Report\BPEL_Report.bpel", XML parsing failed because "". [Potential fix]: n/a. "
    and when doubel cliking on this error Jdev take me to the beginning of the ".bpel" file.
    I 'm really stuck in here i am not able to deploy the process!
    Thanks,
    Rana

    Rana:
    If you haven't already, I would post this question in the BPEL forum. I would expect a much better turnaround there.
    Johnny Lee

  • How to call  a jar file for the dynamic menu

    hi ,
    I am using JDEV 11.1.2.2.0 version.
    My problem is this,
    when dynamic tree populate using java bean class(data come from the table)
    how can we call a jar files(seperate projects jars) to each link of the tree.
    plz help...
    -Harsh-

    Hi,
    projects are a design time functionality. So what is the use case? I it is a Java object stored in the JAR file then you would configure this JAR file in the ViewController project library section (project properties)
    Frank

  • Where do I put the .jar file for the database connection?

    I am trying to connect to an Oracle 11g database. I see under the coldfusion settings summary that the java version is 1.7.0_55. So I downloaded the ojdbc7.jar file from Abode.com. Now the question is where do I put it so that coldfusion can access it?
    Of course I need to set up the database connection (which I still don't have the connection string for), but I still need to know where to put the ojdbc.jar file.
    Thanks.

    jasonwryan wrote:What does the man page say?
           The  program  has builtin defaults and temperature thresholds but users
           can   specify   their   own    settings    in    configuration    files
           /etc/default/i8kmon  and  ~/.i8kmon.   The daemon defines 4 states with
           different fan speeds ({0 0}, {1 0}, {1 1}, {2 2}) and  for  each  state
           are  defined  the temperature thresholds which cause the switching to a
           higher or lower  state.  Furthermore  each  state  can  have  different
           thresholds  for operation on ac power or battery.  For example the fol‐
           lowing configuration:
    I've put the following file in /etc/default/i8kmon:
    # Run as daemon, override with --daemon option
    set config(daemon) 0
    # Automatic fan control, override with --auto option
    set config(auto) 1
    # Report status on stdout, override with --verbose option
    set config(verbose) 1
    # Status check timeout (seconds), override with --timeout option
    set config(timeout) 1
    # Temperature thresholds: {fan_speeds low_ac high_ac low_batt high_batt}
    set config(0) {{-1 0} -1 50 -1 50
    set config(1) {{-1 1} 50 70 50 70}
    set config(3) {{-1 2} 70 128 70 128}
    But it doesn't seem to do anything. I'm running a Dell Inspiron 3521 with no dedicated GPU, so it only has one fan. I was somehow able to get i8kmon to work in Ubuntu by putting this config in /etc/i8kmon, but can't get it to work in Arch. Putting it in /etc/i8kmon and /etc/default/i8kmon doesn't do anything.

  • How to install the jar files for the cf extensions

    Hi,
    In adobe labs I saw some extensions you can download for
    cf/flex. They seem to be a bunch of jar files and a plugins
    directory. How do I use these. I did not see any documentation?
    Where do these files go? I think a web-inf dir or something like
    that but I am not sure.
    That is question 1.
    Question 2:
    If I want to build a flex application that uses CF, what is
    the basic site structure that one would use that would allow them
    to have the code relatively in the same spot and make use of remote
    objects. Typically we have a web server IIS or apache or whatever
    or even CF's own built in webserver, under that we have our apps
    wwwroot/myApp
    wwwroot/salesCRM
    This is fine for a traditional CF application, but if we are
    using flex, it seems like it wants to default all my flex files
    into the mydocuments/flex folder and not under any webroot, I guess
    I am looking on how to setup my files in terms of developing an app
    that will utilize Flex/CF.
    Thanks
    -WestSide

    Found it.
    I had to change the value of the parameter com.sap.aii.connect.repository.name under CE - Administration - Properties Administration.

  • Making jar file for the project

    Hello Everybody,
    I have a project which has hibernate capability on and also have postgresql facility in the back-end. I have used Myeclipse to make the project which imports all the necessary libraries. Now I want to make an executable jar which will run the whole project without any compilation by only clicking the jar file. And I also want to maintain the main file as I have about 30 files.
    I need urgent help.
    Tinni

    As you are new to these forums, possibly you do not know:
    DO NOT duplicated your posts:
    http://forum.java.sun.com/thread.jspa?threadID=5262912&messageID=10094981#10094981

  • Which JAR file has the class weblogic.xml.domimpl.Loader ?

    when an Axis web-service WSDL is read and parsed using weblogic client - i get this error. which weblogic-10 jar file has this class "weblogic/xml/domimpl/Loader" ?
    java.lang.NoClassDefFoundError: weblogic/xml/domimpl/Loader
    at weblogic.wsee.util.dom.DOMParser.getWebLogicDocumentImpl(DOMParser.java:168)
    at weblogic.wsee.util.dom.DOMParser.getDocument(DOMParser.java:58)
    at weblogic.wsee.wsdl.WsdlReader.getDocument(WsdlReader.java:311)
    at weblogic.wsee.wsdl.WsdlDefinitions.parse(WsdlDefinitions.java:402)
    at weblogic.wsee.wsdl.WsdlDefinitions.parse(WsdlDefinitions.java:388)
    at weblogic.wsee.wsdl.WsdlFactory.parse(WsdlFactory.java:78)
    at weblogic.wsee.wsdl.WsdlFactory.parse(WsdlFactory.java:65)
    at weblogic.wsee.jaxrpc.ServiceImpl.loadWsdlDefinition(ServiceImpl.java:468)
    at weblogic.wsee.jaxrpc.ServiceImpl.<init>(ServiceImpl.java:114)
    at com.qwest.assia.service.client.Provisioning_Info_Impl.<init>(Unknown Source)
    at com.qwest.assia.service.client.Provisioning_Info_Impl.<init>(Unknown Source)
    at com.qwest.iom.connector.adapter.webservice.qcontrol.AssiaWebServiceConnectionFactory.getWebServiceConnection(AssiaWebServiceConnectionFactory.java:64)
    at com.qwest.mdw.connector.webservice.WebServiceConnectionFactory.getConnection(WebServiceConnectionFactory.java:25)
    at com.qwest.iom.connector.adapter.webservice.qcontrol.AssiaWebServiceTestCase.test_MyAccountWebService(AssiaWebServiceTestCase.java:51)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at junit.framework.TestCase.runTest(TestCase.java:154)
    at junit.framework.TestCase.runBare(TestCase.java:127)
    at junit.framework.TestResult$1.protect(TestResult.java:106)
    at junit.framework.TestResult.runProtected(TestResult.java:124)
    at junit.framework.TestResult.run(TestResult.java:109)
    at junit.framework.TestCase.run(TestCase.java:118)
    at junit.framework.TestSuite.runTest(TestSuite.java:208)
    at junit.framework.TestSuite.run(TestSuite.java:203)
    at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
    at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)

    Hi,
    I found it in ADF 11g R2 documentation - http://docs.oracle.com/cd/E24382_01/web.1112/e16182/taskflows_regions.htm#insertedID10
    I guess this is 11g R2 feature.
    I have a requirement to display the multiple regions dynamically. This feature suits my requirement perfectly, but unfortunately it is not available in 11g R1.
    Can we achieve the similar functionality in 11g R1 through other means?
    Thanks
    Ravi

  • How do I add my own JAR file to the classpath?

    When I put a JAR file containing several compiled Java classes in the '/opt/SUNWips/lib' directory they are not found while compiling a JSP-Provider. When I extract them from the JAR it is not a problem (I think because the '/opt/SUNWips/lib' directory is already in the classpath).
    Where can I add my JAR to the classpath?

    I have been successfully editing the jvm12.conf file to add jars. This is
    the web server config file in
    /opt/netscape/server4/http-your.server.com/config directory. Add to the
    jvm.classpath line with all the other jars. Yes, lib is in the path, but
    Java doesn't see inside the jars unless they are explicitly in the path.
    "Ulf Licht" <[email protected]> wrote in message
    news:[email protected]..
    When I put a JAR file containing several compiled Java classes in the
    '/opt/SUNWips/lib' directory they are not found while compiling a
    JSP-Provider. When I extract them from the JAR it is not a problem (I
    think because the '/opt/SUNWips/lib' directory is already in the
    classpath).
    Where can I add my JAR to the classpath?
    Try our New Web Based Forum at http://softwareforum.sun.com
    Includes Access to our Product Knowledge Base!

  • Including jar files in the classpath while compiling

    While I compile, I want my class to be able to find the two jar files that are in the same directory as the class that I'm trying to compile.
    c:\brandNew\src\myClass.java
    c:\brandNew\src\lsw-services.jar
    c:\brandNew\src\jdom.jar

    If you are compiling in c:\brandnew\src
    you do
    javac -cp lsw-services.jar;jdom.jar myClass.java

  • Jar file for the type StaleConnectionException

    Hi,
    Any idea where or in which jar i can find the type StaleConnectionException in a Websphere Studio Application Develper 5.0 installation.
    Thanks

    That was my question, too, when I was getting that exception. It's a subclass of SQLException, so my code was already catching it. To deal with it specifically I just did this:if (e.getClass().getName().endsWith("StaleConnectionException")) {...}That's why my answer to your original question is "I don't know".
    PC&#178;

  • Which jar file has the org.apache.xml.serialize.*

    classes ?

    found here
    C:\bea\jrockit81sp1_141_03\console\lib\xercesImpl.jar
    and
    also C:\bea\weblogic81\workshop\lib\xerces.jar

  • Use jar file for one servlet in one application (not global in classpath)

    I have a servlet application that needs a jar file to load with one particular servlet. If I put the classpath to the jar file in the jvm12.conf, the servlet loads fine. I can't run it like that, however, since I use another jar file by the same name in a different application. I would like to specify it only with the servlet that needs it. According to the online help file, it says more than one jar, zip, or class file can be specified in the servlet classpath, but that doesn't seem to be the case. We're running iPlanet 4.1. I've tried adding the classpath to the jar file after the classpath for the servlet itself (servlet.properties), but it gives the class not found error for that function. Is there a way to do this? Context.properties, maybe? I can't find any instructions on setting that up.

    You might have better luck asking this question on a web server forum. This is an application server forum and most people here are going to more experienced with iAS.
    David

Maybe you are looking for

  • Very strange error: unable to activate any messgae mapping in IR

    very strange error, i m unable to activating any message mapping in IR, while activating the error thrown was: /usr/sap/XID/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Mapdddd0cb0100311dca6090012799eddc6/source/com/sap/xi/tf/_MM_sdptestF

  • New mac mini 2009 from box problems

    Hi, i am from Ukraine, my English is not good. It's bad. Smile But, i have problems whith my Mac Mini. My friend bought me a mac in USA and post it to me. When i unpack it and try to connect to my monitor i had a problem. Mini tunr on and LED turn on

  • IMs aren't sent as they are typed!

    Since the update today, December 4, when I type several underscores to represent a "fill in the blank" line in a sentence, Skype isn't sending the sentence as I wrote it.  This is horrible! I need it to send exactly what I type!  I can't find any set

  • Please help my sony wont turn on !! INPORTANT

    Hey Today i have a big problem I wake up and my phone reacted That i took out the sim Restarting... I shutdown and it started Wibration 1x Then no Sony logo no screen lightining it just started then 3x wibrating and no Led so it was not running out o

  • PDF rendering with PL/SQL dynamic region

    The problem with the reporting is: - if you want flexible, enhanced reports you can't use the report engine - PDF output works only with the report engine Means: At the moment you can't do enhanced, printable reports with HTML DB without using OAS &