Javac with a  Jar and classpath

I am trying to figure out how do I make Javac see the thinlet.class in the thinlet.jar.
I have developed an XUL xml interface and a java program that calls the interface shown below:
//package thinlet.demo;
import thinlet.*;
public class UI extends Thinlet
{ public UI () throws Exception {add(parse("UI.xml"));}
public static void main(String[] args) throws Exception
{    new FrameLauncher("UI", new UI(), 600, 600);  }}
when I do the normal compile, I get an error:
UI.java:4: cannot find symbol
symbol: class Thinlet
public class UI extends Thinlet {
^
UI.java:7: cannot find symbol
symbol : method parse(java.lang.String)
location: class thinlet.demo.UI
add(parse("UI.xml"));
^
UI.java:12: cannot find symbol
symbol : class FrameLauncher
location: class thinlet.demo.UI
new FrameLauncher("UI", new UI(), 600, 600);
^
3 errors
This thinlet class should be in the thinlet.jar that I have added the directory to the path, the directory and jarfile name to the System CLASSPATH and it couldn't see it. So finally I tried putting the thinlet.jar in the same directory to no avail. I've searched the web for some time an cannot find anything that specifically speaks to compiling a program that has parent classes in a Jar.
Any help is definitely appreciated.

What's with the commenting out of the package statement?
Where are things located?
Read this before posting anything more:
[How Classes are Found|http://java.sun.com/javase/6/docs/technotes/tools/findingclasses.html]

Similar Messages

  • Got exception with p13n_app.jar and p13n_system.jar into classpath for 9.2

    Hi, Portal guru:
    I installed wls9.2&portal9.2, and put p13n_app.jar and p13n_system.jar into classpath from startWeblogic.cmd.
    then looks portalApp can not be loaded due to the following exception:
    java.lang.Error: Clonable is not clonable: java.lang.CloneNotSupportedException: com.bea.p13n.expression.operator.c
    omparative.Equals: 4138928
    com.bea.content.expression.PropertyRef: 4138900
    java.lang.String
    cm_nodeName
    java.lang.String
    CmxControlUniqueKeysFolder
    : com.bea.content.expression.PropertyRef
    at com.bea.content.expression.Search.clone(Search.java:568)
    at com.bea.content.manager.internal.SearchOpsImpl.createSearchForRepo(SearchOpsImpl.java:376)
    at com.bea.content.manager.internal.SearchOpsImpl.searchRepository(SearchOpsImpl.java:203)
    at com.bea.content.manager.internal.SearchOpsImpl.search(SearchOpsImpl.java:159)
    any know what is the problem?
    Thanks in advance.

    I don't think it's supported to have app-scoped class in the system
    classpath. I'm surprised your 814 app worked that way.
    It might be that changes in 9.2 have caused some of the classes the
    system classloader is hitting to now try to load other classes that are
    only available in an application classloader, which the system
    classloader cannot access.
    http://e-docs.bea.com/wls/docs90/programming/classloading.html has
    information about the classloader hierarchy in WLS/WLP.
    One way to have a system-classloader class access an
    appliation-classloader is via the
    Thread.currentThread().getContextClassLoader(), and then either use
    reflection or have the class implement an interface available in the
    system classloader. This allows code at the system classpath level to
    access implementation classes loaded up as part of an application,
    rather than relying upon the built-in classloading which can't see
    classes in children classloaders. However, this would entail having a
    system classpath jar and an application jar, which is why WLP has
    p13n_system.jar and p13n_app.jar.
    Greg

  • Ears, wars, support jars, and CLASSPATH

    I am trying to migrate an application from WLS 5.1 to 6.1. There are 25
    EJB jars with an equal number of support jars, most of which are referenced
    by multiple EJBs. There are also a large number of jsps, and html pages.
    I have tried packaging an ear that contains the 25 ejb jars, a war file
    containing the web pages. I have attempted to include the support jars in
    the ear as well.
    In all attempts, the only way I get class references sastisfied is to
    include all the jars on the system CLASSPATH. But this defeats the purpose
    of packaging, since none of the components referenced in the system
    CLASSPATH will be re-deployable.
    The online documents refer to separate class loaders and classpaths for the
    war and ejbs, but no detail as to how classes are found by the loaders.
    Unless I put all the jars into the CLASSPATH, jsp pages cannot reference the
    EJBs, and EJBs are unable to reference other EJBs.

    Thanks,
    Now if I could just get Webgain Visual Cafe to allow me to include the
    Classpath entries in the generated manifests for the EJB jars.
    "Gregory Gerard" <[email protected]> wrote in message
    news:3ba24da1$[email protected]..
    You need to mangle all the Manifest files within the EAR and EJB-JARs and
    WAR to get the right thing to happen. Check out this PDF on Sun's site:
    http://java.sun.com/j2ee/j2ee-1_3-pfd4-spec.pdf
    section 8.1.1.2
    I don't entirely understand all the restrictions and formatting -- Ihaven't
    found an example ear file out there that implements a non-trivial case.
    greg
    "Carl Lawstuen" <[email protected]> wrote in message
    news:3ba21d8e$[email protected]..
    I am trying to migrate an application from WLS 5.1 to 6.1. There are
    25
    EJB jars with an equal number of support jars, most of which arereferenced
    by multiple EJBs. There are also a large number of jsps, and htmlpages.
    I have tried packaging an ear that contains the 25 ejb jars, a war file
    containing the web pages. I have attempted to include the support jarsin
    the ear as well.
    In all attempts, the only way I get class references sastisfied is to
    include all the jars on the system CLASSPATH. But this defeats thepurpose
    of packaging, since none of the components referenced in the system
    CLASSPATH will be re-deployable.
    The online documents refer to separate class loaders and classpaths forthe
    war and ejbs, but no detail as to how classes are found by the loaders.
    Unless I put all the jars into the CLASSPATH, jsp pages cannot referencethe
    EJBs, and EJBs are unable to reference other EJBs.

  • Jars and classpath

    Hi All,
    I have a command line program which access database and somehow connects to a servlet running in Tomcat.
    Originally, the root directory has 2 sub-directories: the classes and the lib. The classes directory contains config files, like database name, port no... The lib dir contains all the jar files needed by my program to run.
    Honestly, it run using: java -cp /path/to/dir/jar1.jar;/path/to/dir/jar2.jar,....
    But the program uses many jar files, more or less 20 jar files, and many config files. And Its not convenient to run the program using the command above.
    So, I made a manifest file, manifest.mnf, and saved it under the classes dir:
    Manifest-Version: 1.0
    Main-Class: ManualSend
    Class-Path: ..\lib\bsiclient.jar
    ..\lib\msh.jar
    ..\classes\dbojects.properties
    ..\classes\config.xml
    ..\classes\jndi.properties
    ..\classes\log4j.properties
    ..\classes\msh_client.properties.xml
    ..\classes\sql.properties
    ..\lib\activation.jar
    ..\lib\avalon-framework-4.1.4.jar
    ..\lib\batik.jar
    ..\lib\bsi.jar
    ..\lib\bcmail-jdk13-115.jar
    ..\lib\commons-beanutils.jar
    ..\lib\commons-codec-1.2.jar
    ..\lib\commons-collections-3.1.jar
    ..\lib\commons-logging.jar
    ..\lib\commons-configuration-1.0.jar
    ..\lib\commons-digester.jar
    ..\lib\commons-lang-2.0.jar
    ..\lib\cos.jar lib\dom.jar
    ....etc.
    The ManualSend class is in bsiclient.jar. It used the default package.
    I run it in classes dir: jar -cvfm test.jar
    java -jar test.jar
    I got an error, saying:
    Error in building: \classes\test.jar!\msh_client.properties.xml (The filename, directory name, or volume label sntax is incorrect).
    I can't figure it out, so for the meantime, i just changed the '..\classes\' part of my manifest to '.\'
    I'm not happy with that. I want it to run from my root directory, using /lib and /classes subdirectories.
    Is there a way to do that? Really i'm confused with these classpath thing.
    Please, any comments, opinions, suggestions.... even violent reactions are greatly appreciated. I haven't received any feedbacks with any of my previous post in all of forums.
    Thanks,

    thanks Peter,
    I've attempted that approach before. But as i've said my program needs a lot of jar files, plus a number of config files. If i write them on one single Class-Path line, i got an error saying 'commands too long lines', or something like that.
    The manifest works fine. I am able to run the program using that manifest. But I'm not happy with that. Actually the program was based on a Tomcat webapp. I am actually doing a command-line version of it.
    So it Tomcat WEB-INF, classes and lib directories were separated. I am looking for a way to use these 2 separate directories. What I would like to find out is how to run my program, outside of the WEB-INF classes and lib directories, and at the same time could access all the jars and config files in them.
    As of the moment I had no luck of doing that. I had to run the program inside classes folder, and make a copy of lib folder inside the classes folder.
    Do you have any more suggestions, opinions? Please.

  • Peculiar issue with signed .jars and Linux (Debian unstable, 2.4.20-custom)

    BACKGROUND:
    I am a developer working on a Java3D application, which is to be deliverable over
    the Web. Delivery as an applet seemed a natural choice, and so I spent a considerable amount of effort learning (I won't say "mastering") the process of
    creating a self-signed .jar containing java3d-<some_version>.exe. I have in fact
    successfully created a fully-fuctional from-scratch JPI/Java3D/myapp install. By
    this I mean that Windows machine with only stock IE installed could hit my URL,
    get the proper JPI installed, followed by the Java3D runtime I'd chosen, as well
    as a third-party DXF loader, and finally (after much clicking of 'Yes', 'Accept',
    'OK', etc.) see my app in a browser window.
    That was on my old, slow, Windows2000 workstation. Now I have a shiny, new
    workstation upon which my employer has graciously allowed me to run Linux. Sadly,
    the re-creation of the self-signed .jar files under a new JDK has not gone smoothly.
    PROBLEM DESCRIPTION:
    When a user attempts to download the self-signed .jar containing the auto-install
    executable for the Java3D runtime, the normal security warning prompts are displayed (one for granting to install the extension, one to accept the "suspect" certificate from me alone). The plugin happily downloads the .jar file, and then
    a NullPointerException is thrown, with a
    stack trace like:
    NPE!
    at java.util.zip.ZipFile.getInputStream (unknown source)
    at java.util.jar.JarFile.getInputStream (unknown source)
    <something>doPrivileged<something>
    etc.
    I apologize for the lack of a full stack trace; I would essentially have to type it in by hand after printing it out on the remote test box; I hope that I've caught the important details above.
    After this, the pure-java signed .jar is downloaded and installed, and then the applet "loads" with the predictable ClassNotFoundException for javax.media.j3d.SceneGroup.
    Downloading and installing the J3D runtime by hand and then re-visiting the URL results in a fully-functional applet.
    I've tried Blackdown Linux JDKs 1.4 and 1.3.1, as well as Sun's JDKs 1.3.1_07 and 1.3.1_05 for the compiling, jar'ing, and jarsigner'ing of these files, all with the same result. At each new JDK, I re-did the HTML conversion so that he appropriate
    JPI version was required on the client. I did complete uninstallations of all client JPI instances (including Web Start for 1.4.1_x, as well as cleaning the registry on the client).
    When this strategy worked, it was on Sun JDK 1.3.1_05 for Windows runnning on Windows2000, unknown service pack.
    DESIRED BEHAVIOR:
    I would like my clients to be able to go from stock Windows2K/IE (this being an intranet without any other options) to some JPI version running the J3D extension, with only the need to click 'OK', 'Accept', 'Grant This Session', etc. a bunch of times on the part of the user. I want this to happen without my having to resurrect my decrepit old Compaq Deskpro just to play the role of "build host" for my
    Java3D and loader .jar files, if at all possible.
    FILES:
    Here's what gets merged into the "main" applet's mainfest at creation time:
    Manifest-Version: 1.0
    Extension-List: java3d DxfLoader
    java3d-Extension-Name: javax.media.j3d
    java3d-Implementation-Vendor-Id: com.sun
    java3d-Implementation-Version: 1.3
    java3d-Specification-Title: Java 3D API Specification
    java3d-Specification-Version: 1.3
    java3d-Specification-Vendor: Sun Microsystems, Inc
    java3d-Implementation-URL: http://10.1.1.1/heartcad/lib/java3d.jar
    DxfLoader-Extension-Name: eupla.dxfloader
    DxfLoader-Implementation-Title: Eupla DXFLoader
    DXFLoader-Implementation-URL: http://10.1.1.1/heartcad/lib/DxfLoader.jar
    And into the manifest for the J3D .jar:
    Manifest-Version: 1.0
    Implementation-Version: 1.3
    Specification-Version: 1.3
    Extension-Installation: "java3d-1_3-windows-i586-directx-rt.exe"
    Extension-Name: javax.media.j3d
    Implementation-Vendor-Id: com.sun
    Implementation-Vendor: Sun Microsystems, Inc
    Specification-Vendor: Sun Microsystems, Inc

    I have seen that bug, and the problem I'm having seems to be different than it. The extension installer is in the first extension .jar my applet asks for, and it
    never works automatically, regardless of how many times the applet is loaded.
    The second .jar, which doesn't have to run any installer, always works fine, but the first one will never work (a manual install of the Java3D runtime is required). This seems to not be the behavior described in the bug.
    I will continue to search for an answer to this problem, and of course if I should find anything I'll post it here.

  • Problem may be with saaj.jar and AXIS,WAS,WSAD

    Hi,
    I have successfully developed and deployed an EJB using WSAD 5.1.2's WebSphere 5.0 Test Environment. I have even able to access the EJB using UTC(Universal Test Client) in WSAD and by launching the j2ee client module using
    WebSphere lauchClient program.
    Basically I have below directory structure:
    a.ear
    --|-----axis.war
    -----------|------ lib
    --------------------|--- all axis related jars are here
    --|-----demoEjb.jar (has java jar dependencies set to axis.war\lib jars
    I have now exposed this ejb as web service using AXIS 1.2 RC2 deployed as web module inside WSAD. This web service is properly exposed as web service as I can see it and access its wsdl when I access axis web services.
    Now I have written a standalone-outside-wsad web service client that uses AXIS stubs and when I try to consume to this ejb web service I am getting below error.
    AxisFault
    faultCode: {http://xml.apache.org/axis/}HTTP
    faultSubcode:
    faultString: (500)Internal Server Error
    faultActor:
    faultNode:
    faultDetail:
    {}:return code: 500
    Error 500: class org.apache.axis.SOAPPart does not implement interface org.w3c.dom.Document
    {http://xml.apache.org/axis/}HttpErrorCode:500
    (500)Internal Server Error
    at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:663)
    at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:94)
    at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
    at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
    at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:147)
    at org.apache.axis.client.Call.invokeEngine(Call.java:2719)
    at org.apache.axis.client.Call.invoke(Call.java:2702)
    at org.apache.axis.client.Call.invoke(Call.java:2378)
    at org.apache.axis.client.Call.invoke(Call.java:2301)
    at org.apache.axis.client.Call.invoke(Call.java:1758)
    at com.sosnoski.test.DemoBindingStub.getAccountHistory(DemoBindingStub.java:194)
    at com.sosnoski.test.Client.query(Client.java:63)
    at com.sosnoski.test.Client.main(Client.java:100)
    I read somewhere with axis mailing lists that it is problem related to axis's saaj.jar and wsad's websphere 5.0
    test environment's webservices.jar so I even replaced my wsad installation's D:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v5\lib\webservices.jar with
    saaj.jar but this did not help and even I have added an references to saaj.jar usign wsad's websphere 5.0 test environment
    environment tab->ws.ext.dirs property and even this did not help.
    Can anyone please tell me why is error occurring and how to solve it ?
    Thanks & Regards,
    Kumar.

    Yes :-)
    At the ear level, set the Classloader mode to PARENT_FIRST and WAR classloader policy to APPLICATION. At the axis web module level, set the Classloader mode to PARENT_LAST
    We can colloborate to our future efforts if you can please give your active personal id from which you can respond faster for queries ....

  • Jar and classpath with space in folder name?

    Hi, all.
    Just for fun: what if I have a jar file that is dependant on the other jar file which is placed in folder with space in its name? How would I link it in manifest file?
    Thanks.

    Havae you tried quoting the Class-Path value?

  • Run *jar with other jars in classpath...

    Hey,
    I am writing a little tool in Java and I exported it into a jar file. My tool uses a jar from somebody else. A second jar so to say...!
    My Jar's path is: ~/Desktop/project/dist/lib/MyTool.jar
    The other jar is located in: ~/Desktop/project/lib/help.jar
    I call the java vm from: ~/desktop/project/exe/
    with:
    java -cp ../lib/help.jar -jar ../dist/lib/MyTool.jar
    Now the tool starts running and everything works fine up to the moment when it is supposed to use one of the classes from the help.jar.
    Then I get a java.lang.NoClassDefFoundError.
    What am I doing wrong here?
    I tried to copy help.jar into the /exe/ dir. --> Did not work!
    I tried to copy all of the file into one folder and start the tool from there. --> didn't work.
    It would be great if somebody could point my in the right direction on how to solve my problem.
    THX
    Martin

    Hey,
    I am writing a little tool in Java and I exported it
    into a jar file. My tool uses a jar from somebody
    else. A second jar so to say...!
    My Jar's path is:
    ~/Desktop/project/dist/lib/MyTool.jar
    The other jar is located in:
    ~/Desktop/project/lib/help.jar
    I call the java vm from: ~/desktop/project/exe/
    with:
    java -cp ../lib/help.jar -jar
    -jar ../dist/lib/MyTool.jar
    Now the tool starts running and everything works fine
    up to the moment when it is supposed to use one of the
    classes from the help.jar.
    Then I get a java.lang.NoClassDefFoundError.
    What am I doing wrong here?
    I tried to copy help.jar into the /exe/ dir. --> Did
    not work!
    I tried to copy all of the file into one folder and
    start the tool from there. --> didn't work.
    It would be great if somebody could point my in the
    right direction on how to solve my problem.The classpath argument is ignored when you are running a jar using java -jar some.jar. You have to specify the class path from within the Manifest.
    Basic JAR tutorial:
    http://java.sun.com/j2se/1.4.1/docs/guide/jar/jar.html
    Tutorial about the extension mechanism:
    http://java.sun.com/products/jdk/1.2/docs/guide/extensions/spec.html

  • Some problems with servlet.jar and tomcat 4.1.27

    Hello everybody,
    I used to work with tomcat 3.3.1 and i've decided to use tomcat 4.1.27 now. The manual explains that we have to change de version of servlet.jar, it's done with servlet-2.3.jar but on tomcat starting i have this message:
    jar not loaded. See servlet spec [...]. Offending class: javax/servlet/Servlet.class
    what can i do, i've red all de documentation and i think all versions a OK??
    thanks per advance
    antoine

    I am running Tomcat 4.1.18, so your configuration may be slightly different. I found the Servlet.class file you are missing residing in the Tomcat/common/lib directory in the Servlet.jar file. Check your path and also make sure your Servlet.jar file contains the missing class.

  • Problems with sapjco.jar and the EP6 SP19

    Hi,
    <b>
    We have recently upgraded the portal server from EP6 SP9 to EP6 SP19.
    Some of the applications that use Jco connections to interact with the backend, are giving exceptions while executing. These applications were properly executing before the upgrade.
    Now, Is there any problem with the sapjco JAR file version??? How to resolve this problem???
    </b>
    regards
    Brahmachaitanya

    Hi Brahmachaitanya ,
    download the latest version of sapjco.jar, librfc32.dll,sapjcorfc.dll from service market place which is compatable to your OS.
    then place the two dll files under windows/system32 folder
    even if it doesnt work,
    in the createclient() method give user id and password, language,host name in capital letter(upper case)
    and try it
    rgds
    srinivas

  • Starting jconsole  with both memory and classpath settings?

    Hi, I need jconsole to start with one of my libraries in the classpath, in order to have some exposed operations/attributes to work. At the sime time, since the process I'm launching is Memory Heap intensive after a while jconsole returns an error related to the memory heap not being enough. If I try to specify the following command:
    jconsole -J-Xmx512m-Djava.class.path=%JAVA_HOME%/lib/jconsole.jar;%JAVA_HOME%/lib/tools.jar;target/fido-web/WEB-INF/lib/fido-core-1.0.0-SNAPSHOT.jarJConsole doesn't start. However the following one:
    jconsole -J-Djava.class.path=%JAVA_HOME%/lib/jconsole.jar;%JAVA_HOME%/lib/tools.jar;target/fido-web/WEB-INF/lib/fido-core-1.0.0-SNAPSHOT.jarworks fine. I tried to specify the memory settings everywhere, but with no luck. Could somebody help please?
    Thanks.
    M.

    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!
    Try a Coke-a-Cola ther good!

  • Problem with JavaApp.exe and Classpath (Packages)

    Hey guys,
    Very close to finishing my project for testing purpose. I have created a Java App installer. Installed the software and when I click the JavaApp.exe it gives a very preliminary NoClassDefFoundError. The classpath is set properly to the root dir. I feel that when I double click JavaApp.exe the command it tries to execute is java MainClass INSTEAD OF java com.company.MainClass
    I am stuck at this and dont know what to do next. Can one invoke java.exe as per his preference after the user clicks on JavaApp.exe, If yes please tell me how

    Sorry!!! I've copied a wrong example! Here is an other example:
    public class Test
         * sets the name
         * @param String name
         * @return boolean
         public boolean addPerson(Person person)
             // ... code ...
             return true;
    class Person
    }And here the API-Documentation:
    addPerson
    public boolean addPerson(Person person)sets the name
    Returns:
    boolean
    Thanks.

