Javac mystic problems

Hi, I have those errors on a simple compilation:
root@vasco:/home/vasco/workspace/HelloServlet/src/fr/chicoree/sample# javac -classpath /opt/jboss/lib/javax.servlet.jar -d ${BLD}WEB-INF/classes ${SRC}HelloServlet.java
/home/vasco/workspace/HelloServlet/src/fr/chicoree/sample/HelloServlet.java:7: cannot find symbol
symbol: class HttpServlet
public class HelloServlet extends HttpServlet{
^
/home/vasco/workspace/HelloServlet/src/fr/chicoree/sample/HelloServlet.java:8: cannot find symbol
symbol : class HttpServletRequest
location: class fr.chicoree.sample.HelloServlet
     public void doGet(HttpServletRequest request, HttpServletResponse response)
     ^
/home/vasco/workspace/HelloServlet/src/fr/chicoree/sample/HelloServlet.java:8: cannot find symbol
symbol : class HttpServletResponse
location: class fr.chicoree.sample.HelloServlet
     public void doGet(HttpServletRequest request, HttpServletResponse response)
     ^
3 errors
As you can see I specified the classpath and everything else.........what is the problem??!
It also compiled yesterday with no pb and now I got problems....bizzar

well some things to check then.
- does said jar still exist at that precise location?
- do you have the rights to read that file as your current user?
- can you open the jar with a zip tool?
It might pay off to use a tool like ANT to build your code by the way, at least you'll only have to configure your classpath, source and destination folders once and then forget about it.

Similar Messages

  • How can you detect (from a script file) that javac found problems?

    The subject line says it all, but the background is:
    I have a script file (.bat, since am stuck on windoze for the moment) which is doing some compilation using javac.
    I would like to skip all subsequent activities in the script file after the call to javac if any file failed to compile.
    So, what can I use as a signal from javac that it found a problem?
    I initially tried detecting an exit code from javac that was non zero, but javac does not seem to emit such an exit coe when it objects to a file (it still returns with 0 as an exit code).
    The only remaining strategy that I can think of is to pipe javac's output to a file, and if there is any content in it then assume that it indicates an error and use that as a signal.
    This is suboptimal because it will give false signals for mere warnings, so if anyone has a better suggestion, please post

