Error while compiling JMS example - package javax.jms does not exist

Dear All,
I am a newbie trying to use JMS. I have downloaded EE 5 SDK and installed (it contains Message Queue 4.1 as well). After the installation and going to some tutorials, I tried to compile the example 'SimpleQueueSender.java' which was downloaded from Sun website.
Before running the application, I made sure that I have set the classpath, path environment veriables correctly, but still I got the error "package javax.jms does not exist". I have searched internet for help and in all places I found people replying to similar issues. But I was not able to apply the solution as either the folder names or file names specified in the solution is different from what is existing in my system.
Please help me. Also could anyone help me in telling the pre-requisites to ensure a proper running of java application.
Thanks in Advance
Regards,
San

I'm not sure exactly what your JavaEE SDK installation contains (there are so many versions) but it will typically contain a Glassfish installation. Under the Glassfish installation, the imq directory contains all the files needed for MessageQueue.
The javax.jms package contains the JMS API interfaces. These can be found in jms.jar, which is typically in imq/lib. At runtime you will also need imq.jar from the same directory, which contains the implementation of these interfaces for MessageQueue.
Note that you will need to start a Message Queue server as well. EIther start a Glassfish server (which includes an embedded Message Queue broker), or (simpler) start a standalone Message Queue broker by running imqbrokerd (from the imq/bin directory).
Nigel

