JDK 1.5 Tomcat 5.5

I'm getting an exception when invoking a servlet in tomcat 5.5. JAVA_HOME and Eclipse are both pointing to the same folder for javac. The only Java components installed are the J2SE 5.0 Update 1.
java.lang.UnsupportedClassVersionError: Bad version number in .class file
     java.lang.ClassLoader.defineClass1(Native Method)
     java.lang.ClassLoader.defineClass(Unknown Source)
     java.security.SecureClassLoader.defineClass(Unknown Source)
     org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1815)
     org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:869)
     org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1322)
     org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1201)
     org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:369)
     org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:133)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
Any thoughts?

Never mind, found it. D'oh. Needed to ensure that my JDK compliance setting in Eclipse was set to 5.0 and not 6.0.

Similar Messages

  • Tomcat + JDK = Not Working

    Thanks to all for at least viewing my topic...
    First off, I am running Linux Mandrake 8.0, here are the specs:
    Apache: Apache 1.3.19
    JDK: jdk-1.3.1-fcs
    Tomcat: tomcat-3.1-3k
    I've been running apache as a stable server for, oh, about 3 months now. I am hosting multiple websites and one of my clients asked me, "Is JSP supported?" so I tried an example JSP page and it didn't work.
    I installed jdk and then Tomcat but for some reason, the TOMCAT daemon won't startup as supposed to... It just says this:
    [root@skynet conf]# service tomcat start
    Starting tomcat:
    [root@skynet conf]#
    Doesn't start. So I don't know where the error is... these were installed in RPM's, not tar's.
    Any help would be much obliged, email me: [email protected]
    Jamie Savard
    Elite Innovations

    somebody please help me.
    i have installed jdk1.2.2
    Tomcat3.2.1
    oracle 8.1.7
    My path settings are
    JAVA_HOME=c:\jdk1.2.1
    TOMCAT_HOME=c:\tomcat\tom3.2.1
    running on windows98
    when i try to start Tomcat i get the following error
    Using CLASSPATH:
    Bad command or file name
    Out of environment space
    Out of environment space
    Out of environment space
    Out of environment space
    Out of environment space
    Unable to set CLASSPATH dynamically.
    Note: To set the CLASSPATH dynamically on Win9x systems
    only DOS 8.3 names may be used in TOMCAT_HOME!
    Setting your CLASSPATH statically.
    Out of environment space
    Out of environment space
    Out of environment space
    Out of environment space
    Out of environment space
    Out of environment space
    Out of environment space
    Using CLASSPATH:
    Bad command or file name
    Please help me what i need to do. I'm new to this environment.

  • Errors when using tomcat and netbeans combo.[Solved]

    Hi I'm trying to set up a netbeans/tomcat7 development environment for servlet development.
    I have tried this on 2 machines without any success.
    The steps I have followed are as follows.
    First I installed tomcat7 and netbeans from using pacman, then to be able to configure tomcat from netbeans I made the config files write permission 777, as it's just a development server security is not an issue.
    From there I started up netbeans started a new project and set the server to tomcat and pointed the Catalina home dir to /usr/share/tomcat7.
    When I try to run the example jsp project I get the following error:
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: java.lang.IllegalStateException: No Java compiler available
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:584)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:392)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:389)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:333)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
    root cause
    java.lang.IllegalStateException: No Java compiler available
    org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationContext.java:226)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:636)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:358)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:389)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:333)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
    I've spent the last couple of days trying to find any information on this but I cant find anything, so any advice would be much appreciated.
    Last edited by darkclown (2011-12-01 05:15:23)

    From the error, it appears that there is no JDK installed - only a JRE, could that be the case? If you do have a JDK installed, then Tomcat is not finding it.
    I would also not run this on the openJDK, in case you are doing that. I would use the proprietary Oracle/Sun JDK. It's in the AUR, or simply download it from Oracle.
    I was not even aware that netbeans and tomcat are available from pacman. I always "install" those myself manually (i.e. unpack them into a folder). They are simply Java apps that can be installed anywhere, as long as you point them to a valid JDK.

  • Is it necessary JDK to execute a servlet??

    Hi!
    I'm trying to carry out 5 servlets (they use XML).
    By the moment and while developing, I'm using JDK 1.3 + Tomcat + Xerces, on Windows NT 4.0
    But I want to install it on other Windows PCs, and I wonder if it is necessary to install JDK, or it's enough with JRE.
    I would like also to know if there is another kind of Free Java Web Server, appart from Tomcat, or a system wasting less resources.
    Thank you very much, and best regards.

    The JDK is used mostly for JSP's as these need to be compiled on demand.
    Servlets are precompiled and don't require a jdk but still need the jre.
    As for other free webservers, I noticed a webserver called WASP. I haven't tried it as yet but if you want to give it a go try:
    http://www.systinet.com/products/wasp_lite/
    Cheers,
    Anthony

  • Workshop Studio, cannot start WebLogic 9.2 or Tomcat 5.5

    after I click on the start icon I get a popup with the following message:
    An internal error occurred during: "Starting server - WebLogic Server v9"
    Please help!
    Thanks.
    David

    For WebLogic 9.2, I added the jrockit90_150_04 jdk. For tomcat 5.5, I added the jdk1.5.0_08 jdk. And it does not work.
    I was able the get the WebLogic 9.2 server started when I used the 'sample' domain, and created a new web project, then added it to the server.
    But when I create a new domain, using the BEA configuration wizard, then create my WL92 server for that domain, I get the problem described in my previous post.
    :(

  • Personal Oracle9i and Tomcat

    Hey Guys,
    I have Tomcat 1.4 on my machine and it was working fine. But then I installed Personal Oracle 9i and Tomcat stopped working. When I attempt to start it, the startup window appears for a second and then shuts itself down without displaying any error. Nothing in logs as well.
    I understand that Oracle installs it's own JDK and there maybe some variable conflict but JAVA_HOME is still pointing to c:\jdk where I had installed JDK earlier.
    Any help will be greatly appreciated.

    Thanks for the reply but that wasn't the cause. Oracle HTTP server was using 7788, not 8080.I had JDK already installed and Oracle was installing it again. When I deinstalled my JDK and installed Tomcat using the JDK installed by Oracle, the problem was solved.
    Thanks anyway

  • JDK 1.4 license clauses about Software Updates and Other Software

    Does anyone know what these clauses in the JDK 1.4 license mean? There is an old thread on this at http://forum.java.sun.com/thread.jspa?threadID=219875&start=0&tstart=0 but there was no response from Sun. I'm using the JDK in a Tomcat server application -- should I be worried that pieces of the JDK will be updated on my server without my knowing it? Or does this refer to applets downloaded to a browser?
    From http://java.sun.com/j2se/1.4.2/j2sdk-1_4_2_10-license.txt:
    7.SOFTWARE UPDATES FROM SUN. You acknowledge that at your request or consent optional features of the Software may download, install, and execute applets, applications, software extensions, and updated versions of the Software from Sun ("Software Updates"), ...
    8.SOFTWARE FROM SOURCES OTHER THAN SUN. You acknowledge that, by your use of optional features of the Software and/or by requesting services that require use of the optional features of the Software, the Software may automatically download, install, and execute software applications from
    sources other than Sun ("Other Software"). ...

    Just means that applets and other products so enabled can and will (after optionally asking for permission) connect to the net to download libraries they need if and as needed.
    The JVM provides that functionality so it's in the JVM license agreement.
    Nothing sinister, Sun isn't going to spy on you.

  • Tomcat, JDBC and other APIs

    Hi all,
    This must be one of the most trivial questions to ask, but I'm new, so please bear with me.
    I have downloaded Tomcat, JDBC and JSSE. The question is: in which directory should I unpack these files and how should I set them up so that my Java compiler (JAVAC) will recognize this change?
    I am using the Java Software Development Kit version 1.3, and all of the class files, compilers and sample code that came with the SDK are in C:\jdk1.3.0_02\.
    Thank you in advance,
    cindybubbles

    Hi there,
    There's not much to installing Tomcat other than unzipping the distribution file, moving it to the place where you want it to be in your filesystem and then following the installation instructions in the Tomcat User's guide. This involves setting the TOMCAT_HOME and JAVA_HOME environment variables. Once you've set JAVA_HOME then Tomact can now find your Java installation.
    The core JDBC package is included in jdk1.3.0_02, if it's the optional package that have then just install it's jar file in c:\jdk1.3.0_02\jre\lib\ext
    JSSE also can be installed as a standard extension so copy it's jar file to c:\jdk1.3.0_02\jre\lib\ext.
    When a jar file is added to c:\jdk1.3.0_02\jre\lib\ext, the classes and packages that it contains will be available to you and to other applications that use the jdk (such as Tomcat). The term Standard Extension has been replaced with "Optional Package" now, but you are likely to still see both terms used interchangeably.
    Hope this helps.
    Amanda
    Developer Tech Support, Sun Microsystems

  • Hi Help me in executing My Project

    Hi all,
    I'm a BTECH student. I'm currently doing my project and had some problem during execution...
    My SYStem Configuration:
    OS: Windows 2000 server..
    For Project Purpose I Installed in my System:
    JDK 1.5
    Tomcat 5.0 and
    Oracle 9i..
    I can't run the project.I would like know from u all whether I can run my Project (JAVA PROJECT) on a single system with all jdk, tomacat , and Oracle 9i installed on a single system.....
    Here are the problems I faced during my project execution:
    1: I'm receving severe errors in the tomcat open console saying that the port 8080 is already in use...Then I changed the port no 8081.. After I chnged my port everthing is ok... But while executing the project i recieved the following error...
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:358)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    root cause
    java.lang.NullPointerException
         org.apache.jsp.Validate_jsp._jspService(Validate_jsp.java:149)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    note The full stack trace of the root cause is available in the Tomcat logs
    2.. Here is my JSP which allows databse connectivity
    <%@ page import="java.sql.*" %>
    <%!
                        Connection Con=null;
                        Statement St=null ;
    %>
    <%
    String driver="oracle.jdbc.driver.OracleDriver";
    String url="jdbc:oracle:thin:@nit15:1521:project";
    String user="trading";
    String pwd="trading";
    try
    Class.forName(driver);
    Con=DriverManager.getConnection(url,user,pwd);
         St=Con.createStatement();
              System.out.println("Connection is established");
    catch(Exception e)
              System.out.println(e);
              out.println("Connection is not Established ... ");
    %>
    I think i had problem with the following line...
    String url="jdbc:oracle:thin:@nit15:1521:project";
    since i'm running the whole project on a single system
    I replaced nit15 with localhost---- is this right... I thhink i shuld write here my system name how can find my system name or machine name
    I left 1521 as it is...
    then finally i replaced project with ora which is DSN name i created...
    Can any one help me out from this...Please give me ur mail id's so that i can have a chat with with u friends... plzzz help me.. plzz share ur knowledge with me.. plzzz.. my id is [email protected]..

    Well for one thing you seem to have multiple Tomcat instances running. This may or may not be contributing to your problems and confusion.
    Also I don't see where your code could be throwing a null pointer exception.
    To be honest I think you should first investigate how many Tomcat instances you have running and clean that up first. Because you could well be deploying to the wrong instance for all we know.

  • Error when displaying report -IncompatibleClassChangeError

    Hi there. I am attempting to display a Crystal Report onto a JSP and im getting the following error:
    java.lang.IncompatibleClassChangeError: Implementing class
         java.lang.ClassLoader.defineClass0(Native Method)
         java.lang.ClassLoader.defineClass(ClassLoader.java:539)
         java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
         org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1634)
         org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:860)
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1307)
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
         java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
         java.lang.ClassLoader.defineClass0(Native Method)
         java.lang.ClassLoader.defineClass(ClassLoader.java:539)
    Here's how my servlet code looks like:
    String path = "em_k_rpt_written_premium_web.rpt";
    IReportSourceFactory2 rsf = new JPEReportSourceFactory();
                   IReportSource rptSource = (IReportSource)rsf.createReportSource(path,request.getLocale());
                   ConnectionInfos connInfos = new ConnectionInfos();
                   IConnectionInfo connInfo1 = new ConnectionInfo();
                   connInfo1.setUserName("tron2000");
                   connInfo1.setPassword("tron2000");
                   connInfos.add(connInfo1);
                   CrystalReportViewer viewer = new CrystalReportViewer();
                   viewer.setDatabaseLogonInfos(connInfos);
                   viewer.setReportSource(rptSource);
                   viewer.setEnableLogonPrompt(false);
                   viewer.processHttpRequest(request, response, getServletConfig().getServletContext(),null);
    I'm using: JDK 1.4, Tomcat 5.0, Crystal Reports 9
    I already copied all JRC .jar files into my WEB-INF\lib directory.
    Dont really know what might be happening.
    Any help, will be greatly appreciated.
    Bye.
    Esteban

    even i am trying the same if u get something pls do let me know

  • No german umlauts in OHW 2.0.2 topic view

    I used OHW 1.1.5 before. Now switching to OHW 2.0.2, in the table of contents the german umlauts are not displayed correctly. The rest of the installation is identical. Its the same OS, the same JDK, the same Tomcat servlet engine and the same client web browser.
    This phenomenon is independent of using a navigator Alias or not. I can't find any option in the documentation, which allows to configure the TOC output. How can german umlauts displayed in the TOC with OHW 2.0.2?
    Thanks in advance
    Michael

    Do they display correctly in the other navigators? (i.e. does the keywords show them correctly?). In addition, do they show up in your topic pages (the actual help content)?

  • MaxL Shell does not accept member "W?hrung NZ"

    I want to create a partition via MaxL using create partition. I need to map a member "W?hrung NZ". If I put in the MaxL statement interactively using the command shell, everything works out fine. But when I write down the statements in a file and start the shell by the command "essmsh filename", I get an error message, that the member "W?hrung NZ" does not map to an existing member. It seems to me, that the shell has problems interpreting the special character "?". Do you have any hints how to solve this problem?Thank you very much.Gerald

    One of our projects do input Chinese character as member name, it seems to work fine, will it cause future unexcepted problem?Their env is Essbase 6.5.4 + JDK 1.4 + Tomcat (under Windows 2000/Linux).

  • MM.MYSQL jdbc driver

    Environment:
    - mm.mysql-2.0.14-bin.jar;
    - JDK 1.4
    - Tomcat 4
    I've put the jar file in all places it is needed ($JAVA_HOME/jre/lib/ext
    - MyWebApp/Web-Inf/lib);
    My code:
    <%@ page import="java.sql.*"%>
    <%@ page import="java.util.*"%>
    <%@ page import="java.io.*"%>
    <!-- connessione al db -->
    <%! Class.forName("org.gjt.mm.mysql.Driver").newInstance(); %>
    <%! java.sql.Connection dbconn; %>
    <% dbconn =
    DriverManager.getConnection("jdbc:mysql://localhost:36000/Bicocca?user=bicocca&password=dio");
    %>
    I obtainn this servlet exception:
    Generated servlet error:
    C:\jakarta-tomcat-4.0.3\work\localhost\unimib\index$jsp.java:16: Type
    expected.
    Class.forName("org.gjt.mm.mysql.Driver").newInstance();
    Could somebody help me please???
    Thanx

    This is nothing to do with the driver and nothing to do with the classpath. You have a problem with your JSP.
    <%! Class.forName("org.gjt.mm.mysql.Driver").newInstance(); %>
    This is wrong because <%! begins a declaration. You need a scriptlet to execute that line of code, so it should be
    <% Class.forName("org.gjt.mm.mysql.Driver").newInstance(); %>

  • Aleatory One factory fails for the operation "encode"-JPEG

    I've a very strange problem with JAI.write using JPEG, but is happening aleatory. Some times it works, some times I get the exception and some other times don't. What I've seen is that when I got first this error, then all the rest of the images throws it. I mean, I'm working OK and then I got the exception, from there, all the images, no matter that they were not trowing exceptions before, now they do, so I don't know what is happening. I'll post some code snippets and the full stack trace of the exception. Hope you can help me:
    First, I have a class that is a JSP-Tag:
    RenderedOp outputImage = JAI.create("fileload", imgFile.getAbsolutePath());
    int widthSize = outputImage.getWidth();
    int heightSize = outputImage.getHeight();
    try{
        outputImage.dispose();                         
    }catch(Exception e){}
    outputImage = null;That's the first thing, now, the second, this is a Servlet that writes the image to the browser (GetImageServlet its name, which appears in the stack trace):
    FileSeekableStream fss = new FileSeekableStream(file);
    RenderedOp outputImage = JAI.create("stream", fss);
    int widthSize = outputImage.getWidth();
    int heightSize = outputImage.getHeight();
    if ((outputImage.getWidth() > 0) && (outputImage.getHeight() > 0)) {
                        if ((isThumbnail) && ((outputImage.getWidth() > 60) || (outputImage.getHeight() > 60))) {
                             outputImage = ImageManagerJAI.thumbnail(outputImage, 60);
                        } else if (outputRotate != 0) {
                             outputImage = ImageManagerJAI.rotate(outputImage, outputRotate);
                        OutputStream os = resp.getOutputStream();
    resp.setContentType("image/jpeg");
         ImageManagerJAI.writeResult(os, outputImage, "JPEG");
                        outputImage.dispose();
                        os.flush();
                        os.close();
    outputImage = null;
    imgFile = null;The code of ImageManagerJAI.writeResult, which is a method I use above:
    public static void writeResult(OutputStream os, RenderedOp image, String type) throws IOException {
              if ("GIF".equals(type)) {
                   GifEncoder encoder = new GifEncoder(image.getAsBufferedImage(), os);
                   encoder.encode();
              } else {
                   JAI.create("encode", image, os, type, null);
         }And the full exception trace is:
    Error: One factory fails for the operation "encode"
    Occurs in: javax.media.jai.ThreadSafeOperationRegistry
    java.lang.reflect.InvocationTargetException
         at sun.reflect.GeneratedMethodAccessor45.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at javax.media.jai.FactoryCache.invoke(FactoryCache.java:122)
         at javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1674)
         at javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:473)
         at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:332)
         at javax.media.jai.RenderedOp.createInstance(RenderedOp.java:819)
         at javax.media.jai.RenderedOp.createRendering(RenderedOp.java:867)
         at javax.media.jai.RenderedOp.getRendering(RenderedOp.java:888)
         at javax.media.jai.JAI.createNS(JAI.java:1099)
         at javax.media.jai.JAI.create(JAI.java:973)
         at javax.media.jai.JAI.create(JAI.java:1668)
         at com.syc.image.ImageManagerJAI.writeResult(ImageManagerJAI.java:27)
         at GetImageServlet.doGet(GetImageServlet.java:214)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
         at java.lang.Thread.run(Thread.java:619)
    Caused by: com.sun.media.jai.codecimpl.util.ImagingException
         at com.sun.media.jai.codecimpl.ImagingListenerProxy.errorOccurred(ImagingListenerProxy.java:63)
         at com.sun.media.jai.codecimpl.JPEGImageEncoder.encode(JPEGImageEncoder.java:280)
         at com.sun.media.jai.opimage.EncodeRIF.create(EncodeRIF.java:70)
         ... 31 more
    Caused by: com.sun.media.jai.codecimpl.util.ImagingException: IOException occurs when encode the image.
         ... 33 more
    Caused by: java.io.IOException: reading encoded JPEG Stream
         at sun.awt.image.codec.JPEGImageEncoderImpl.writeJPEGStream(Native Method)
         at sun.awt.image.codec.JPEGImageEncoderImpl.encode(JPEGImageEncoderImpl.java:472)
         at sun.awt.image.codec.JPEGImageEncoderImpl.encode(JPEGImageEncoderImpl.java:228)
         at com.sun.media.jai.codecimpl.JPEGImageEncoder.encode(JPEGImageEncoder.java:277)
         ... 32 more
    javax.media.jai.util.ImagingException: All factories fail for the operation "encode"
         at javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1687)
         at javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:473)
         at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:332)
         at javax.media.jai.RenderedOp.createInstance(RenderedOp.java:819)
         at javax.media.jai.RenderedOp.createRendering(RenderedOp.java:867)
         at javax.media.jai.RenderedOp.getRendering(RenderedOp.java:888)
         at javax.media.jai.JAI.createNS(JAI.java:1099)
         at javax.media.jai.JAI.create(JAI.java:973)
         at javax.media.jai.JAI.create(JAI.java:1668)
         at com.syc.image.ImageManagerJAI.writeResult(ImageManagerJAI.java:27)
         at GetImageServlet.doGet(GetImageServlet.java:214)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
         at java.lang.Thread.run(Thread.java:619)
    Caused by: java.lang.reflect.InvocationTargetException
         at sun.reflect.GeneratedMethodAccessor45.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at javax.media.jai.FactoryCache.invoke(FactoryCache.java:122)
         at javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1674)
         ... 26 more
    Caused by: com.sun.media.jai.codecimpl.util.ImagingException
         at com.sun.media.jai.codecimpl.ImagingListenerProxy.errorOccurred(ImagingListenerProxy.java:63)
         at com.sun.media.jai.codecimpl.JPEGImageEncoder.encode(JPEGImageEncoder.java:280)
         at com.sun.media.jai.opimage.EncodeRIF.create(EncodeRIF.java:70)
         ... 31 more
    Caused by: com.sun.media.jai.codecimpl.util.ImagingException: IOException occurs when encode the image.
         ... 33 more
    Caused by: java.io.IOException: reading encoded JPEG Stream
         at sun.awt.image.codec.JPEGImageEncoderImpl.writeJPEGStream(Native Method)
         at sun.awt.image.codec.JPEGImageEncoderImpl.encode(JPEGImageEncoderImpl.java:472)
         at sun.awt.image.codec.JPEGImageEncoderImpl.encode(JPEGImageEncoderImpl.java:228)
         at com.sun.media.jai.codecimpl.JPEGImageEncoder.encode(JPEGImageEncoder.java:277)
         ... 32 more
    Caused by:
    java.lang.reflect.InvocationTargetException
         at sun.reflect.GeneratedMethodAccessor45.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at javax.media.jai.FactoryCache.invoke(FactoryCache.java:122)
         at javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1674)
         at javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:473)
         at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:332)
         at javax.media.jai.RenderedOp.createInstance(RenderedOp.java:819)
         at javax.media.jai.RenderedOp.createRendering(RenderedOp.java:867)
         at javax.media.jai.RenderedOp.getRendering(RenderedOp.java:888)
         at javax.media.jai.JAI.createNS(JAI.java:1099)
         at javax.media.jai.JAI.create(JAI.java:973)
         at javax.media.jai.JAI.create(JAI.java:1668)
         at com.syc.image.ImageManagerJAI.writeResult(ImageManagerJAI.java:27)
         at GetImageServlet.doGet(GetImageServlet.java:214)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
         at java.lang.Thread.run(Thread.java:619)
    Caused by: com.sun.media.jai.codecimpl.util.ImagingException
         at com.sun.media.jai.codecimpl.ImagingListenerProxy.errorOccurred(ImagingListenerProxy.java:63)
         at com.sun.media.jai.codecimpl.JPEGImageEncoder.encode(JPEGImageEncoder.java:280)
         at com.sun.media.jai.opimage.EncodeRIF.create(EncodeRIF.java:70)
         ... 31 more
    Caused by: com.sun.media.jai.codecimpl.util.ImagingException: IOException occurs when encode the image.
         ... 33 more
    Caused by: java.io.IOException: reading encoded JPEG Stream
         at sun.awt.image.codec.JPEGImageEncoderImpl.writeJPEGStream(Native Method)
         at sun.awt.image.codec.JPEGImageEncoderImpl.encode(JPEGImageEncoderImpl.java:472)
         at sun.awt.image.codec.JPEGImageEncoderImpl.encode(JPEGImageEncoderImpl.java:228)
         at com.sun.media.jai.codecimpl.JPEGImageEncoder.encode(JPEGImageEncoder.java:277)
         ... 32 moreI'm using JDK 1.6, Tomcat 5.5, Windows XP, and JAI 1.1.2_01 (the jars are in the WEB-INF/lib of the project AND in the jdk 6/jre/lib/ext, while the dlls are only on jdk 6/jre/bin)
    Please help, I don't know what to do, I've weeks with this problem. Dukes available pleaseeee!

    Hi
    you can check if you get in the error logs an message like 'Could not load mediaLib accelerator wrapper classes. Continuing in pure Java mode.' may be the problem of JAI native accelerator

  • Javax.servlet.ServletException: no cbljvm_sun in java.library.path

    Hi All,
    The servlet exception I am getting is in Tomcat, I have also been using JRUN and get similiar errors. I have read through as many of the problems on the java site that I can find and they all seem to be saying it is to do with the CLASSPATH.
    I am calling COBOL from Java so I need this .jar file
    Classpath=CLASSPATH=c:\MF\NetExpress\Base\BIN\mfcobol.jar;.;
    Path=
    c:\jdk;
    c:MERANT\NetExpress\Base\BIN;
    c:\MERANT\NetExpress\DialogSystem\BIN;
    C:\JDK\jre\bin\classic;
    C:\Program Files\Common Files\MERANT\ODBC;
    C:\Program Files\Microsoft SQL Server\80\Tools\BINN;
    C:\WINNT\system32;
    C:\WINNT;
    JAVA_HOME=C:\JDK;
    TOMCAT_HOME=C:\tomcat\jakarta-tomcat-4.0\bin;
    J2EE_HOME=C:\J2SDKEE1.3
    COBJVM=SUN
    COBDIR=C:\MERANT\NetExpress\Base\Bin;
    The jsp file in question is at the bottom.
    A Servlet Exception Has Occurred
    Exception Report:
    javax.servlet.ServletException: no cbljvm_sun in java.library.path
         at org.apache.jasper.runtime.PageContextImpl.handlePageException(Unknown Source)
         at org.apache.jsp.cal1$jsp._jspService(cal1$jsp.java:107)
         at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknown Source)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source)
         at org.apache.jasper.servlet.JspServlet.service(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source)
         at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
         at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
         at org.apache.catalina.core.StandardContext.invoke(Unknown Source)
         at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
         at org.apache.catalina.valves.AccessLogValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
         at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
         at org.apache.catalina.connector.http.HttpProcessor.process(Unknown Source)
         at org.apache.catalina.connector.http.HttpProcessor.run(Unknown Source)
         at java.lang.Thread.run(Thread.java:484)
    Root Cause:
    java.lang.UnsatisfiedLinkError: no cbljvm_sun in java.library.path
         at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1312)
         at java.lang.Runtime.loadLibrary0(Runtime.java:749)
         at java.lang.System.loadLibrary(System.java:820)
         at mfcobol.runtime.(runtime.java:784)
         at java.lang.Class.newInstance0(Native Method)
         at java.lang.Class.newInstance(Class.java:237)
         at java.beans.Beans.instantiate(Beans.java:207)
         at java.beans.Beans.instantiate(Beans.java:51)
         at org.apache.jsp.cal1$jsp._jspService(cal1$jsp.java:73)
         at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknown Source)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source)
         at org.apache.jasper.servlet.JspServlet.service(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source)
         at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
         at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
         at org.apache.catalina.core.StandardContext.invoke(Unknown Source)
         at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
         at org.apache.catalina.valves.AccessLogValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
         at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
         at org.apache.catalina.connector.http.HttpProcessor.process(Unknown Source)
         at org.apache.catalina.connector.http.HttpProcessor.run(Unknown Source)
         at java.lang.Thread.run(Thread.java:484)
    Can anybody give me a clue as to what this is ?
    Source
    =====
    <HTML>
    <HEAD>
    <TITLE>     JSP and Cobol Beans Demo </TITLE>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1253">
    </HEAD>
    <BODY BGCOLOR="white">
    <%@ page language="java" import="cj2Bean.*" %>
    <jsp:useBean id="myBean" scope="session" class="cj2Bean" />
    <img src="mflogo.jpg">
    <h3>Cobol / Java Server Pages demo application.</h3>
    <i>
    <% String aCode = request.getParameter("efCode"); %>
    Author code : <%= aCode %><br>
    Author surname :<b>
    <% myBean.connectToDB(); %>
    <% String aName = "";
    aName = myBean.fetchAuthor(aCode); %>
    <%= aName %>
    <% myBean.disconnectFromDB(); %>
    </i></b>
    </BODY>
    </HTML>

    Hi suzigriffiths,
    I suppose that you should append the classpath to the existing classpath. Currently you are setting the classpath using
    Classpath=CLASSPATH=c:\MF\NetExpress\Base\BIN\mfcobol.jar;.;
    This way any earlier classpath is overridden.
    Try using
    CLASSPATH=%CLASSPATH%;c:\MF\NetExpress\Base\BIN\mfcobol.jar;.;
    Hope this helps

