Weblogic classpath setting

How to set the classpath for the helper class files in weblogic.
There is option where I can set the classpath of the servlets , but to set the classpath of other class files(helper) , where should I set the classpath in weblogic.properties files
Also by default where should I keep my class files

Hi,
start weblogic with a script file. There is a sample script file located in the weblogic directory called startWebLogic.cmd (weblogic 5.1). Adjust this file with your (classpath) settings.
The classpath is not set in the properties file. In the properties file you add your ejb-jar files that are being deployed.
Bye

Similar Messages

  • Weblogic Classpath setting error not able to pick the properties file

    Hi All,
    We are using a third party jar and create a java Web service on the top of that jar. This jar file need two configuration file .properties and .xml when we deploy war for the application into weblogic server it will give file not found error. Though this file already exists inside the .war but from the application it is not able to pick the files.
    We find that these file need to be put in weblogic domain home and we put it there and application works.
    I decompile the jar and found that inside java class they use FileReader("allXXX.xml") path and when I Google it and found that it will pick the file from weblogic domain directory.
    The issue is that we need to put properties file in specific weblogic folder like /3party/config by setting the class path inside startWebLogic.cmd. Please let us know solution for same
    Thanks in advance
    Edited by: sb**** on Mar 19, 2012 9:08 AM

    Hi , I am also facing the similer issue. I am deploying war file of my Spring MVC application , but its not picking resource bundle .properties files from one of the configuration file.
    <bean id="PropertiesRepository"
              class="LanguageBasedPropertiesRepository">
              <property name="propertiesFiles">
                   <map>
                        <entry key="en" value="classpath:/exceptionMessages.properties" />
                        <entry key="es" value="classpath:/exceptionMessages_es.properties" />
                        <entry key="default" value="classpath:/exceptionMessages.properties" />
                   </map>
              </property>
         </bean>
    Please let me know how we can modify this to make it work.
    thanks .

  • Weblogic Classpath setting error

    Hi All,
    We are using a third party jar and create a java Web service on the top of that jar. This jar file need two configuration file .properties and .xml when we deploy war for the application into weblogic server it will give file not found error. Though this file already exists inside the .war but from the application it is not able to pick the files.
    We find that these file need to be put in weblogic domain home and we put it there and application works.
    I decompile the jar and found that inside java class they use FileReader("allXXX.xml") path and when I Google it and found that it will pick the file from weblogic domain directory.
    The issue is that we need to put properties file in specific weblogic folder like /3party/config by setting the class path inside startWebLogic.cmd. Please let us know solution for same
    Thanks in advance
    Edited by: sb**** on Mar 19, 2012 9:09 AM

    Hi , I am also facing the similer issue. I am deploying war file of my Spring MVC application , but its not picking resource bundle .properties files from one of the configuration file.
    <bean id="PropertiesRepository"
              class="LanguageBasedPropertiesRepository">
              <property name="propertiesFiles">
                   <map>
                        <entry key="en" value="classpath:/exceptionMessages.properties" />
                        <entry key="es" value="classpath:/exceptionMessages_es.properties" />
                        <entry key="default" value="classpath:/exceptionMessages.properties" />
                   </map>
              </property>
         </bean>
    Please let me know how we can modify this to make it work.
    thanks .

  • Log4j classpath setting in weblogic server 8.1

    Hi,
    I placed all my properties files outside ear file in the folder C:\bea\user_projects\domains\xyz\config . I changed classpath setting in startweblogic.cmd as follows
    set CLASSPATH=%WEBLOGIC_CLASSPATH%;%POINTBASE_CLASSPATH%;%JAVA_HOME%\jre\lib\rt.jar;%WL_HOME%\server\lib\webservices.jar;./config;%CLASSPATH%;When i run my application, these properties are getting picked up and logs comming up in the spcified folder I have done this in windows platform.
    When i tried the same in unix box, by keeping properties files in separate folder and including that folder in classpath of startManagedWebLogic.cmd. Here is my classpath settings that i have modified
    $/data/weblogic/app_properties/log4j.properties:$/data/weblogic/app_properties/download.properties:Problem here is i am not able to get the logs updated,even though my application is running fine.
    Can you any one please tell me am i missing anything.
    Thanks,
    Ram

    Hi,
    I placed all my properties files outside ear file in the folder C:\bea\user_projects\domains\xyz\config . I changed classpath setting in startweblogic.cmd as follows
    set CLASSPATH=%WEBLOGIC_CLASSPATH%;%POINTBASE_CLASSPATH%;%JAVA_HOME%\jre\lib\rt.jar;%WL_HOME%\server\lib\webservices.jar;./config;%CLASSPATH%;When i run my application, these properties are getting picked up and logs comming up in the spcified folder I have done this in windows platform.
    When i tried the same in unix box, by keeping properties files in separate folder and including that folder in classpath of startManagedWebLogic.cmd. Here is my classpath settings that i have modified
    $/data/weblogic/app_properties/log4j.properties:$/data/weblogic/app_properties/download.properties:Problem here is i am not able to get the logs updated,even though my application is running fine.
    Can you any one please tell me am i missing anything.
    Thanks,
    Ram

  • CLASSPATH setting for IAS installation?

    Hi
    I am trying to install IAS 1.0.2 on Solaris. Everything seemed to be going okay until near the end, when I am informed by the installer that the SSOHash Class has not been loaded into the database.
    I have attempted to follow the advice on metalink about using loadjava to load the classes manually, but it still errors. I believe that I may have the CLASSPATH set incorrectly. The installation guide states it should not refer to an existing Oracle home, but I did not have a CLASSPATH set up with my exisiting DB configuration. It does not advise what it should be set to.
    Please can anyone advice what it should be set to if my directory structure is something like oracle/app/product/ias/ etc
    Thanks in advance
    Tim

    This is the sort of thing I am getting
    internal error: unanticipated exception: java.io.FileNotFoundException: ?resolve
    java.io.FileNotFoundException: ?resolve
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at java.io.IOException.<init>(Compiled Code)
    at java.io.FileNotFoundException.<init>(Compiled Code)
    at java.io.FileInputStream.<init>(Compiled Code)
    at java.io.FileInputStream.<init>(Compiled Code)
    at oracle.aurora.server.tools.loadjava.LoadJava.processLoadAndCreate(Compiled Code)
    at oracle.aurora.server.tools.loadjava.LoadJava.process(Compiled Code)
    at oracle.aurora.server.tools.loadjava.LoadJavaMain.run(Compiled Code)
    at oracle.aurora.server.tools.loadjava.LoadJavaMain.main(Compiled Code)
    I tried using this utility after the portal installation failed with 'you cannot login because there is no configuration information stored in the enabler configuration table' . I confirmed this was the case by checking the contents of user_ojects, and found there were no objects of type 'JAVA CLASS'

  • What classpath setting is needed for JMF 2.1.1.

    What classpath setting is needed to get JMF2.1.1 working on WindowsXP?
    I want to run some of my JMF code ..but am unable to do so ...please help ...thank you!!

    Hi
    When you install JMF2.1.1, Windows Performance Pack the classpath will be automatically set but i am still giving you the files for which the classpath has to be set.
    JMF21~1.1\LIB\SOUND.JAR;
    JMF21~1.1\LIB\JMF.JAR;
    JMF21~1.1\LIB\CUSTOM.JAR.;
    Try this and it will work.
    Also to check the working there is a class file which performs JMF Diagnostics, if you can give me your contact email, i can send you that file and how to use it.
    Thanks
    Swaraj

  • Should deploying a .rar put those classes in the Weblogic Classpath?

    Should deploying a .rar put those classes in the Weblogic Classpath?
              I am deploying an EJB and a RAR, the EJB has no dependencies on the
              RAR b/c the EJB is writing to the Common Client Interface(CCI). The EJB
              client app has
              sends/marshals as parameters classes that are defined in the RAR.
              For some reason the EJB's class loader hierachy cannot find the definition
              of this RAR specific class, even though the RAR is deploying. I receive the
              following error on the EJB client:
              ===========================================================
              java.rmi.UnmarshalException: error unmarshalling arguments; nested exception
              is:
              java.lang.ClassNotFoundException:
              com.myclientcompany.server.eai.InteractionSpecImpl
              java.lang.ClassNotFoundException:
              com.myclientcompany.server.eai.InteractionSpecImpl
              <<no stack trace available>>
              ===========================================================
              Marc T. Calello
              Momentum Software, Inc
              Austin, TX
              [email protected]
              

              When you pass an instance of
              com.myclientcompany.server.eai.InteractionSpecImpl
              as an argument to your EJB, the appServer needs to
              de-serialize(unmarshall)
              the object under the EJB context, and it needs the required class for
              unmarshalling,
              inside the ejb-jar(raTester.jar).
              So if you include the interactionspecimpl class in your ejb-jar file,
              then you dont need
              to include those classes in your server's classpath.
              prasen
              "Marc T. Calello" wrote:
              >
              > Should deploying a .rar put those classes in the Weblogic Classpath?
              > I am deploying an EJB and a RAR, the EJB has no dependencies on the
              > RAR b/c the EJB is writing to the Common Client Interface(CCI). The EJB
              > client app has
              > sends/marshals as parameters classes that are defined in the RAR.
              > For some reason the EJB's class loader hierachy cannot find the definition
              > of this RAR specific class, even though the RAR is deploying. I receive the
              > following error on the EJB client:
              > ===========================================================
              > java.rmi.UnmarshalException: error unmarshalling arguments; nested exception
              > is:
              > java.lang.ClassNotFoundException:
              > com.myclientcompany.server.eai.InteractionSpecImpl
              > java.lang.ClassNotFoundException:
              > com.myclientcompany.server.eai.InteractionSpecImpl
              > <<no stack trace available>>
              > ===========================================================
              >
              > --
              > Marc T. Calello
              > Momentum Software, Inc
              > Austin, TX
              > [email protected]
              

  • Runtime classpath setting-help

    Hi friends,
    I m getting java.lang.NoClassDefFoundError: org/jdom/input/SAXBuilder exception because of the classpath setting..This is the story, During runtime i have to change one xml file. For that i need the jdom.jar. This jar file shoulb be set in classpath during runtime.. i dont know how to do that.. plz help me.
    Thanking you
    Krishna.

    Use the -cp or -classpath argument of java command to specify file system paths and JAR files to be taken in the classpath.

  • Dynamic setting of weblogic Classpath

    Hi All,
    As usual I have an unusual requirement.
    I need to set the classpath dynamically from within an application running on
    weblogic 6.0 and want the class loader to take notice of the change for future
    class loading, without bringing down the server.
    Can any body suggest a solution for this not so usual question????
    Thanks in anticipation
    Regards
    Hrishi

    the compiler i'm using is part of the application and is using exactly the same environment ...
    and the changes are visible !!! : using System.getProperty and System.setProperty and printing the new classpath shows me that the classpath has been changed. But still it seems that the compiler don't look in the new libraries I've just put in the classpath

  • 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

  • Problem in classpath setting!!please help urgent

    hi,
    i am using BEA weblogic server 9.0.i created a new domain names servletproj.i have created directory webapp under applications dir.
    i.e C:\bea\user_projects\domains\servletproj\applications\webapp
    i have created a directory srtucture as webapp\WEB-INF\web.xml
    and webapp\WEB-INF\classes\HelloClientServlet.class
    i am able to start and shut down the server.i compiled the servlet program successfully.
    but i want to run the program .i don't know how to set the classpath and path variables .please help me.please explain in simple steps.i would like to set the path in command line.
    bye.

    Hi Kristoper,
    No..that Vo is based on some EO..why i am using the row.setAttribute() is...the bid number is coming from some other page...and i need to insert it in table..
    and except the bid number..other values are coming from the page...
    Thank you

  • WLS running as Service - Classpath setting

    How can I set weblogic's classpath, if Weblogic 6.1 is running as a service on Windows 2000? I know if it is run from startWebLogic.cmd, we can change the classpath in startWebLogic.cmd.
    Thanks,
    Siva.

    Check the installntservice.cmd script that comes with the server
    You need to use the cmdline option for the service
    set CLASSPATH=.;C:\beas\wlserver6.1sp1\lib\weblogic_sp.jar;C:\beas\wlserver6.1sp1\lib\weblogic.jar
    rem *** Set Command Line for service to execute
    rem *** %JAVA_HOME%\java will automatically be prepended.
    set CMDLINE="-ms64m -mx64m -classpath \"%CLASSPATH%\" -Dweblogic.Domain=mydomain -Dweblogic.Name=myserver -Djava.security.policy==\"C:\beas\wlserver6.1sp1/lib/weblogic.policy\"
    -Dbea.home=\"C:\beas\" weblogic.Server"
    rem *** Install the service
    "C:\beas\wlserver6.1sp1\bin\beasvc" -install -svcname:myserver -javahome:"C:\beas\jdk131" -execdir:"C:\beas\wlserver6.1sp1" -extrapath:"C:\beas\wlserver6.1sp1\bin" -cmdline:%CMDLINE%
    Details are at
    http://e-docs.bea.com/wls/docs61/adminguide/startstop.html#1026476
    Yeshwant
    Siva K Koralla wrote:
    How can I set weblogic's classpath, if Weblogic 6.1 is running as a service on Windows 2000? I know if it is run from startWebLogic.cmd, we can change the classpath in startWebLogic.cmd.
    Thanks,
    Siva.

  • Even after classpath setting in jserv.properties file  error.

    hi kali,
    i have used a custom jsp page for export to excell using a jar file poi-3i-200566.jar which i deployed in oracle apps version 11.5.10.2.
    the jar is put in $JAVA_TOP and class path entry is set in jserv.properties file as
    wrapper.classpath=/d2_u10/....../poi-3i-200566.jar .
    After setting the classpath , bounced the apache.
    But even after the setting , the same error continues.
    I refered the mod_jserv.log file for error details , the error is in import statement of classes present in the poi-3i-200566.jar file like
    could not find the symbol HSSRow , HSSpreadsheet , etc. all these are classes in jar file.
    please anybody know any extra conf is needed or any idea where i am going wrong.
    thanks
    prabhakr,ap

    Hi,
    Please check your jserv.properties file whether the custom class path that you have set is present or not in jserv.properties after restarting the AutoConfig and Apache server.
    Thanks & Regards,
    Sagarika

  • Classpath setting

    Hello techies,
    I had installed jdk-1_5_0-rc-windows-i586 in my system.
    I am having windows2000servicepack4.
    I had also installed mysql. I had also installed mysql-connector-java-3.1.8a.zip . I had extracted this zip file.
    It is having 6 JAR files. In the lib folder, i am having the follwoing 4 jar files.
    C:\mySql\mysql-connector-java-3.1.8\lib\aspectjrt.jar
    C:\mySql\mysql-connector-java-3.1.8\lib\aspectjtools.jar
    C:\mySql\mysql-connector-java-3.1.8\lib\jdbc2_0-stdext.jar
    C:\mySql\mysql-connector-java-3.1.8\lib\jta-spec1_0_1.jar
    The remaining 2 jar file are
    C:\mySql\mysql-connector-java-3.1.8\mysql-connector-java-3.1.8-bin.jar
    C:\mySql\mysql-connector-java-3.1.8\mysql-connector-java-3.1.8-bin-g.jar
    I had installed java in
    c:\program files\java
    Mysql in c:\mysql\
    Now i have to set up the classpath.
    I had gone to MyComputer>Properties>Advanced>
    Now i had created two variables claspath n path
    classpath: C:\Program Files\Java\jre1.5.0\lib;.;
    path
    C:\Program Files\Java\jdk1.5.0\bin;.;C:\mySql\mysql-connector-java-3.1.8a.zip;.;
    Now iam able to excute java programs successfully. When i try to connect to mysql through jdbc connection.
    It is showing Class Not Found Exception.
    Does i need to specify those 6 jar file in the classpath (or) i just need to specify in the zip file in the path.
    Can i excute servlet programs by using jdk-1_5_0-rc-windows-i586 without mentioning the servlets jar files in the classpath.
    If not what r the jar files i need to mention in the classpath.
    Does jdk 1.5.0 supports servlets.
    iam always having confusion b/w classpath and path
    Does i need to change the classpath for mysql jdbc connection??
    If so can anybody adjust my classpath n path.
    I will be very thankfull if any body replies
    thanks(inadvance),
    ramu

    That said, you shouldn't have a CLASSPATH environment variable anyway. You do need the PATH, but your classpath should be specified in other ways.
    If you create a project in an IDE, you configure projects in that IDE which involves adding jars and directories to its "libraries" or such, which in effect make up the classpath.
    Or if you use the JDK command-line tools (javac and java), you specify the classpath on the commandline:
    javac -classpath (classpath here) ...
    (same command-line option for the java command-line executable)
    Please follow all the documentation and tutorials on this site...

  • Reg Classpath setting in WIN NT4

    Hi Friends,
    I have installed JDK 1.3.1 recently on Win NT4 and facing the following problem..
    1. when i say javac A.java it says can't read file.
    My settings under environment variables r as follows..
    PAth=C:\JDK1.3\BIN;
    CLASSPATH=.;\C:\JDK1.3\lib\tools.jar;
    Both these i have set under User variables.I would like to know if any one of these have to be set under System environment variable? If i don't put .;\ in classpath..then also it gives same error. Whether i write my prog in notepad or in DOs editor the problem is same.
    Pl. help...i am fed up trying....i have read all related questions but my problem remains unsolved.I am able to work on Win 2000 but not NT4 and thats what is bugging me.
    Thanks in advance and expecting a fast reply to this.
    waiting for solution...
    VA

    See when i write the prog in dos editor then it says can't read file...even when i say edit A.java and open the editor. If i use "edit A.java" also no use.
    The suggestion u gave for notepad doesn't work. I used all files option while saving and gave .java extension.But it gets saved as A.java.txt. It works only when i save it in double quotes like "A.java".Only this works on NT4. I still want to know what and how i can do it when i use Dos editor? Its not taking 4 character extn.So what to do?
    See if anyone take interest to reply to this small question.
    Thanks in advance.
    VA