    You are right: it appears that javac does exit with an exit code of 1 if an error is detected in one of the files being compiled, at least on the windows jdk.
    To prove this, create an arbitrary java source file called HelloWorld.java, and create a msdos .bat file in the same directory that looks like
    @echo on
    javac  -Xlint:deprecation  HelloWorld.java
    :handleError
    @if not errorlevel 1 goto finalActions
    @echo ERROR DETECTED: compile.bat will TERMINATE PREMATURELY
    :finalActions
    @echo compile.bat now terminatedBy playing around with what you put in the source file (totally clean code, stuff that should compile but issue a warning, and garbage that should not compile) as well as with the exit code value detected by the .bat file, for instance trying
    @if not errorlevel 2 goto finalActions(see http://www.robvanderwoude.com/errorlevel.html if you need some documentation on error codes in dos bat files), I have determined the following as javac's behavior on windows:
    If code is pristine, exit code = 0.
    If code causes javac to emit a warning but is compilable, exit code = 0.
    If code cannot be compiled, exit code = 1.

  • Javac classpath problem

    I get this error when trying to compile a simple program:
    # javac -classpath .;/mnt/bdrive/MyData.class Test.java
    javac: no source files
    Usage: javac <options> <source files>
    where possible options include:
    ***snip***
    bash: /mnt/bdrive/MyData.class: Permission denied
    It seems to be a problem with specifying more than one thing for the classpath. If I remove the ".;", it works. (I don't need the . in the classpath but I should be able to specify it)

    probably :)
    I originally had just the path and was trying it different ways. If I use just the path instead of the permission denied message, I get this:
    bash: /mnt/bdrive/: is a directory

  • Javac compiler problems

    whenever i try to execute the javac compiler the cmd window comes up and then disappears... im not sure what the problem is

    You need to open a console window, and use javac from there.
    Start here
    http://java.sun.com/j2se/1.5.0/docs/tooldocs/index.html
    for info on how to call javac. If anything goes wrong, you will get to see an error message, which you can post back here.
    This may also be useful to read if you get stuck:
    http://java.sun.com/developer/onlineTraining/new2java/index.html

  • Javac Commando problem

    Erhm ok (im new at this btw), i like installed java, and when i made a .java file and tried to javac it, it said
    'javac' is not recognized as an internal or external command,
    operable program or batch file.
    But it DOES recognize "java" command
    Need help plz

    It's possible you've only installed the java runtime, which has the java command for running java programs but none of the development tools.

  • Javac compilation problem ??

    Hi,
    I have a SampleTest.java file in /WEB-INF/classes/com/data folder. Similarly i have another file called TestData.java file in the same /WEB-INF/classes/com/data folder.
    Where in TestData.java file i am creating the instance of the SampleTest.java like:-
    package com.data;
    public class TestData{
    SampleTest test=new SampleTest();
    Here when i try to compile this program i am getting an error
    " *Class com.data.SampleTest not found*." Eventhough both files are in the same package.Both of them are public classes also. Please do provide a solution for this ..Since this is really urgent ..
    Thanx,
    JavaCrazyLover

    Have you double and triple-checked your spelling? If so, then I'd suggest that you show us your code. We don't want to see all of it, but rather you should condense your code into the smallest bit that still compiles, has no extra code that's not relevant to your problem, but still demonstrates your problem, in other words, an SSCCE (Short, Self Contained, Correct (Compilable), Example). For more info on SSCCEs please look here:
    http://homepage1.nifty.com/algafield/sscce.html
    Remember, the code must be compilable and runnable for us to be able to understand it fully.
    Also, when posting your code, please use code tags so that your code will be well-formatted and readable. To do this, either use the "code" button at the top of the forum Message editor or place the tag &#91;code&#93; at the top of your block of code and the tag &#91;/code&#93; at the bottom, like so:
    &#91;code&#93;
      // your code block goes here.
    &#91;/code&#93;good luck, pete

  • Javac command in Command Prompt

    When I compile a .java file in Command Prompt I have to write the whole path to javac.exe - "C:\"Program Files"\Java\jdk1.5.0_07\bin\javac.exe PROBLEM.java"
    What do I have to do to so I could write just "javac PROBLEM.java" no mather in which directory I am?
    I also have to say that I can run java.exe from any directory but I can't do so with javac.exe
    Message was edited by:
    vedex

    I believe the location of "javac" inside jdk must be
    specified in systems variable so that he/she can
    compile it and run. His problem is that he wants to type javac MyClass.java rather than C:\jdk\bin\javac.exe MyClass.java In order to do this, he has to alter his PATH variable.
    This has nothing to do with Java. This is true of any executable you want to run without specifying the full path.

  • How does javac compile .java files?

    I dont know exactly what classpath javac uses to compile java files. i have set classpath to only tools.jar . and it compiles fine. i thought all standard java class files are present in tools.jar. But... when i opened tools.jar i didnt find most of the class files i expected to see there. In fact there was no java.lang, java.io ... so on packages in it. then how is that compiler compiled ? Of course i found rt.jar under jre/lib, which contained all the mentioned packages...but then i didnt give it in the classpath.
    Any body pls clear my doubts.

    Check out the doc "how classes are found" in the tool
    docs, it will explain how classes are found in
    detail.
    tool docs:
    http://java.sun.com/j2se/1.3/docs/tooldocs/tools.html
    I read the docs and understood that javac.exe loads dt.jar before it could compile .java files. but then what is the use of giving tools.jar in classpath.. i ve seen javac giving problems without it.

  • Error when trying to create a types jar from a web service WSDL

    Hi,
    I generated a WSDL from a web service. When I try to generate a types jar from that WSDL in another project, I get an error:
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    com.bea.workshop.webservices.servicecontrol.ui.except.TypeGenerationFailedException: Buildfile: C:\eclipsews\.metadata\com.bea.workshop.webservices.servicecontrol.ui\build-dir\build.xml
    Trying to override old definition of task wsgen
    build:
    build-types:
    clean-types:
    [echo] Deleting types directory c:\development\wlwBuild\XCaregiverEBillingMasterServiceService1297810259474
    [echo] Deleting types jar C:\eclipsews\AAATest\WebContent\WEB-INF\lib\CaregiverEBillingMasterServiceServiceTypes_xmlbeans_apache.jar
    [mkdir] Created dir: C:\development\wlwBuild\XCaregiverEBillingMasterServiceService1297810259474
    generate-src-code:
    [echo] Generating types of family xmlbeans_apache from WSDL at file:/C:/eclipsews/AAATest/src/test/CaregiverEBillingMasterServiceService.wsdl, all services. Outputting to c:\development\wlwBuild\XCaregiverEBillingMasterServiceService1297810259474
    [typesGen] Generating complex Java types for schema types in WSDL file:/C:/eclipsews/AAATest/src/test/CaregiverEBillingMasterServiceService.wsdl. Outputting to C:\development\wlwBuild\XCaregiverEBillingMasterServiceService1297810259474 ...
    [typesGen] [WARNING] Generating array which is non-compliant with JaxRPC 1.1 for XML name: t=ArrayOfTreatmentDetailItem@http://org/abc/claims/caregiver/ebilling/services
    [typesGen] [WARNING] Generating array which is non-compliant with JaxRPC 1.1 for XML name: t=ArrayOfDocumentTypeAutoPayWrapper_literal@java:org.abc.claims.caregiver.ebilling.services.util
    [typesGen] [WARNING] Generating array which is non-compliant with JaxRPC 1.1 for XML name: t=ArrayOfJavaLangint_literal@java:org.abc.claims.caregiver.ebilling.services
    [typesGen] [WARNING] Generating array which is non-compliant with JaxRPC 1.1 for XML name: t=ArrayOfDocumentSubmissionHierarchy@http://org/abc/claims/caregiver/ebilling/services
    [typesGen] [WARNING] Generating array which is non-compliant with JaxRPC 1.1 for XML name: t=ArrayOfMessageCode@http://org/abc/claims/caregiver/ebilling/services
    [typesGen] [WARNING] Generating array which is non-compliant with JaxRPC 1.1 for XML name: t=ArrayOfFeeCodeType@http://org/abc/claims/caregiver/ebilling/services
    [typesGen] [WARNING] Generating array which is non-compliant with JaxRPC 1.1 for XML name: t=ArrayOfBatchMessage@http://org/abc/claims/caregiver/ebilling/services
    [typesGen] [WARNING] Generating array which is non-compliant with JaxRPC 1.1 for XML name: t=ArrayOfArrayOfJavaLangstring_literal@java:org.abc.claims.caregiver.ebilling.services.util
    [typesGen] [WARNING] Generating array which is non-compliant with JaxRPC 1.1 for XML name: t=ArrayOfJavaLangstring_literal@java:org.abc.claims.caregiver.ebilling.services.util
    compile-src-code:
    [echo] Compiling source files from c:\development\wlwBuild\XCaregiverEBillingMasterServiceService1297810259474 to c:\development\wlwBuild\XCaregiverEBillingMasterServiceService1297810259474
    [javac] Compiling 298 source files to C:\development\wlwBuild\XCaregiverEBillingMasterServiceService1297810259474
    [javac] ----------
    [javac] 1. ERROR in C:\development\wlwBuild\XCaregiverEBillingMasterServiceService1297810259474\com\abc\claims\caregiver\ebilling\FeeCodeDocument.java (at line 51)
    [javac]      public static com.abc.claims.caregiver.ebilling.FeeCodeDocument parse(java.lang.String xmlAsString) throws org.apache.xmlbeans.XmlException {
    [javac]      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] No exception of type XmlException can be thrown; an exception type must be a subclass of Throwable
    [javac] ----------
    [javac] 2. ERROR in C:\development\wlwBuild\XCaregiverEBillingMasterServiceService1297810259474\com\abc\claims\caregiver\ebilling\FeeCodeDocument.java (at line 54)
    [javac]      public static com.abc.claims.caregiver.ebilling.FeeCodeDocument parse(java.lang.String xmlAsString, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
    [javac]      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] No exception of type XmlException can be thrown; an exception type must be a subclass of Throwable
    [javac] ----------
    [javac] 3. ERROR in C:\development\wlwBuild\XCaregiverEBillingMasterServiceService1297810259474\com\abc\claims\caregiver\ebilling\FeeCodeDocument.java (at line 58)
    [javac]      public static com.abc.claims.caregiver.ebilling.FeeCodeDocument parse(java.io.File file) throws org.apache.xmlbeans.XmlException, java.io.IOException {
    [javac]      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] No exception of type XmlException can be thrown; an exception type must be a subclass of Throwable
    [javac] ----------
    [javac] 4. ERROR in C:\development\wlwBuild\XCaregiverEBillingMasterServiceService1297810259474\com\abc\claims\caregiver\ebilling\FeeCodeDocument.java (at line 61)
    [javac]      public static com.abc.claims.caregiver.ebilling.FeeCodeDocument parse(java.io.File file, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
    [javac]      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] No exception of type XmlException can be thrown; an exception type must be a subclass of Throwable
    [javac] ----------
    [javac] 5. ERROR in C:\development\wlwBuild\XCaregiverEBillingMasterServiceService1297810259474\com\abc\claims\caregiver\ebilling\FeeCodeDocument.java (at line 64)
    [javac]      public static com.abc.claims.caregiver.ebilling.FeeCodeDocument parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException {
    [javac]      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] No exception of type XmlException can be thrown; an exception type must be a subclass of Throwable
    [javac] ----------
    [javac] 6. ERROR in C:\development\wlwBuild\XCaregiverEBillingMasterServiceService1297810259474\com\abc\claims\caregiver\ebilling\FeeCodeDocument.java (at line 67)
    [javac]      public static com.abc.claims.caregiver.ebilling.FeeCodeDocument parse(java.net.URL u, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
    [javac]      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] No exception of type XmlException can be thrown; an exception type must be a subclass of Throwable
    === snipped here due to huge file size ===
    [javac] 2680. ERROR in C:\development\wlwBuild\XCaregiverEBillingMasterServiceService1297810259474\org\xfa\schema\xfaData\x10\SignatureDocument.java (at line 99)
    [javac]      public static org.xfa.schema.xfaData.x10.SignatureDocument parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
    [javac]      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] No exception of type XmlException can be thrown; an exception type must be a subclass of Throwable
    [javac] ----------
    [javac] 2681. ERROR in C:\development\wlwBuild\XCaregiverEBillingMasterServiceService1297810259474\org\xfa\schema\xfaData\x10\SignatureDocument.java (at line 103)
    [javac]      public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
    [javac]      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] No exception of type XmlException can be thrown; an exception type must be a subclass of Throwable
    [javac] ----------
    [javac] 2682. ERROR in C:\development\wlwBuild\XCaregiverEBillingMasterServiceService1297810259474\org\xfa\schema\xfaData\x10\SignatureDocument.java (at line 107)
    [javac]      public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
    [javac]      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] No exception of type XmlException can be thrown; an exception type must be a subclass of Throwable
    [javac] ----------
    [javac] 2682 problems (2682 errors)
    BUILD FAILED
    C:\eclipsews\.metadata\com.bea.workshop.webservices.servicecontrol.ui\build-dir\build.xml:73: The following error occurred while executing this line:
    C:\eclipsews\.metadata\com.bea.workshop.webservices.servicecontrol.ui\build-dir\build.xml:107: The following error occurred while executing this line:
    C:\eclipsews\.metadata\com.bea.workshop.webservices.servicecontrol.ui\build-dir\build.xml:181: Compile failed; see the compiler error output for details.
    Total time: 17 seconds
         at com.bea.workshop.webservices.servicecontrol.ui.util.TypesGenerationScript.run(TypesGenerationScript.java:197)
         at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
    Caused by: org.eclipse.core.runtime.CoreException: C:\eclipsews\.metadata\com.bea.workshop.webservices.servicecontrol.ui\build-dir\build.xml:73: The following error occurred while executing this line:
    C:\eclipsews\.metadata\com.bea.workshop.webservices.servicecontrol.ui\build-dir\build.xml:107: The following error occurred while executing this line:
    C:\eclipsews\.metadata\com.bea.workshop.webservices.servicecontrol.ui\build-dir\build.xml:181: Compile failed; see the compiler error output for details.
         at org.eclipse.ant.core.AntRunner.handleInvocationTargetException(AntRunner.java:451)
         at org.eclipse.ant.core.AntRunner.run(AntRunner.java:383)
         at com.bea.workshop.webservices.servicecontrol.ui.util.TypesGenerationScript.run(TypesGenerationScript.java:185)
         ... 1 more
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    I was previously able to generate a types jar just fine from the web service's WSDL. Recently, I made some changes to the web service. Apparently, these changes to the web service now cause the WSDL to be unparseable when trying to generate types jars.
    Any ideas?

    The WSDL is generated from my web service. I made heavy revisions to my web service which, in turn, affected the resultant WSDL. The changes I made to my web service were almost exclusively related to object substitution. For example, prior to the change I was referencing object A from my web service; after the change, I was referencing object B. The objects that I'm referring to are XMLBeans, if that matters. I can't really describe it more than that without actually showing you the WSDL.
    I would post the WSDL file here to allow you to try to create a types jar out of it, but the WSDL exceeds the 30000 character limit for this field. There is no way for me to attach the WSDL to this post.

  • Pixelated images in different zoom levels

    Hi, since yesterday I´ve got a mystic problem when zooming my images. In the 100% view the images look sharp, clear and smooth. But when I zoom out and reach the 30% the images is pixelated like there is to much sharpness in it. The view doesn´t smoth the edges and the image look very hard. This effect comes from one zoom level to another (alt + scroll mouse) and zoomong back the image is smoth again. In Lightroom the images look clear and smooth in every zoom level.
    I´ve got an iMac 27" and OpenGL is activated. I´m using Photoshop CC and I think that at the beginning the problem wasn´t there, but since a view days it is...
    Any ideas??
    Best
    Sven

    You can scale the small clips up to the same size of the larger one... but you will get a quality loss.
    Using Motion or Scale to Frame Size commands
    Better to scale the large ones down to a Sequence that matches the smaller clip dimensions.

  • Warning for Continuous Looping External flv or f4v as2

    Malfunction issued in Continuous Looping External flv or f4v in as2 from containers created in Flash Professional CS6 with code
    on (complete){
    this.autoRewind=true;
    this.play();
    solution: always make a new document!
    Mystic problems with x times resized documents, at media 2 or 3 times play and then not playing external fly/f4v

    use:
    kglad wrote:
    if all your buttons are attached to the same parent:
    on(press) {
      s = new Sound(this);
        s.setVolume(100);
        _parent.mcPlayer.seekToNavCuePoint("pict1");
        mcPlayer.play();
    on (release) {
        i = -100;
        s = new Sound(_parent);
        s.setVolume(0);
        gotoAndStop("reset");
    on (release) {
        i = -100;
        s = new Sound(_parent);
        s.setVolume(100);
        gotoAndStop("hold");

  • Where is a VI-Ref valid?

    Hi,
    I've got a kind of mystic problem:
    A main UI process starts some child processes from a template.
    To do this, it opens a Ref to the vit (instantiates it), loads some data (including 'its' VI-Ref) into it and starts it as a new process (run VI-method).
    This seemed to work, when I instantiated a whole bunch of those processes and started them later, whenever a new process was needed. I have changed this behaviour to instantiate _and_ start 'em when needed, because this way main can run continuously.
    Now with this change, the VI Ref that is sent to the newly instantiated process is invalid, causing error -1026 when I try to do anything with it (for example opening the FP).
    Any clue?
    Of course I can obtain a Ref to the new instance inside it, but than there is nor 'connection' from main to the new instance?!!!
    Confused ;-()

    LuI wrote:
    Hi,
    I've got a kind of mystic problem:
    A main UI process starts some child processes from a template.
    To do this, it opens a Ref to the vit (instantiates it), loads some data (including 'its' VI-Ref) into it and starts it as a new process (run VI-method).
    This seemed to work, when I instantiated a whole bunch of those processes and started them later, whenever a new process was needed. I have changed this behaviour to instantiate _and_ start 'em when needed, because this way main can run continuously.
    Now with this change, the VI Ref that is sent to the newly instantiated process is invalid, causing error -1026 when I try to do anything with it (for example opening the FP).
    Any clue?
    Of course I can obtain a Ref to the new instance inside it, but than there is nor 'connection' from main to the new instance?!!!
    Confused ;-()
    A VI reference is closed automatically by LabVIEW as soon as the top level VI of the hierarchy which created (opened) that refnum gets idle. This means if you have two independant VIs A and B, with A opening a VI refnum and doing some stuff on it and then writing the refnum to a global and B accessing that global to use the VI refnum, B will see an invalid refnum as soon as A stops executing (goes idle).
    In order to avoid that you would need to either make A also part of the hierarchy of B by including it as some subVI or keep A running until B is also finished with the refnum.
    That said, sharing refnums over globals is in almost all cases a bad idea anyhow. Better would be to open a new VI reference in the second hierarchy of VI B before VI A goes idle.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • JNDI Properties file

    Hi,
    Im having trouble setting up my first J2EE EJB and client program. I have managed to pinpoint the problem to be with the selection of the JNDI service provider (keep getting a NoInitialContextException).
    Both client and EJB are on the same machine, and Im using Sun's app server v8 . Could someone tell me what I should have in the jndi.properties file, and where this file should be put. I have tried hard-coding the details into the program, but w/o success.
    I assume that using the jndi.properties file will assign a provider globally across all applications in this server - is this true?
    Thanks.

    I read somewhere that the standard j2ee.jar file (which I have in my classpath) contains a default jndi.properties file to allow basic JNDI access.
    If this is true, then the problem is not with these properties. Heres what I have:
    I compiled the classes using javac, no problems (j2ee.jar is in the classpath).
    I am trying to run the client using java -classpath ClientApp.jar FirstClient, where ClientApp.jar is the stubs/skeletons produced at deployment. This method keeps throwing a NoInitialContextException.: need to specify class name . . .
    I also tried using appclient, but that threw even more errors (not entirely sure whats going on here).
    I have checked over my code, and as far as I can see the problem is not in there - Im sure its something to do with the classpath or something - is there a classpath I should be adding to get the client working?
    Why is J2EE so hard to learn? I find myself struggling more with footery errors than I do actuially reading and learning about how to use it.
    Thanks.

  • OBISEOne Administration Tool Doesn't Startup

    Hi everyone,
    I am having a really strange problem. 3 hours ago everything was Ok but now when I try to Start the Administration Tool it does not start up. On the task manager exe is seen for a moment and it dissappears suddenly.
    Can anyone please explain the cause and the way to solve this mystic problem.
    Note: In these 3 hours We changed only the operating system time.

    Restart PC :)

  • EJB and JMs cannot be resolved

    hello,
    I was running an example of message bean driven and it worked.
    I am on Windows XP, j2sdk 1.4.1_02, and jonas 3.1 and eclipse 2.1. all my classpath seem to be set correctly.
    I use a ant script to compile it but when I run on the concole this is the same error.
    But today nothing works when I am compiling the code I 've got the following error:
    [javac] ----------
    [javac] 1. ERROR in C:\Java\Workspace\MDBTest\com\iratensolutions\test\MdbBean.java (at line 34)
    [javac] import javax.ejb.MessageDrivenBean;
    [javac] ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] The import javax.ejb cannot be resolved
    [javac] ----------
    [javac] 2. ERROR in C:\Java\Workspace\MDBTest\com\iratensolutions\test\MdbBean.java (at line 35)
    [javac] import javax.ejb.MessageDrivenContext;
    [javac] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] The import javax.ejb cannot be resolved
    [javac] ----------
    [javac] 3. ERROR in C:\Java\Workspace\MDBTest\com\iratensolutions\test\MdbBean.java (at line 36)
    [javac] import javax.jms.JMSException;
    [javac] ^^^^^^^^^^^^^^^^^^^^^^
    [javac] The import javax.jms cannot be resolved
    [javac] ----------
    [javac] 4. ERROR in C:\Java\Workspace\MDBTest\com\iratensolutions\test\MdbBean.java (at line 37)
    [javac] import javax.jms.Message;
    [javac] ^^^^^^^^^^^^^^^^^
    [javac] The import javax.jms cannot be resolved
    [javac] ----------
    [javac] 5. ERROR in C:\Java\Workspace\MDBTest\com\iratensolutions\test\MdbBean.java (at line 38)
    [javac] import javax.jms.MessageListener;
    [javac] ^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] The import javax.jms cannot be resolved
    [javac] ----------
    [javac] 6. ERROR in C:\Java\Workspace\MDBTest\com\iratensolutions\test\MdbBean.java (at line 39)
    [javac] import javax.jms.TextMessage;
    [javac] ^^^^^^^^^^^^^^^^^^^^^
    [javac] The import javax.jms cannot be resolved
    [javac] ----------
    [javac] 7. ERROR in C:\Java\Workspace\MDBTest\com\iratensolutions\test\MdbBean.java (at line 49)
    [javac] public class MdbBean implements MessageDrivenBean, MessageListener {
    [javac] ^^^^^^^^^^^^^^^^^
    [javac] MessageDrivenBean cannot be resolved or is not a valid superinterface
    [javac] ----------
    [javac] 8. ERROR in C:\Java\Workspace\MDBTest\com\iratensolutions\test\MdbBean.java (at line 49)
    [javac] public class MdbBean implements MessageDrivenBean, MessageListener {
    [javac] ^^^^^^^^^^^^^^^
    [javac] MessageListener cannot be resolved or is not a valid superinterface
    [javac] ----------
    [javac] 9. ERROR in C:\Java\Workspace\MDBTest\com\iratensolutions\test\MdbBean.java (at line 51)
    [javac] private transient MessageDrivenContext mdbContext;
    [javac] ^^^^^^^^^^^^^^^^^^^^
    [javac] MessageDrivenContext cannot be resolved (or is not a valid type) for the field MdbBean.mdbContext
    [javac] ----------
    [javac] 10. ERROR in C:\Java\Workspace\MDBTest\com\iratensolutions\test\MdbBean.java (at line 78)
    [javac] public void setMessageDrivenContext(MessageDrivenContext ctx) {
    [javac] ^^^^^^^^^^^^^^^^^^^^
    [javac] MessageDrivenContext cannot be resolved (or is not a valid type) for the argument ctx of the method setMessageDrivenContext
    [javac] ----------
    [javac] 11. ERROR in C:\Java\Workspace\MDBTest\com\iratensolutions\test\MdbBean.java (at line 80)
    [javac] mdbContext = ctx;
    [javac] ^^^^^^^^^^
    [javac] mdbContext cannot be resolved
    [javac] ----------
    [javac] 12. ERROR in C:\Java\Workspace\MDBTest\com\iratensolutions\test\MdbBean.java (at line 107)
    [javac] public void onMessage(Message message) {
    [javac] ^^^^^^^
    [javac] Message cannot be resolved (or is not a valid type) for the argument message of the method onMessage
    [javac] ----------
    [javac] 13. ERROR in C:\Java\Workspace\MDBTest\com\iratensolutions\test\MdbBean.java (at line 110)
    [javac] TextMessage mess = (TextMessage)message;
    [javac] ^^^^^^^^^^^
    [javac] TextMessage cannot be resolved or is not a type
    [javac] ----------
    [javac] 14. ERROR in C:\Java\Workspace\MDBTest\com\iratensolutions\test\MdbBean.java (at line 110)
    [javac] TextMessage mess = (TextMessage)message;
    [javac] ^^^^^^^^^^^
    [javac] TextMessage cannot be resolved or is not a type
    [javac] ----------
    [javac] 15. ERROR in C:\Java\Workspace\MDBTest\com\iratensolutions\test\MdbBean.java (at line 112)
    [javac] }catch(JMSException ex){
    [javac] ^^^^^^^^^^^^
    [javac] JMSException cannot be resolved or is not a type
    [javac] ----------
    [javac] ----------
    [javac] 16. ERROR in C:\Java\Workspace\MDBTest\com\iratensolutions\test\MdbClient.java (at line 34)
    [javac] import javax.jms.Session;
    [javac] ^^^^^^^^^^^^^^^^^
    [javac] The import javax.jms cannot be resolved
    [javac] ----------
    [javac] 17. ERROR in C:\Java\Workspace\MDBTest\com\iratensolutions\test\MdbClient.java (at line 35)
    [javac] import javax.jms.TextMessage;
    [javac] ^^^^^^^^^^^^^^^^^^^^^
    [javac] The import javax.jms cannot be resolved
    [javac] ----------
    [javac] 18. ERROR in C:\Java\Workspace\MDBTest\com\iratensolutions\test\MdbClient.java (at line 36)
    [javac] import javax.jms.Topic;
    [javac] ^^^^^^^^^^^^^^^
    [javac] The import javax.jms cannot be resolved
    [javac] ----------
    [javac] 19. ERROR in C:\Java\Workspace\MDBTest\com\iratensolutions\test\MdbClient.java (at line 37)
    [javac] import javax.jms.TopicConnection;
    [javac] ^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] The import javax.jms cannot be resolved
    [javac] ----------
    [javac] 20. ERROR in C:\Java\Workspace\MDBTest\com\iratensolutions\test\MdbClient.java (at line 38)
    [javac] import javax.jms.TopicConnectionFactory;
    [javac] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] The import javax.jms cannot be resolved
    [javac] ----------
    [javac] 21. ERROR in C:\Java\Workspace\MDBTest\com\iratensolutions\test\MdbClient.java (at line 39)
    [javac] import javax.jms.TopicPublisher;
    [javac] ^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] The import javax.jms cannot be resolved
    [javac] ----------
    [javac] 22. ERROR in C:\Java\Workspace\MDBTest\com\iratensolutions\test\MdbClient.java (at line 40)
    [javac] import javax.jms.TopicSession;
    [javac] ^^^^^^^^^^^^^^^^^^^^^^
    [javac] The import javax.jms cannot be resolved
    [javac] ----------
    [javac] 23. ERROR in C:\Java\Workspace\MDBTest\com\iratensolutions\test\MdbClient.java (at line 53)
    [javac] static TopicConnectionFactory tcf = null;
    [javac] ^^^^^^^^^^^^^^^^^^^^^^
    [javac] TopicConnectionFactory cannot be resolved (or is not a valid type) for the field MdbClient.tcf
    [javac] ----------
    [javac] 24. ERROR in C:\Java\Workspace\MDBTest\com\iratensolutions\test\MdbClient.java (at line 54)
    [javac] static TopicPublisher tp = null;
    [javac] ^^^^^^^^^^^^^^
    [javac] TopicPublisher cannot be resolved (or is not a valid type) for the field MdbClient.tp
    [javac] ----------
    [javac] 25. ERROR in C:\Java\Workspace\MDBTest\com\iratensolutions\test\MdbClient.java (at line 55)
    [javac] static Topic topic = null;
    [javac] ^^^^^
    [javac] Topic cannot be resolved (or is not a valid type) for the field MdbClient.topic
    [javac] ----------
    [javac] 26. ERROR in C:\Java\Workspace\MDBTest\com\iratensolutions\test\MdbClient.java (at line 66)
    [javac] tcf = (TopicConnectionFactory) ictx.lookup(conFactName );
    [javac] ^^^
    [javac] tcf cannot be resolved
    [javac] ----------
    [javac] 27. ERROR in C:\Java\Workspace\MDBTest\com\iratensolutions\test\MdbClient.java (at line 66)
    [javac] tcf = (TopicConnectionFactory) ictx.lookup(conFactName );
    [javac] ^^^^^^^^^^^^^^^^^^^^^^
    [javac] TopicConnectionFactory cannot be resolved or is not a type
    [javac] ----------
    [javac] 28. ERROR in C:\Java\Workspace\MDBTest\com\iratensolutions\test\MdbClient.java (at line 67)
    [javac] System.out.println("JMS client: tcf = " + tcf.toString());
    [javac] ^^^
    [javac] tcf cannot be resolved
    [javac] ----------
    [javac] 29. ERROR in C:\Java\Workspace\MDBTest\com\iratensolutions\test\MdbClient.java (at line 69)
    [javac] topic = (Topic) ictx.lookup(topicName);
    [javac] ^^^^^
    [javac] topic cannot be resolved
    [javac] ----------
    [javac] 30. ERROR in C:\Java\Workspace\MDBTest\com\iratensolutions\test\MdbClient.java (at line 69)
    [javac] topic = (Topic) ictx.lookup(topicName);
    [javac] ^^^^^
    [javac] Topic cannot be resolved or is not a type
    [javac] ----------
    [javac] 31. ERROR in C:\Java\Workspace\MDBTest\com\iratensolutions\test\MdbClient.java (at line 75)
    [javac] TopicConnection tc = null;
    [javac] ^^^^^^^^^^^^^^^
    [javac] TopicConnection cannot be resolved or is not a type
    [javac] ----------
    [javac] 32. ERROR in C:\Java\Workspace\MDBTest\com\iratensolutions\test\MdbClient.java (at line 76)
    [javac] TopicSession session = null;
    [javac] ^^^^^^^^^^^^
    [javac] TopicSession cannot be resolved or is not a type
    [javac] ----------
    [javac] 33. ERROR in C:\Java\Workspace\MDBTest\com\iratensolutions\test\MdbClient.java (at line 78)
    [javac] tc = tcf.createTopicConnection();
    [javac] ^^^
    [javac] tcf cannot be resolved
    [javac] ----------
    [javac] 34. ERROR in C:\Java\Workspace\MDBTest\com\iratensolutions\test\MdbClient.java (at line 80)
    [javac] session = tc.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
    [javac] ^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] Session cannot be resolved
    [javac] ----------
    [javac] 35. ERROR in C:\Java\Workspace\MDBTest\com\iratensolutions\test\MdbClient.java (at line 81)
    [javac] tp = session.createPublisher(topic);
    [javac] ^^
    [javac] tp cannot be resolved
    [javac] ----------
    [javac] 36. ERROR in C:\Java\Workspace\MDBTest\com\iratensolutions\test\MdbClient.java (at line 81)
    [javac] tp = session.createPublisher(topic);
    [javac] ^^^^^
    [javac] topic cannot be resolved
    [javac] ----------
    [javac] 37. ERROR in C:\Java\Workspace\MDBTest\com\iratensolutions\test\MdbClient.java (at line 90)
    [javac] TextMessage message;
    [javac] ^^^^^^^^^^^
    [javac] TextMessage cannot be resolved or is not a type
    [javac] ----------
    [javac] 38. ERROR in C:\Java\Workspace\MDBTest\com\iratensolutions\test\MdbClient.java (at line 94)
    [javac] tp.publish(message);
    [javac] ^^
    [javac] tp cannot be resolved
    [javac] ----------
    [javac] 38 problems (38 errors)
    [javac] BUILD FAILED: file:C:/Java/Workspace/MDBTest/com/iratensolutions/test/build.xml:107: Compile failed; see the compiler error output for details.
    Total time: 610 milliseconds
    Thank you for your help

    Hi,
    You need to place ejb.jar and jms.jar present in
    <jonAs-home>\lib\common\j2ee directory in the classpath.
    -Amol

Maybe you are looking for

  • Apple TC and Netgear Router behaving as one Wireless Network

    Having had a problem recently with an HP 7520 printer suddenly begin to disconnect and reconnect to the wireless network of my Apple TC I have tried several workarounds. My setup includes a Netgear Modem/ Router (providing wireless network A) which i

  • Influence the RRI

    Hello together, i've defined 2 queries in 2 different webtemplates. In Webtemplate A the user can select a year and the query A uses the year as a variable. THe Query shows data for the selected year and the previous year. Now i've defined a RRI from

  • Limits on jump from BW to R/3

    We have set up a jump to R/3 from a BW report that is working both in BEx and on the web. We pass two parameters, one of which is billing document. In BEx, we are able to pass a number of billing documents at once to the R/3 transaction. From the web

  • Difficulty Retrieving Deleted Adobe Master Collection

    While doing a clean-up on my Mac, I accidentally deleted what I thought was an unused folder that had my entire Adobe Master Collection in it. It's no big deal though as the serial number was recorded under my account. Now I haven't been onto Adobe i

  • ITunes download error  "could not be downloaded at this time"

    While downloading a song from iTunes on my iPhone 4S I got an error message that says "could not be downloaded at this time". I have powering down the phone and restarting the download. How do I get the songs to download?