Setting classpath in WebLogic 7.0

I'm a WebLogic newbie.
I've developed some simple EJB and everything works fine.
I want to add an external package (jar file) to the classpath but
can't figure out how to do it.
Detailed help will be most welcome (which file to edit or directory to
throw your jar files in).

If your a newbie this sounds daunting I am sure.
But if your going to do do this easily and right, pick up a book on Ant, it will
easily build jar's with manifest classpaths.
This is much easier in 8.1 coming soon..... stay tuned.
mbg
Deepak Vohra <[email protected]> wrote:
Specify the external jar file in the Class-Path header of
META-INF/MANIFEST.MF
Class-Path: external.jar
The URL in the Class-Path header is given relative to the URL of the
Ejb
JAR file
Jonathan Taub wrote:
I'm a WebLogic newbie.
I've developed some simple EJB and everything works fine.
I want to add an external package (jar file) to the classpath but
can't figure out how to do it.
Detailed help will be most welcome (which file to edit or directoryto
throw your jar files in).

Similar Messages

  • Setting CLASSPATH question

    Hi,
              I'm evaluating Weblogic 5.1. My evaluation requires me to write an
              Enterprise Java Bean that uses Container Managed Persistence, place it on a
              server, and have an HTML page call into the EJB through a servlet. The
              servlet is also sitting on the server. I've managed to prove that this
              works within the confines of Visual Cafe EE, but cannot make it work
              independantly.
              I've set my HTML page to have a link to the servlet I need to hit
              (http://Local IP:7001/ServletName). The EJB is properly deployed. The
              servlet is registered in weblogic.properties. But when I hit my link, it
              returns a "10.5.1.500 Internal Server Error". And the server throws a
              ServletException which tells me that "Servlet class:
              weblogic.servlet.ServletName could not be loaded - the requested class
              wasn't found in classpath."
              "weblogic.servlet.ServletName" is my location on the server. I've
              registered that location in my wl.props and it shows on the server. I'm
              running Win2K and have the location of my EJB and location of the servlet in
              both the User CLASSPATH and the System CLASSPATH.
              Can anyone help me out? Where can I find the exact meaning of error
              "10.5.1.500 Internal Server Error"?
              Feel free to contact me at [email protected] or directly at 303-987-3499
              ext-35.
              Thanks, 'Soli
              

    [email protected] (Chris Basoli) wrote in
              <[email protected]>:
              >Hi,
              >"weblogic.servlet.ServletName" is my location on the server. I've
              >registered that location in my wl.props and it shows on the server. I'm
              >running Win2K and have the location of my EJB and location of the
              >servlet in both the User CLASSPATH and the System CLASSPATH.
              I'm having a little trouble understanding "my location on the server". The
              registration is for associating names with classfiles. Thus, in order for
              what it seems like you're saying here to work, you'd need (assuming a
              default installation of WLS):
              in weblogic.properties:
              weblogic.httpd.servlet.classpath=c:/weblogic/myserver/servletclasses
              weblogic.httpd.register.ServletName=weblogic.servlet.ServletName
              on the filesystem:
              c:\weblogic\myserver\servletclasses\weblogic\servlet\ServletName.class
              >
              >Can anyone help me out? Where can I find the exact meaning of error
              >"10.5.1.500 Internal Server Error"?
              From this error, I can determine that you do have the register part of the
              properties file properly set up. Either the class file is not there (see
              filesystem statement) or it does not have the proper package statement.
              The error is actually "500 Internal Server Error". The 10.5.1 might be a
              documentation reference (Cameron? BEA?), but the 500 error is sufficient.
              It means the web server you're talking to had a processing error that it
              couldn't recover from and thus could not return the response you requested.
              You'll usually get in in servlet failures, or app server failures.
              Jesse
              

  • Setting CLASSPATH's on Windows & Linux

    I am still new Java programming language, but I am coming along in learning the actually language. The one problem I keep running into is how to set a CLASSPATH on a windows machine and Linux machine. I have currently installed j2sdk1.4.2 on the windows machine and jdk1.5.0 on the linux machine. If any one has any suggestions on how to set these CLASSPATH's I would greatly appreicate it.

    Before ammending classpath I recommend checking the
    windows path variable. This variable is a list of
    folders where windows looks for executables.
    Path can be viewed by going to control panel ->
    system _> advanced table -> environmental variables
    and then selecting path and then edit.
    Make sure �C:\Program Files\Java\J2SDK1.5.0\bin� (or
    equivalent)is included.
    Alternative you can enter �path = %path%; �C:\Program
    Files\Java\J2SDK1.5.0\bin� into command prompt each
    session.
    This ensures that you can compile and execute java
    programs from any directory. Ideally the java
    installer should do it but I have found it does not.Indeed.
    Similarly the classpath can be varied from either the
    command prompt or it can be added to the
    environmental variables.I'm one of those that recommends folks not set CLASSPATH using an environment variable.
    IDEs like Eclipse and IntelliJ totally ignore it; so do containers like WebLogic and Tomcat.
    One CLASSPATH does not fit all. Every project is unique. The best way to set it is with the -classpath option on both javac.exe and java.exe.
    For compiling, you should learn Ant. It's a make tool built on Java and XML. That'll help with your compilation issues.
    For running, you'll either run in a container, which has its own idea of CLASSPATH, or you can script the startup of a batch job using a Windows .cmd or *nix .sh.  Set the CLASSPATH in the script.
    If altering it from the command prompt, in windows
    use a �;� between paths variables and a �:� for unix
    systems. Also include a �.� as one of the path
    variable as it includes the pre-existing class path.
    For example, when entered from the command prompt (in
    windows), the following line will add �C:\
    JavaPrograms� to the existing Classpath
    Java �cp .;C:\JavaPrograms
    Alternatively go into environmental variables as
    described above and if a classpath variable does not
    exist, create one and include �.� and your desired
    directory.
    Note: I prefer adding directories to the classpath
    via the environment variables as it is more accepting
    a folders with spaces in the name.Installing software in a folder with spaces in its name is asking for trouble. It's not highly recommended.
    %

  • Trouble Setting Classpath on Windows XP

    I'm having trouble setting up a classpath on Windows XP for SDK1.3.1_04.
    I've tried Control Panel\Advanced\Environment Variables\System Variables. There was a Path variable present, to which I've added:
    c:\jdk1.3.1_04\bin;
    There wasn't a Classpath variable present though. I've tried adding it myself in System Variables as follows:
    Variable name: Classpath
    Variable value: set classpath=.;
    But no joy. When I run "set" from the command prompt, there's no classpath present.
    I'd appreciate any help.
    Cheers.

    Hi,
    I am running on XP (unfortunately), but also win2000 and win98.
    Setting up the classpath is not a problem, although if you are logged in as root, then it does not always show correctly.
    Try logging back in as yourself and then checking the classpah through the set command.
    Altrnatively, if this is not the problem, actualy try a reboot. which should not be necessary.
    best
    kev

  • How to set classpath from java class ??

    I have tried to use System.setProperty("java.class.path", "my class path string ") to set classpath dynamically. But it is not working. How to set it dynamically from java class ?? Thanks , gary

    Look into the java.net.URLClassLoader. You can't set the classpath after the fact but you can specify URL's that will checked when you try to load a class with that loader.

  • Problems in setting classpath in vista

    i am using Xp pro and Vista.
    My issue is that I am not able to set classpath in vista.
    i want to set classpath so that I can compile and run programs from different folder other than default one in which java is installed.
    Please help.

    i am using Xp pro and Vista.
    My issue is that I am not able to set classpath in
    vista.
    Don't worry about it. The CLASSPATH variable is best avoided anyway. Specify classpaths for particular apps on the command-line. Teh Docs show you how
    i want to set classpath so that I can compile and run
    programs from different folder other than default one
    in which java is installed.
    Please help.This suggests you're talking about PATH rather than classpath. Do you understand the difference?

  • Setting Classpath in linux

    Hi !! Can anyone help me in setting classpath in linux to run servlets/? I tried using this command..but didnt work
    export CLASSPATH="$CLASSPATH:/usr/share/tomcat5/server/lib/servlets-common.jar"
    Thanks
    Nive

    in ur autoexec.bat file write the following
    set PATH=C:\jdk1.5.0_04\bin;%PATH%
    set JAVA_HOME=C:\jdk1.5.0_04
    set
    CLASSPATH=.;C:\jakarta-tomcat-5.5.9\common\lib\servlet
    -api.jar;C:\jakarta-tomcat-5.5.9\common\lib\jsp-api.ja
    r;C:\Servlets+JSP;..;..\..;C:\jakarta-struts-1.2.4\lib
    \struts.jarThis response is meaningless. Principally because the OP specifically mentioned the use of LINUX. Not Windows.
    I've taken the advice of other forum users by avoiding a system level classpath variable. I define the classpath each time I compile and run. Working on Linux I tend to use command line argument files ( http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/javac.html#commandlineargfile ) which eliminates the need to redefine the classpath each time I compile or run my classes and apps. But others may do things differently.
    Here is a website you might want to check out which pertains to setting the classpath on Solaris and Linux.
    http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/classpath.html

  • How to set classpath and server configuration in eclipse

    i am new to eclipse tool pls anyone tell me to set classpath and serverconfiguration (tomcat) and sample program

    Get WTP [1], install it [2] and checkout one of the lot Eclipse WTP tutorials [3].
    [1] http://www.eclipse.org/webtools/
    [2] http://ftp.osuosl.org/pub/eclipse/technology/phoenix/demos/install-wtp/install-wtp.html
    [3] http://www.eclipse.org/webtools/community/tutorials/BuildJ2EEWebApp/BuildJ2EEWebApp.html

  • Package does not exist even though I set classpath right!

    Hi, my JSP got an error message saying "Package does not exist" at line
    <% import ="org.jfreechart.*"%>
    And I have put the myjar.jar file containing the above classes into blabla\WEB-INF\classes,(where blabla is my current working directory) and set my classpath= blabla\WEB-INF\classes
    It does not either if set classpath= blabla\WEB-INF\classes\myjar.jar
    Anybody could give suggestion? By the way I am using Tomcat.

    your .jar files should be in WEB-INF/lib

  • Help with setting classpath

    Hi All,
    I am new to servlets and JSP. I have a question regarding setting Classpath. My development directory structure is like this c:\..\desktop\java\project1\src\com\eg\web\e1.java. Servlet.jar file is in C:\Program Files\Apache Group\Tomcat 4.1\common\lib. I tried setting Classpath in windows 2000 using control panel=>System utility by this command
    SET CLASSPATH=.;c:\Program Files\Apache Group\Tomcat 4.1\common\lib\servlet.jar . I try to compile my program by going into the whole development directory structure C:\..\src\com\eg\web using javac e1.java. But I get the error "package javax.servlet does not exist". Can somebody help me resolve this?
    Thank You in advance
    Jaya

    Question 1: Are you using an IDE?
    [IDEs ignore the system classpath]
    Question 2: Did you try setting the classpath using the -cp option for javac, if you are not using an IDE?
    [you could also try to print the classpath on command line to check if it has taken effect]

  • Setting Classpath on windows platform

    Hello
    I was trying to set classpath of "D:\documentum\config" in my environment variable , i was doing it through command
    prompt , the command i was implementing was
    set classpath=D:\documentum\config;
    but the when i was closing command prompt , the environment variable in windows named as ClassPath was not updating
    i have also tried this command
    set classpath=%classpath%;D:\documentum\config;
    this also having the same result , so how can i set this property through command prompt
    Regards

    You can permanently set command line environmental variables through the advanced settings in Windows. You have to hunt around for it a bit, it is somewhere behind opening the right click properties of "my computer" (or whatever it is called in your flavor of Windows) and then choosing advanced. An "environmental variables" tab should be present there.
    BUT! I would not advise you to set a classpath variable unless you fully realize that is only to make your development life a bit easier when working on the command prompt. When making your application ready for deployment the classpath must be managed without the variable. A script could work, or packaging everything up as an executable jar. When you start to work with an IDE like Eclipse or Netbeans you don't need that variable at all any more.

  • Setting classpath from the command prompt

    each time i try to set the classpath from the command prompt it is not always well done . can someone give a good format
    i.e set classpath = ;c:\document and settings\ luke

    each time i try to set the classpath from the command
    prompt it is not always well done . can someone give
    a good format
    i.e set classpath = ;c:\document and settings\ lukeThe best way is not doing it at all.
    Anyway, try:
    set classpath = ".;c:\document and settings\luke"

  • Setting classpath in netbeans ide5.0

    i don't know how to set classpath in netbeans ide5.0 for
    MySQL driver and its jar file.

    Then you should read the Netbeans documentation:
    http://www.netbeans.org/kb/50/using-netbeans/index.html

  • In UNIX how to set classpath

    I know nothing about UNIX. pls kindly give me some instruction on how to set classpath in UNIX, thanks!

    best way is to set in your .profile (name differs between different shells, but whatever the OS/Shell is, it should starts with . and has a 'profile' string in the name). Try ls -a to find the file, edit it, insert lines like this:
    CLASSPATH=xxxx
    export CLASSPATH
    Use : to seperate different path/files.
    then every time when you log in, the classpath is setted.
    if you already logged in, use the above lines in command line, but it only set class path of the current shell/console.
    anyway, you should learn Unix before you do anything, or you'll have more trouble. do a search in yahoo or google to find on line tuturials, and SUN's Java tuturial has some basic instructions on how to use Java in Unix.

  • Set classpath in Window 95, 98, ME

    Hi,
    Would anybody please show me how to set the class path in windows 95, 98, ME.
    I used: set classpath=c:\ but it did not work
    Thanks

    hi,
    Instead of using 'classpath' try and use just 'path'.
    If JDK is installed in C: then the path would be
    "path=c:\jdk1.3\bin;%path%"
    Regards
    Deepa Datar

Maybe you are looking for

  • UK iphone 3gs upgraded from a nokia n82

    Hi there ,Sorry if this is a stupid question but I have just upgraded my trusty old nokia n82 to the new iphone 3gs .And i was told all i needed to do was take my sim out the old phone and put it in the iphone and register on line at itunes .Oh this

  • Delete Parameter from Database profile

    Hi forums, I have a doubt. I have SAP BW 7.0 on Windows with Oracle 10.2.0.2. The session of GoLive recommend me the following: Parameter: shared_pool_reserved_size Description: Part of Shared Pool for large statements      Current Value: 47799336   

  • The web server in j2eesdk1.3 only generate pages not larger than 8K(8192B)?

    I use j2ee sdk1.3 now to develop a web site, ejb for background operations, jsp for display. And I use deploytool to deploy them. But I find that the web server can only generates web pages less that 8192 bytes. Where can I set the parameter? Thanks!

  • G505s AppData error msg

    I get the following error message everytime I turn my computer on & sign in: C:\Users\MyName\AppData\Local\Temp\octDF9D.temp.ex​e     (The 4 characters following oct change each time) Windows cannot access the specified device, path, or file.  You ma

  • Storing GUID in CHAR 32 format from RAW 16

    I'm trying to get  Ext Ref No from a table CRMD_SALES (field PO_NUMBER_SOLD) and add it to the extract structure crmt_bw_complaints_i. The join should be on the field GUID of the CRMD_SALES table. Unfortunately, neither of guid from the extract struc