Maybe you are looking for

  • Firefox runs extremely slow on my Macbook Pro after upgrade to 5.0.1. It is unbearable.

    I upgraded to 5.0.1, then to 6.0, and Firefox still runs slow. Gets stuck for a minute when I open new windows and type a Google search. The version I had before 3.6.x handled my rapid-fire new window searches no problem, but now I find myself waitin

  • Downloading PO's into excel sheet?

    Hello All! I am trying to download the po's into excel sheet through a programm. In this regard i would like to know the procedure for that. Presently my plan is to collect all the fields into two internal tables (one for header and another for item

  • Automate  and  Batch actions

    I am converting tiff files to jpeg using the Automate then Batch Actions. I select my source folder and Destination folder. The program converts and send the jpegs to the Destination folder but it is also sending a copy of every jpeg to my DESKTOP. N

  • Editing LR images in PS:

    I am a very happy CC subscriber and a reasonably proficient LR user on a Win 7-64 PC.  When sending RAW images to PS for additional editing, I am unable to see the results of the PS edits in LR library.  I've looked into preferences for both LR and P

  • CCM category links in SRM

    I have published items from CCM into SRM and they have populated new catalog categories in the schema. So, the number of links displayed to the end user has gone up. Now, I would like to remove the items and republish. However, after the items are go