Similar Messages

  • ANT script genrated error: package javax.servlet does not exist

    Hi there,
    I am running ANT and confronted this message:
        [javac] Compiling 1 source file to C:\eclipseProjects\tomcat_test
        [javac] C:\eclipseProjects\tomcat_test\WEB-INF\src\WebTest.java:4: package javax.servlet does not exist
        [javac] import javax.servlet.ServletException;
        [javac] ^I googled around and found this solution:
    servlet-api.jar is the jarfile that contains javax.servlet.ServletException and javax.servlet.http.* which are imported by WebTest.java and must therefore be found in the classpath. If javac doesn't find this jar (or the javax.servlet packages), it will say (or shout, depending on my and javac's mood): [the error message]
    well...I set in the classpath the location of the servlet-api.jar
    (found at: C:\Tomcat\common\lib)
    I set it with the environment variable (windows xp)
    Just as it's shown here: http://www.cs.usask.ca/~wew036/latex/env-env.jpg
    NOTHING :-(
    could anyone assist, thanks

    Hi..seems u r new to J2ee.. dont worry its a very small problem:
    Here is the solution.. yes u have to edit the environment variables:..
    I am using J2EE sdk 1.4 and running on xp
    This is the classpath setting:
    C:\Sun\AppServer\lib\j2ee.jar;
    This is the PATH setting
    C:\Sun\AppServer\bin;
    Good Luck :)

  • Package javax.mail does not exist (Still having trouble)

    Good Morning
    I know that there are several posts regarding issues with javamail. I have viewed them for the past hour. While several of them address my issue I have been unable to locate a solution.
    Bare with me please, I am making this post very thorough. The other threads I have read are frusterating because the problems people tend to post are not clear.
    I am trying to run "msgsend" which is a provided demo of javamail-1.4 using command prompt (start - run - cmd) with the javac command.
    The output below is directly pasted from command prompt and written in bold.
    C:\download\javamail-1.4\demo>javac msgsend.java
    C:\download\javamail-1.4\demo>javac msgsend.java
    msgsend.java:44: package javax.mail does not exist
    import javax.mail.*;
    ^
    msgsend.java:45: package javax.mail.internet does not exist
    import javax.mail.internet.*;
    ^
    msgsend.java:140: cannot find symbol
    symbol : class Session
    location: class msgsend
    Session session = Session.getInstance(props, null);
    ^
    msgsend.java:140: cannot find symbol
    symbol : variable Session
    location: class msgsend
    Session session = Session.getInstance(props, null);
    ^
    msgsend.java:145: cannot find symbol
    symbol : class Message
    location: class msgsend
    Message msg = new MimeMessage(session);
    ^
    msgsend.java:145: cannot find symbol
    symbol : class MimeMessage
    location: class msgsend
    Message msg = new MimeMessage(session);
    ^
    msgsend.java:147: cannot find symbol
    symbol : class InternetAddress
    location: class msgsend
    msg.setFrom(new InternetAddress(from));
    ^
    msgsend.java:151: package Message does not exist
    msg.setRecipients(Message.RecipientType.TO,
    ^
    msgsend.java:152: cannot find symbol
    symbol : variable InternetAddress
    location: class msgsend
    InternetAddress.parse(to,
    ^
    msgsend.java:154: package Message does not exist
    msg.setRecipients(Message.RecipientType.CC,
    ^
    msgsend.java:155: cannot find symbol
    symbol : variable InternetAddress
    location: class msgsend
    InternetAddress.parse(cc,
    ^
    msgsend.java:157: package Message does not exist
    msg.setRecipients(Message.RecipientType.BCC,
    ^
    msgsend.java:158: cannot find symbol
    symbol : variable InternetAddress
    location: class msgsend
    InternetAddress.parse(bcc,
    ^
    msgsend.java:167: cannot find symbol
    symbol : class MimeBodyPart
    location: class msgsend
    MimeBodyPart mbp1 = new MimeBodyPart();
    ^
    msgsend.java:167: cannot find symbol
    symbol : class MimeBodyPart
    location: class msgsend
    MimeBodyPart mbp1 = new MimeBodyPart();
    ^
    msgsend.java:169: cannot find symbol
    symbol : class MimeBodyPart
    location: class msgsend
    MimeBodyPart mbp2 = new MimeBodyPart();
    ^
    msgsend.java:169: cannot find symbol
    symbol : class MimeBodyPart
    location: class msgsend
    MimeBodyPart mbp2 = new MimeBodyPart();
    ^
    msgsend.java:171: cannot find symbol
    symbol : class MimeMultipart
    location: class msgsend
    MimeMultipart mp = new MimeMultipart();
    ^
    msgsend.java:171: cannot find symbol
    symbol : class MimeMultipart
    location: class msgsend
    MimeMultipart mp = new MimeMultipart();
    ^
    msgsend.java:185: cannot find symbol
    symbol : variable Transport
    location: class msgsend
    Transport.send(msg);
    ^
    msgsend.java:193: cannot find symbol
    symbol : class Store
    location: class msgsend
    Store store = null;
    ^
    msgsend.java:195: cannot find symbol
    symbol : class URLName
    location: class msgsend
    URLName urln = new URLName(url);
    ^
    msgsend.java:195: cannot find symbol
    symbol : class URLName
    location: class msgsend
    URLName urln = new URLName(url);
    ^
    msgsend.java:212: cannot find symbol
    symbol : class Folder
    location: class msgsend
    Folder folder = store.getFolder(record);
    ^
    msgsend.java:218: cannot find symbol
    symbol : variable Folder
    location: class msgsend
    folder.create(Folder.HOLDS_MESSAGES);
    ^
    msgsend.java:220: cannot find symbol
    symbol : class Message
    location: class msgsend
    Message[] msgs = new Message[1];
    ^
    msgsend.java:220: cannot find symbol
    symbol : class Message
    location: class msgsend
    Message[] msgs = new Message[1];
    27 errors
    Here are the methods I have tried...
    1. Make sure you have most current version of Java
    2. Reinstall Java
    3. Attempt to compile in an IDE (Attempted in Eclipse 3.2)
    4. Set class path
    Some sources suggest "CLASSPATH" some suggest "CLASS PATH" as the variable name. I have tried both.
    Below is what the classpath looks like in bold.
    Variable Name: CLASS PATH
    Variable value: c:\download\javamail-1.4\mail.jar;C:\download\jaf-1.1\activation.jar;.
    I have double checked all folder names and copy pasted all entries to eliminate typos. Javamail-1.4 and jaf-1.1 are both located in c:\download which is the same location Class Path points to.
    Thank you very much for your input and effort. I can imagine how frusterating it is responding to 20million javamail posts :) (that may be a bit of an overstatement!)
    Thank you again!
    Irbi
    Message was edited by:
    irbi
    Message was edited by:
    irbi

    Yes - I have read that part of the README and did exactly as it has said in a previous attempt. I should have mentioned that here I'm sorry :)
    I moved the .jar files into the download folder and set the classpath exactly as the readme shows.
    When I do that the msgsend.java compiles correctly but it still does not run.
    Below is what happens.
    C:\download\javamail-1.4\demo>set CLASSPATH=%CLASSPATH%;c:\download\javamail-1.4
    \mail.jar;%CLASSPATH%;c:\download\jaf-1.1\activation.jar.
    C:\download\javamail-1.4\demo>javac msgsend.java
    C:\download\javamail-1.4\demo>java msgsend.java
    Exception in thread "main" java.lang.NoClassDefFoundError: msgsend/java
    C:\download\javamail-1.4\demo>
    I have tried fixing this error as well via forums and FAQs but it seems to be the most generic error.
    One suggestion was to clear your classpath. I tried this with a test hello world program which was giving the same error - "NoClassDefFoundError". By clearing the classpath I was able to get the hello world program to run without this error. But I can't just clear the classpath in this instance because it needs to point to mail.jar and activation.jar for the program to compile.
    Thanks again for all of your efforts. You are more appreciated than you know.

  • Package javax.persistence does not exist

    Hi, I'm a beginner on Weblogic, sorry my so simple and basic question (and my bad english). But I'm trying to build the weblogic examples ("ant build", as the documentation says) and got error messages like this:
    Buildfile: build.xml
    clean:
    init:
    [mkdir] Created dir: /opt/bea/wlserver_10.3/samples/server/examples/src/examples/ejb/ejb30/build/META-INF
    [copy] Copying 1 file to /opt/bea/wlserver_10.3/samples/server/examples/src/examples/ejb/ejb30/build/META-INF
    [copy] Copying 1 file to /opt/bea/wlserver_10.3/samples/server/examples/src/examples/ejb/ejb30/build/META-INF
    [echo] ======================================================
    [echo] Building EJB 3.0 Samples
    [echo] ======================================================
    [echo] Base directory : /opt/bea/wlserver_10.3/samples/server/examples/src/examples/ejb/ejb30
    [echo] Samples Home : /opt/bea/wlserver_10.3/samples
    [echo] Deployed Target : /opt/bea/wlserver_10.3/samples/server/examples/build/ejb30/reviewService.ear
    compile:
    [javac] Compiling 38 source files to /opt/bea/wlserver_10.3/samples/server/examples/src/examples/ejb/ejb30/build
    [javac] /opt/bea/wlserver_10.3/samples/server/examples/src/examples/ejb/ejb30/src/java/examples/ejb/ejb30/domain/Artist.java:6: package javax.persistence does not exist
    [javac] import javax.persistence.*;
    [javac] ^
    [javac] /opt/bea/wlserver_10.3/samples/server/examples/src/examples/ejb/ejb30/src/java/examples/ejb/ejb30/domain/Person.java:7: package javax.persistence does not exist
    I suppose that there is some "jar" containing "javax.persistence" that should be included in some classpath
    on build.xml file, but I didn't find such "jar". I found in documentation that persistence is also implemented using
    the Kodo software, an may be I should configure it, but I don't know how. Can someone help me building the
    Weblogic examples?
    Thanks.

    Hi,
    Here the result of :
    echo "CLASSPATH" in windows after running setWLS.Env.cmd
    C:\bea\patch_wlw1030\profiles\default\sys_manifest_classpath\weblogic_patch.jar;
    C:\bea\patch_wls1030\profiles\default\sys_manifest_classpath\weblogic_patch.jar;
    C:\bea\patch_jdev1111\profiles\default\sys_manifest_classpath\weblogic_patch.jar;
    C:\bea\patch_cie660\profiles\default\sys_manifest_classpath\weblogic_patch.jar;
    C:\bea\JROCKI~1\lib\tools.jar;C:\bea\WLSERV~1.3\server\lib\weblogic_sp.jar;
    C:\bea\WLSERV~1.3\server\lib\weblogic.jar;
    C:\bea\modules\features\weblogic.server.modules_10.3.0.0.jar;
    C:\bea\WLSERV~1.3\server\lib\webservices.jar;
    C:\bea\modules\ORGAPA~1.5/lib/ant-all.jar;
    C:\bea\modules\NETSFA~1.0_1/lib/ant-contrib.jar;
    C:\bea\patch_wlw1030\profiles\default\sys_manifest_classpath\weblogic_patch.jar;
    C:\bea\patch_wls1030\profiles\default\sys_manifest_classpath\weblogic_patch.jar;
    C:\bea\patch_jdev1111\profiles\default\sys_manifest_classpath\weblogic_patch.jar;
    C:\bea\patch_cie660\profiles\default\sys_manifest_classpath\weblogic_patch.jar;
    C:\bea\JROCKI~1\lib\tools.jar;
    C:\bea\WLSERV~1.3\server\lib\weblogic_sp.jar;
    C:\bea\WLSERV~1.3\server\lib\weblogic.jar;
    C:\bea\modules\features\weblogic.server.modules_10.3.0.0.jar;
    C:\bea\WLSERV~1.3\server\lib\webservices.jar;
    C:\bea\modules\ORGAPA~1.5/lib/ant-all.jar;
    C:\bea\modules\NETSFA~1.0_1/lib/ant-contrib.jar;
    C:\Program Files\Java\jre1.6.0_07\lib\ext\QTJava.zip
    Hope it will help
    can you past the content of you script setWLSEnv.sh?
    Also try with the script setExamplesEnv.sh under C:\bea\wlserver_10.3\samples\domains\wl_server (for windows) the equivalent of Unix
    Thanks

  • Package javax.servlet does not exist, package javax.servlet.http does not

    Dear All,
    I am a newbie to JAVA.
    I installed JDK1.6.0_04, then NetBeans IDE 6.0
    I tried compiling an example servlet, but got this error message:
    package javax.servlet does not exist, package javax.servlet.http does not exist
    I tried locating these packages, but in vain. I also tried setting the CLASSPATH to many values, still it did not work.
    Can anyone, please, help me with this.
    Should I be able to see/locate these packages, do I have to download them?
    Thank you very much.

    davidgoodman wrote:
    Dear All,
    I am a newbie to JAVA.
    I installed JDK1.6.0_04, then NetBeans IDE 6.0
    I tried compiling an example servlet, but got this error message:
    package javax.servlet does not exist, package javax.servlet.http does not exist
    What servlet/JSP engine do you plan to deploy to? Tomcat, perhaps?I think it's Tomcat (C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.14). Are there other engines that come with NetBeans IDE 6.0 (when I downloaded NetBeans, I chose ALL)
    >
    If so, you'll need to put the servlet JAR in your CLASSPATH. (servlet-api.jar for Tomcat 5.5 and earlier, servlet.jar for 6.0 >and later.)
    I tried locating these packages, but in vain.
    You won't find them until you realize that you have to deploy that servlet someplace.How to deploy?
    I also tried setting the CLASSPATH to many values, still it did not work.
    See above. What were you planning to set CLASSPATH to?First I set to:
    C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.14\lib (because I found jar named servlet-api.jar in this folder)
    Later I added this:
    C:\Program Files\Java\jdk1.6.0_04\lib (out of trial-and-fail)
    Finally I added some paths that lead to a library such as
    C:\Program Files\glassfish-v2\lib
    C:\Program Files\glassfish-v2\lib\ant\lib
    Can anyone, please, help me with this.
    Should I be able to see/locate these packages, do I have to download them?
    You have to get a servlet/JSP engine. Step 1.Thank you for your help

  • Missing-- package javax.applet does not exist

    While compiling a short program to work with an image in jcreator I get a javax.applet does not exist error. I've checked the boards for this error as well as the bin dir and didn't see this package in there. Am I looking in the right place?
    C:\j2sdk1.4.1_02\bin...Also looked in the jre folder as there were some others with similar problems.
    Thanks in advance
    Baccoitalia

    Chuck,
    Here's the error I get:
    F:\JCreator Pro\MyProjects\pos407\smileyspot\smiley\Smiley.java:7: package javax.applet does not exist
    import javax.applet.*;
    I am importing following with the program:
    import javax.applet.*;
    import java.awt.*;
    import javax.swing.*;
    Tks,
    Baccoitalia

  • Package javax.servlet does not exist - settings appear to be correct

    laugh as I write this post...it's hardly a "new topic."...but everything seems set just as it should be...
    Okay...I'm a seasoned programmer in every language but JAVA. Here's the issue...every time I try to use the Core Servlets book/website by Marty Hall and Larry Brown I get hung up on the packages. This time, I downloaded and followed step by step what the website said to do...it was even preconfigured for me! Alas...I am getting the following compliation errors on a "simple packagless" program with NetBeans:
    Compiling 1 source file to C:\Servlets+JSP\HelloServlet\build\classes
    C:\Servlets+JSP\HelloServlet\src\helloservlet\HelloServlet.java:2: package javax.servlet does not exist
    import javax.servlet.*;
    C:\Servlets+JSP\HelloServlet\src\helloservlet\HelloServlet.java:3: package javax.servlet.http does not exist
    import javax.servlet.http.*;
    C:\Servlets+JSP\HelloServlet\src\helloservlet\HelloServlet.java:13: cannot find symbol
    symbol: class HttpServlet
    public class HelloServlet extends HttpServlet {
    C:\Servlets+JSP\HelloServlet\src\helloservlet\HelloServlet.java:14: cannot find symbol
    symbol : class HttpServletRequest
    location: class HelloServlet
    public void doGet(HttpServletRequest request,
    C:\Servlets+JSP\HelloServlet\src\helloservlet\HelloServlet.java:15: cannot find symbol
    symbol : class HttpServletResponse
    location: class HelloServlet
    HttpServletResponse response)
    C:\Servlets+JSP\HelloServlet\src\helloservlet\HelloServlet.java:16: cannot find symbol
    symbol : class ServletException
    location: class HelloServlet
    throws ServletException, IOException {
    6 errors
    BUILD FAILED (total time: 0 seconds)
    These are my environment settings (note that the JAVAX package is located under the src folder in Java)
    Catalina Home:
    C:\apache-tomcat-6.0.10
    CLASSPATH:
    C:\apache-tomcat-6.0.10\lib\servlet-api.jar;
    C:\apache-tomcat-6.0.10\lib\jsp-api.jar;
    C:\apache-tomcat-6.0.10\lib\el-api.jar;
    C:\Servlets+JSP;..;..\..;
    C:\Program Files\Java\jdk1.6.0_03\src
    JAVA_HOME
    C:\Program Files\Java\jdk1.6.0_03
    Path:
    C:\Program Files\Java\jdk1.6.0_03\bin;%PATH%
    Any ideas (excluding the one that maybe I should let my hair grow out, put on some tackey shorts and sandles and start palying an instrument in the streets of Austin for living?)

    cabkats wrote:
    You are then suggesting that I make the corrections directly to the files in apache using notepad instead of using the envir. variables?No I am not suggesting that. I am suggesting that you need to read the documentation about the product(s) and set them up the way they require, rather than blindly think that the CLASSPATH environment variable is some magical entity.
    I will try this, but I was hoping that since my IDE auto configured (with exception to java_home) that I would not have to do this. I wil give it try....thanks for the suggestion.See, you're using an IDE. Like I mentioned, IDEs do not use the CLASSPATH environment variable. You need to set up your project in your IDE in such a way that it knows what the dependent jars are. I'm sure there's a way to add jars to your project's dependencies.

  • Package javax.servlet does not exists - Cannot resolve symbol

    Hello,
    I am using JDK 1.3.1.06 version. I wanted to compile a simple servlet using this. But I am getting plenty of errors for all javax package. Why it is not able to find javax package classes?
    The following is the program I have tried to compile.
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    public class TestServlet extends HttpServlet
    public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
    process(request, response);
    public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
    process(request, response);
    private void process(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
    PrintWriter out = response.getWriter();
    out.println("Hello World !");
    I am getting errors like this :
    Package javax.servlet does not exists.
    cannot resolve symbol
    symbol : class HttpServlet
    Please advice me some solutions fast.
    Thanking you,
    ForumAns.

    javax.servlet doesn't come with the standard jdk. It's part of J2EE.
    If you have tomcat, you can use the server.jar that comes with tomcat.
    Or you can just download J2EE sdk instead.
    I am getting errors like this :
    Package javax.servlet does not exists.
    cannot resolve symbol
    symbol : class HttpServlet

  • Package javax.servlet does not exists ?

    Hello,
    I am using JDK 1.3.1.06 and trying to compile a simple Servlet. But getting errors as javax package classes does not exits and cannot resolve symobol.
    The following is the program I am trying to compile:
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    public class TestServlet extends HttpServlet
         public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
              process(request, response);
         public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
              process(request, response);
         private void process(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
              PrintWriter out = response.getWriter();
              out.println("Hello World !");
    I am getting errors such as :
    Package javax.servlet does not exists.
    cannot resolve symbol
    symbol : class HttpServlet
    Please advice me of any solution asap. Deep trouble.
    Thanking you,
    Forumans.

    Just a guess...
    JDK 1.3.1.06 This represents the Java language in the form of a JVM and the Java API (like java.lang.String.)
    ServletThis is in J2EE, which if you look above was not mentioned.
    If you look in the java docs for the JDK you will also find that javax.servlet does not exist.
    I would guess however that you could start here - http://java.sun.com/j2ee/
    However, keep in mind that your servlet still needs to run in something, so you better make sure that you are compiling against the correct J2EE server for what you are doing.

  • Package javax.mail does not exist. Please Help !

    Hi all,
    I am new to Java and I downloaded some sample application and when I try to compile it, I get an error:
    "package javax.mail does not exist".
    I've looked through forums and I know something is wrong with CLASSPATHS and that I also have to download the java mail package, but I dont know how to exactly fix this problem. I would appreciate very much if someone could help me, maybe by telling me the steps I need to take.
    Thanks.

    Hey Rom,
    Thanks for reply.
    The sample application is an authentication module:
    http://java.sun.com/j2se/1.4.2/docs/guide/security/jaas/tutorials/GeneralAcnOnly.html
    But I think this doesnt really matter, as the error I get is because I have manually added the : import java.mail.*; statement. (Maybe I had to mention it in the previous post). Because I want to add some mail client inside.
    I am compiling it using the command: javac, from the commandline menu.

  • ATMTag.java:5: package javax.servlet does not exist

    My j2ee jdk1.4.2 is not supporting javx package.
    i already set all pathh and class path.
    anybody can help me.
    details are given below ::
    C:\AVA\J2EE Programs\JSP\JSPCustomTag>javac ATMTag.java
    ATMTag.java:5: package javax.servlet does not exist
    import javax.servlet.*;
    ^<br>
    ATMTag.java:6: package javax.servlet.http does not exist
    <br>
    import javax.servlet.http.*;
    <br>
    ATMTag.java:18: cannot resolve symbol
    symbol : class TagSupport
    location: class ATMTag
    public class ATMTag extends TagSupport{
    <br> ^
    ATMTag.java:29: cannot resolve symbol
    symbol : class JspTagException
    location: class ATMTag
    public int doStartTag() throws JspTagException{
    <br> ^
    ATMTag.java:31: cannot resolve symbol
    symbol : class JspWriter
    location: class ATMTag
    <br> JspWriter out =pageContext.getOut();
    ^
    ATMTag.java:31: cannot resolve symbol
    symbol : variable pageContext
    location: class ATMTag
    <br> JspWriter out =pageContext.getOut();
    ^
    ATMTag.java:56: cannot resolve symbol
    symbol : variable pageContext
    location: class ATMTag
    pageContext.getOut().write(str);
    <br> ^
    ATMTag.java:60: cannot resolve symbol
    symbol : variable EVAL_PAGE
    location: class ATMTag
    return EVAL_PAGE;
    ^
    8 errors

    When compiling servlets etc, you need to include in your classpath a jar file with all the javax.* classes defined in it.
    For Tomcat this is called servlet.jar and is in (I think) [TOMCAT_HOME]/shared/lib or /common/lib
    For J2EE 1.4 Server, the jar is [J2EE_HOME]/lib/j2ee.jar
    Where the _HOME directory is the directory where you installed J2EE.
    Include this jar file in your classpath when compiling.
    Good luck,
    evnafets

  • Package javax.jnlp does not exist

    I have the following code inmy class file
    public class ExtensionInstallerService implements javax.jnlp.ExtensionInstallerService {
    protected ExtensionInstallerService() {
    But I am getting the error message package javax.jnlp does not exist
    Is this anything to do with the installation of Java Web Start.Should I try re-installing?

    javax.jnlp is in jnlp.jar (see the developers bundle at :
    http://java.sun.com/products/javawebstart/download-jnlp.html)
    you need to include jnlp.jar in your classpath to use the jnlp api's. At runtime when running under Java Web Start these packages are exist in javaws.jar.
    /Dietz

  • Error while creating connection pool "FATAL: database "null" does not exist

    Hi,
    Iam trying to create a XA connection pool using postgres driver (postgresql-8.3-603.jdbc3.jar) on Weblogic 8.1.6.0 from the Admin Console.
    I have provided the following info in the JDBC config
    Driver Class Name: org.postgresql.xa.PGXADataSource.
    JDBC URL: jdbc:postgresql://192.168.192.112:5432/sample1
    UserName: postgres
    Password: Postgres
    When i click Test Driver Configuration. Iam getting the following error
    "FATAL: database "null" does not exist"
    if i change the Driver Class Name to "org.postgresql.Driver", it is working fine. But as iam trying to create XA datasource i need to use the XA Driver class name.
    Can someone tell me how to resolve this issue ?
    The postgres version iam using is 8.3.1

    Hi Joe,
    The driver is in the classpath.
    Please find the stack trace.
    org.postgresql.util.PSQLException: FATAL: database "null" does not exist
    at org.postgresql.core.v3.ConnectionFactoryImpl.readStartupMessages(Conn
    ectionFactoryImpl.java:444)
    at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(Conne
    ctionFactoryImpl.java:99)
    at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactor
    y.java:66)
    at org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Conn
    ection.java:124)
    at org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Conn
    ection.java:30)
    at org.postgresql.jdbc3.Jdbc3Connection.<init>(Jdbc3Connection.java:24)
    at org.postgresql.Driver.makeConnection(Driver.java:386)
    at org.postgresql.Driver.connect(Driver.java:260)
    at java.sql.DriverManager.getConnection(DriverManager.java:512)
    at java.sql.DriverManager.getConnection(DriverManager.java:171)
    at org.postgresql.ds.common.BaseDataSource.getConnection(BaseDataSource.
    java:83)
    at org.postgresql.xa.PGXADataSource.getXAConnection(PGXADataSource.java:
    47)
    at org.postgresql.xa.PGXADataSource.getXAConnection(PGXADataSource.java:
    32)
    at weblogic.management.console.utils.JDBC.testConnection(JDBC.java:185)
    at weblogic.management.console.actions.mbean.JDBCConnectionPoolTestActio
    n.prePerform(JDBCConnectionPoolTestAction.java:114)
    at weblogic.management.console.actions.mbean.DoMBeanWizardAction.perform
    (DoMBeanWizardAction.java:215)
    at weblogic.management.console.actions.internal.ActionServlet.doAction(A
    ctionServlet.java:182)
    at weblogic.management.console.actions.internal.ActionServlet.doPost(Act
    ionServlet.java:86)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
    (ServletStubImpl.java:1077)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:465)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:348)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
    n.run(WebAppServletContext.java:7047)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
    121)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java:3902)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:2773)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)

  • Error: While Opening a Custom view- Action &OBJECT_ID& does not exist

    Hi Experts,
    On the click of button, I am creating a window and opening as follows:
      wd_comp_controller->go_window         = lo_window_manager->create_window(
                          window_name            = 'ZW_CERTIFICATION_POP'
                          title                  = lv_pop_title
                          close_in_any_case      = abap_false
                          message_display_mode   = if_wd_window=>co_msg_display_mode_selected
                          close_button           = abap_true
                          button_kind            = if_wd_window=>co_buttons_okcancel
                          message_type           = if_wd_window=>co_msg_type_none
    I have written following code in INIT method of View to Subscribe events but it is dumping with the Error "Action &OBJECT_ID& does not exist ".
    DATA lv_ok     type string.
    DATA lv_cancel type string.
    DATA lo_popup  TYPE REF TO if_wd_window.
    DATA lo_view   TYPE REF TO if_wd_view_controller.
    DATA lo_window_ctlr type ref to if_wd_window_controller.
    register button events
        lo_view = wd_this->wd_get_api( ).
        lo_window_ctlr = lo_view->get_embedding_window_ctlr( ).
        wd_comp_controller->go_window = lo_window_ctlr->get_window( ).
        lv_ok = cl_wd_utilities=>get_otr_text_by_alias( alias = 'PAOC_RCF_UI/OK' ).
        wd_comp_controller->go_window->subscribe_to_button_event(
                       button            = if_wd_window=>co_button_ok
                       button_text       = lv_ok
                       action_name       = 'OK'
                       action_view       = lo_view
                       is_default_button = abap_true
        lv_cancel = cl_wd_utilities=>get_otr_text_by_alias( alias = 'PAOC_RCF_UI/CANCEL' ).
                   wd_comp_controller->go_window->subscribe_to_button_event(
                      button            = if_wd_window=>co_button_cancel
                      button_text       = lv_cancel
                      action_name       = 'CANCEL'
                      action_view       = lo_view
                      is_default_button = abap_true
    How to solve this exception causing application to dump.
    Thanks
    Depesh

    Hi Depeshn,
    I have written following code in INIT method of View
    I think you have writen code containg subscribe_to_button_event method in the INIT method of the pop up view. But actually you should write that code where you are generating the pop up window. i.e in the ONACTION method of the button (which when clicked generates the pop up window.)
    It should be something like this:
    " This whole code should come in the event handler of the button.
    wd_comp_controller->go_window = lo_window_manager->create_window(
    window_name = 'ZW_CERTIFICATION_POP'
    title = lv_pop_title
    close_in_any_case = abap_false
    message_display_mode = if_wd_window=>co_msg_display_mode_selected
    close_button = abap_true
    button_kind = if_wd_window=>co_buttons_okcancel
    message_type = if_wd_window=>co_msg_type_none
    DATA lv_ok type string.
    DATA lv_cancel type string.
    DATA lo_popup TYPE REF TO if_wd_window.
    DATA lo_view TYPE REF TO if_wd_view_controller.
    DATA lo_window_ctlr type ref to if_wd_window_controller.
    * register button events
    lo_view = wd_this->wd_get_api( ).
    lo_window_ctlr = lo_view->get_embedding_window_ctlr( ).
    wd_comp_controller->go_window = lo_window_ctlr->get_window( ).
    lv_ok = cl_wd_utilities=>get_otr_text_by_alias( alias = 'PAOC_RCF_UI/OK' ).
    wd_comp_controller->go_window->subscribe_to_button_event(
    button = if_wd_window=>co_button_ok
    button_text = lv_ok
    action_name = 'OK'
    action_view = lo_view
    is_default_button = abap_true
    lv_cancel = cl_wd_utilities=>get_otr_text_by_alias( alias = 'PAOC_RCF_UI/CANCEL' ).
    wd_comp_controller->go_window->subscribe_to_button_event(
    button = if_wd_window=>co_button_cancel
    button_text = lv_cancel
    action_name = 'CANCEL'
    action_view = lo_view
    is_default_button = abap_true
    I hope it helps.
    Regards
    Arjun

  • "package javax.media does not exist" error message. Help!

    May be this is a rookie problem, but I can't solve it by myself.
    I'm using JBuider X to develop a GUI, and need to capture an image, from a web cam or so, and to save it in DB.
    The problem is: I found some source codes wich are supposed to do this... but they references (imports) an javax.media class... and the JBuilder says that this class doesn't exists.
    Can anyone help me?
    Where can I get the class, and how I inform to JBuider where it's located?
    Thanks in advance.
    Ernesto Becker

    Project tab, "Build", Libraries -> import the JMF libraries. Something like that.

  • Package javax.servlet does not exist

    Trying to learn servlets. just installing software & tesing install.
    What I have done:
    1. read Deitel text, and written & tested applications and applets..even on my web site. surprise surprise.
    2. installed J2Std Edition and did applications & applets.
    3. Wanted to do servlets so downloaded and installed TOMCAT(got their index html so looks like it is at least running).
    4. Took Deitel servlet pgm example and tried to compile, but got the subject msg and others concening methods i expect to be in the include.
    5. After reading lots decided maybe I need to install J2EE to do servlets(I dont see where Deitel tells me I need to do this).
    6. Went to SUN, downloaded and installed J2EE. Im on NT 4.0 so I set JAVA_HOME and J2EE_HOME.
    7. Read topics this forum, so I found servlet.jar in my TOMCAT dir, copied it to jdk1.3.1\jre\bin and jdk1.3.1\jre\lib.
    8. set CLASSPATH to one of these.
    9 STILL get the error. I appreciate any help you can give. Im very new to SUN and am just blindly trying to follow what Dietel tells me to do. I love the JAVA part of the text, but the way they explain the software installs is very poor.
    The jar file is listed as an executable, so I assume I dont need to do any type of unpacking like with a zip file. A puzzle to me is that the text talks about the INCLUDE stmts pointing to directory structurs/file names, but I cant find many of them.. they mmust be hidden in some other pack files I guess because all applications and applets are compiling and running just fine.
    I there any documentation(at SUN or elsewhere) that kind of explains in English to the uninitiated how the different SUN products/packages work together/seperately.. when each one is necessary??
    Thanks for your help [email protected]

    Grayman,
    An application server like Tomcat needs access to a java runtime environment and all the libraries referenced from the application code that you deploy on it.
    So maybe try debugging like this :
    1)first check all your imports in the code
    especially
    import javax.servlet.*;
    import javax.servlet.http.*;
    2) Browse trough the tomcat documentation to see which runtime environment it is running on top of. This could be something like C:\JDK1.2\.. but could be also be C:\program files\java\JDK1.2\.. or
    even (I dont know Tomcat very well) c:\Program Files\Tomcat\bin\Jdk1.2\
    3) Once you have found which is the runtime environment for your application server, you can assume that all .jar-packaged libraries in ...\JDK1.2\lib\ are available to your code. So you could copy servlets.jar to that directory.
    4) make sure to restart Tomcat.
    if you want to check which Classes are available in a .jar - file, do this: 1)open a dos prompt 2)Set PATH=%PATH%;C:\...\JDK1.2\bin (i.e include the jar-utility) as a command line program
    3)cd to the directory where the .jar-file can be found (ex: C:\JDK1.2\lib\rt.jar)
    4) type: jar -tvf rt.jar
    you should see the content on your screen
    java.awt.Textbox.class
    java.awt. etc..
    good luck
    Papyrus

Maybe you are looking for

  • Sharing Address Books in Outlook Connector

    Hi All, My apologies if this matter has already been dealt with before, but after trying 3 times to make a support call (and being cut-off each time) I have given up in frustration and am asking for help from the group. We are using JES 2005Q4 and Ou

  • Windows IME

    Hello I have a major problem regarding the Windows IME. When i try to change the KeyboardLayout to japanese. I successfull change the keyboard layout with the Win32 ActivateKeyboardLayout function to japanese. But unfortunally i am not able to activa

  • 10.6.6 update failed/booting issues

    Hello, I just purchased a Macbook two weeks ago and last evening attempted the 10.6.6 upgrade using the Software Update. My Macbook has barely anything in it right now, nothing to conflict or eat up memory. Anyway, trying the update leaded to a rando

  • Is there a LayoutManager which will auto expand things on resize?

    Say I want some JLabel aligned to the far left edge and then a button aligned to the far right edge. As the user resizes the frame these components will move to stay same distance from the edges no matter how big or small you resize. I tried laying o

  • Approved Podcast is not the full uploaded version

    Hello All! I submitted my podcast to be reviewed last Friday, January 4th, and it was just approved yesterday, January 6th. The submitted podcast was approximately 32 minutes. When I found my podcast in iTunes, the podcast is only 31 seconds. I thoug