  • Java6, tomcat6, ojdbc6.jar and hibernate 3.3

    We were running an application with Oracle 10g, tomcat5 and java5 with ojdbc5.jar and hibernate 3 without any issues. We recently upgraded to java6, tomcat6, ojdbc6.jar and hibernate 3.3. We created a new instance of the Oracle10g database. We are now seeing intermittent errors at least once a week. The errors are:
    [ WARN] 12/11 09:52:02 (JCLLoggerAdapter:warn:357)-SQL Error: 17447, SQLState: 99999
    [ERROR] 12/11 09:52:02 (JCLLoggerAdapter:error:454)-OALL8 is in an inconsistent state
    With the following causes:
    Caused by: java.sql.SQLException: Protocol violation
    at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
    at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:199)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:263)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:271)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:445)
    at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1053)
    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:194)
    at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:791)
    at oracle.jdbc.driver.T4CPreparedStatement.executeMaybeDescribe(T4CPreparedStatement.java:866)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1186)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3387)
    at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3431)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1491)
    at org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:93)
    at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:208)
    at org.hibernate.loader.Loader.getResultSet(Loader.java:1812)
    at org.hibernate.loader.Loader.doQuery(Loader.java:697)
    at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:259)
    at org.hibernate.loader.Loader.doList(Loader.java:2232)
    and
    java.sql.SQLException: Bigger type length than Maximum
    at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
    at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:199)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:263)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:271)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:445)
    at oracle.jdbc.driver.T4CMAREngine.buffer2Value(T4CMAREngine.java:2253)
    at oracle.jdbc.driver.T4CMAREngine.unmarshalUB2(T4CMAREngine.java:1101)
    at oracle.jdbc.driver.T4CTTIoer.unmarshal(T4CTTIoer.java:248)
    at oracle.jdbc.driver.T4C7Ocommoncall.receive(T4C7Ocommoncall.java:115)
    at oracle.jdbc.driver.T4CConnection.doCommit(T4CConnection.java:539)
    at oracle.jdbc.driver.PhysicalConnection.commit(PhysicalConnection.java:3432)
    at oracle.jdbc.driver.PhysicalConnection.commit(PhysicalConnection.java:3438)
    at org.apache.tomcat.dbcp.dbcp.DelegatingConnection.commit(DelegatingConnection.java:301)
    at org.apache.tomcat.dbcp.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.commit(PoolingDataSource.java:200)
    at org.hibernate.transaction.JDBCTransaction.commitAndResetAutoCommit(JDBCTransaction.java:170)
    at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:146)
    and
    Caused by: java.sql.SQLException: OALL8 is in an inconsistent state
    at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
    at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:199)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:263)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:271)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:445)
    at oracle.jdbc.driver.T4C8Oall.marshal(T4C8Oall.java:474)
    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:180)
    at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:791)
    at oracle.jdbc.driver.T4CPreparedStatement.executeMaybeDescribe(T4CPreparedStatement.java:866)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1186)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3387)
    at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3431)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1491)
    at org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:93)
    at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:208)
    at org.hibernate.loader.Loader.getResultSet(Loader.java:1812)
    at org.hibernate.loader.Loader.doQuery(Loader.java:697)
    at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:259)
    at org.hibernate.loader.Loader.doList(Loader.java:2232)
    The errors occur when the user is querying for a list of objects. It does not seem to matter which list or type of objects. Attempting to recreate the error has not been fruitful - the queries are typical and ordinary routine data pulls. In the forums we see a lot posts about compatibility between drivers. The oracle 10g is using the ojdbc14.jar in its lib. Do we need to update this? Can we run java 6 against the 10g instance reliably?
    We have also seen a similiar issue occur once when the user tried a normal save:
    [ WARN] 12/11 10:00:11 (JCLLoggerAdapter:warn:357)-SQL Error: 17447, SQLState: 99999
    [ERROR] 12/11 10:00:11 (JCLLoggerAdapter:error:454)-OALL8 is in an inconsistent state
    [ERROR] 12/11 10:00:11 (OwnerHolder:doSave:787)-Problem occurred trying to prepare the info for save
    org.hibernate.exception.GenericJDBCException: could not get next sequence value
    at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:126)
    at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:114)
    at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
    at org.hibernate.id.SequenceGenerator.generate(SequenceGenerator.java:119)
    at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:122)
    at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:210)
    at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:195)
    at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:117)
    at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:93)
    at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:535)
    at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:527)
    at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:523)
    at us.ca.santaclara.co.tax.tcas.dao.ParentDao.save(ParentDao.java:56)
    Caused by: java.sql.SQLException: OALL8 is in an inconsistent state
    at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
    at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:199)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:263)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:271)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:445)
    at oracle.jdbc.driver.T4C8Oall.marshal(T4C8Oall.java:474)
    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:180)
    at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:791)
    at oracle.jdbc.driver.T4CPreparedStatement.executeMaybeDescribe(T4CPreparedStatement.java:866)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1186)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3387)
    at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3431)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1491)
    at org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:93)
    at org.hibernate.id.SequenceGenerator.generate(SequenceGenerator.java:98)
    [ERROR] 12/11 10:00:11 (JCLLoggerAdapter:error:532)-JDBC commit failed
    java.sql.SQLException: Protocol violation
    at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
    at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:199)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:263)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:271)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:445)
    at oracle.jdbc.driver.T4C7Ocommoncall.receive(T4C7Ocommoncall.java:130)
    at oracle.jdbc.driver.T4CConnection.doCommit(T4CConnection.java:539)
    at oracle.jdbc.driver.PhysicalConnection.commit(PhysicalConnection.java:3432)
    at oracle.jdbc.driver.PhysicalConnection.commit(PhysicalConnection.java:3438)
    at org.apache.tomcat.dbcp.dbcp.DelegatingConnection.commit(DelegatingConnection.java:301)
    at org.apache.tomcat.dbcp.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.commit(PoolingDataSource.java:200)
    at org.hibernate.transaction.JDBCTransaction.commitAndResetAutoCommit(JDBCTransaction.java:170)
    at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:146)

    Thanks For the Post. It occurs mostly in my app too which uses oracle 10G with ojdbc14.jar , but client in weblogic 10.3 has ojdbc6.jar. My logic is , at that time network was impaired and oracle could not find exact cause of error. To replicate you can input severly in multiple threads same query to oracle so it cannot get timeout values or cannot serve incoming requests withing certain allowed timeframes. If you are using a RAC , it cannot SYNC those cache and memory dumps in GCS , PGA, and SGA, thus inconsistent state.

  • Problems with Signed jar

    I am having a problem with signed jar and deploy in html
    get this error on the page
    self signed
    /dist/testfx.html
    JavaFX application could not launch due to system configuration. See java.com/javafx for troubleshooting information.Unsigned jar works perfectly but has security and permission issues when using classes.
    This was working in beta 45

    Can you post an example project that demonstrates the problem? There were changes to the ant tasks and netbeans support around B45 that could cause problems depending on which version of the SDK and NetBeans you have. Similarly, if you wrote ant scripts prior to B44 and then use them with a later build you could have problems. And of course, if you're producing the Jar file and deployment artifacts without using the provided ant tasks (for example, using the normal ant jar task) you'll have problems.
    I've verified that this works as expected in the FX 2.0 GA release using ant from the command line, and with the NetBeans 7.1 beta release using the FX 2.0 GA release.

  • Starting tomcat with bootstrap.jar

    I want to start Tomcat 4.1 with bootstrap.jar and calling the main function from my simple java program. How can I do it and what all parameters are required by the main function so that it can start the Tomcat?
    Can I supply the catalina.policy file while starting it up?

    Thanks for the reply. I downloaded the tar.qz and move it to /usr/local/
    with apache-tomcat-6.0.18 at the root
    I've always done things without netbeans IDE. I just like the netbeans because it came with tomcat.
    I get the following error when I start tomcat
    tma apache-tomcat-6.0.18 # /usr/local/apache-tomcat-6.0.18/bin/startup.sh
    Using CATALINA_BASE: /usr/local/apache-tomcat-6.0.18
    Using CATALINA_HOME: /usr/local/apache-tomcat-6.0.18
    Using CATALINA_TMPDIR: /usr/local/apache-tomcat-6.0.18/temp
    Using JRE_HOME: /etc/java-config-2/current-system-vm
    touch: cannot touch `/usr/local/apache-tomcat-6.0.18/logs/catalina.out': No such file or directory
    /usr/local/apache-tomcat-6.0.18/bin/catalina.sh: line 292: /usr/local/apache-tomcat-6.0.18/logs/catalina.out: No such file or directory
    #cwc 090129
    export CATALINA_HOME=/usr/local/apache-tomcat-6.0.18
    export PATH=$PATH:$CATALINA_HOME/bin
    Edited by: cwcoleman on Jan 30, 2009 5:38 AM
    Edited by: cwcoleman on Jan 31, 2009 8:02 AM

Maybe you are looking for

  • Is there a printed manual for Photoshop Touch?

    I'd like a printed manual for Photoshop Touch for Tablet.

  • Stroke weight is 1000.0000 pt

    Today I started up my Illustrator CS6. I loaded my file, and when I made a new stroke, the stroke weight default was at 1000.0000. I can't change the stroke weight, even when I click on a other thickness. The choices are the same strange format as th

  • Need start date & end date for MMYYYY

    HI , I need to find start date & end date of MMYYYY. Is there any FM to do this?? thanks Moderator comments: 1st warning. Pl read the rules of engagement & [Date questions not allowed|/thread/1360534 [original link is broken]; Awarded points are unas

  • Loading DATE datatype into a measure

    Hi Folks, Is there any way to load DATE values into a measure? Is yes, how? I'm using OLAP 10G. Thanks, JSoufer

  • KDE Security Advisory: URI Handler Vulnerabilities

    The KDE project today issued a security advisory: the telnet, rlogin, ssh and mailto URI handlers in KDE are remotely expoitable by an active attacker. Patches are available.  See http://www.kde.org/info/security/adviso - 0517-1.txt. I read in the we