Maybe you are looking for

  • 2 Ipods on computer - Fixed!

    Hi Jeff if your out there thought I'd let you know it was so easy to set ipod up. I already had two accounts on the computer and when I looked on other account Itunes was there for me to intall already which took 30 secs. Plugged new ipod in register

  • How to hook I pad2 to tv for netflix

    How does one connect an I Pad2 to the television to watch Netflix?  Do you need to have any special settings on the I Pad2?  Are any special settings needed for the tv as I don't want to ruin the tv?  Also our tv and dvd are controlled with one remot

  • IPod Nano (2G) - any way to track serial number?

    I know this has been asked in a few different ways but here is my take... My son's iPod nano is missing. We think we know who stole it but I cannot locate my receipt or the case it came in so I cannot locate the serial number. As with all Apple items

  • JDeveloper - MapViewer - Svg

    Hi, I'm using mapviewer and svg samples. But I can't work any svg with Embedded OC4J Server. When I work svgmap.jsp in my project, I get a empty map. But if I deploy this project to Standalone OC4J then svg is working. How can I solve this prolem? İs

  • Halting the update from a BEFORE UPDATE trigger

    Hello, I'm writing a trigger which is set to fire before update. One of the possible scenarios requires that the row being updated is not updated but instead deleted. Is it possible to send a DELETE query and then stop the update process so it doesn'