Commons lang problems

Hi there!
Sorry if I post this in the wrong section. But I was unsure of which to choose so I took the most general.
To my problem. I want to use commons lang (http://commons.apache.org/lang/) but I cant make it work. I made a simple testclass to show you the problem:
import org.apache.commons.lang.builder.ToStringBuilder;
public class Person
  private String name;
  private int age;
  public Person(String name, int age)
    this.name = name;
    this.age = age;
  public String getName()
    return name;
  public void setName(String newName)
    this.name = newName;
  public int getAge()
    return age;
  public void setAge(int newAge)
    this.age = newAge;
  public String toString()
    return new ToStringBuilder(this)
      .append("name", name)
      .append("age", age)
      .toString();
  public static void main(String[] args)
    Person p = new Person("Peter", 23);
    System.out.println(p);
}And this is the output from when I run it:
*$ javac -classpath /usr/share/java/commons-lang.jar Person.java && java Person*
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/lang/builder/ToStringBuilder
     at Person.toString(Person.java:36)
     at java.lang.String.valueOf(String.java:2615)
     at java.io.PrintStream.print(PrintStream.java:616)
     at java.io.PrintStream.println(PrintStream.java:753)
     at Person.main(Person.java:45)

*$ javac -classpath /usr/share/java/commons-lang.jar Person.java && java -classpath /usr/share/java/commons-lang.jar Person*
Exception in thread "main" java.lang.NoClassDefFoundError: PersonI have also tried with:
CLASSPATH="/usr/share/java/commons-lang.jar" javac Person.java && java Person

Similar Messages

  • Jakarta Commons Lang 1.01 vs. 2.0?

    I looked through the newsgroup, but didn't see this question come up.
    Currently, the latest version of the Jakarta Commons Lang package is 2.0,
    though Kodo 3.2.4 includes 1.0.1. Are there any known problems or
    incompatibilities with using Lang 2.0 with Kodo 3.2.4? We'd like to only
    include the Lang 2.0 package in our application.
    Also, the link in the documentation (Appendix F) to the Jakarta pages are
    broken:
    http://jakarta.apache.org/commons/collections.html should be
    http://jakarta.apache.org/commons/collections/
    http://jakarta.apache.org/commons/lang.html should be
    http://jakarta.apache.org/commons/lang/
    and
    http://jakarta.apache.org/commons/pool.html should be
    http://jakarta.apache.org/commons/pool/
    (basically, replace the .html with a /).
    ;ted

    There are no known incompatibilities, but in Kodo 3, we're actually
    repackaging all our open-source dependencies to get away from random
    appearances of incompatibilities.
    -Patrick
    Ted M. Young wrote:
    I looked through the newsgroup, but didn't see this question come up.
    Currently, the latest version of the Jakarta Commons Lang package is 2.0,
    though Kodo 3.2.4 includes 1.0.1. Are there any known problems or
    incompatibilities with using Lang 2.0 with Kodo 3.2.4? We'd like to only
    include the Lang 2.0 package in our application.
    Also, the link in the documentation (Appendix F) to the Jakarta pages are
    broken:
    http://jakarta.apache.org/commons/collections.html should be
    http://jakarta.apache.org/commons/collections/
    http://jakarta.apache.org/commons/lang.html should be
    http://jakarta.apache.org/commons/lang/
    and
    http://jakarta.apache.org/commons/pool.html should be
    http://jakarta.apache.org/commons/pool/
    (basically, replace the .html with a /).
    ;ted

  • Jakarta Commons Lang

    Hi,
    I am using JSP and Mysql for my application. I have a form with textarea fields. When user clicks submit, the values entered, are stored into the database. Currently am not able to use escape characters such as "'" or " "" "..
    I have already download Jakarta Commons Lang jar file and have also updated my classpath. My problem is, how will I use this jar file with JSP to solve the problem.
    Pls Help,
    Aarushi

    What exactly is the problem?
    Saving the value to the database?
    Displaying the value back on the screen?
    How are you saving the value?
    Are you using a prepared statement with parameters or just concatenating together a SQL string?
    If the problem is that you need the user to be able to type ' and " into the textfields, then PreparedStatements should solve that issue.
    Cheers,
    evnafets

  • Common newbie problems

    This list might help some people:
    What is a common newbie problem/question and what is a simple solution?
    Example:
    Q. Why do I get a java.lang.NoClassDefFoundError when I try to run my app from the command prompt?
    A. Use java -cp . MyClass

    The topics named at http://pjt33.f2g.net/javafaq/ are the ones which seemed to me to crop up most often. (Which reminds me - I really should get on with finishing that FAQ).

  • Weblogic 10.3 and commons-lang-2.4.jar

    Dear All,
    I made a web application. It uses some 3party libraries, they are in web-inf/lib directory:
    WEB-INF
    |-sun-web.xml
    |-web.xml
    |-weblogic.xml
    WEB-INF/lib
    |-commons-io-1.4.jar
    |-commons-lang-2.4.jar
    |-xbean.jar
    My web application is running on Glassfish application server. When I tried to to deploy it to Weblogic 10.3 server I got follow error message:
    java.lang.NoSuchMethodError: org.apache.commons.lang.StringUtils.containsIgnoreCase(Ljava/lang/String;Ljava/lang/String;)Z
         at hu.mol.eai.fileadapter.web.PollingTask.getJTAClass(PollingTask.java:589)
    The reason of the exception: there is an older version of commons-lang library in classpath and the application server loaded this library on startup. I found library in /bea_10.3/modules/com.bea.core.apache.commons.lang_2.1.0.jar.
    If I delete it and the newer version of library (commons-lang-2.4.jar) copy to the /bea_10.3/modules/ directory my web application is working.
    I think this solution is a hacking, because I overwrite an original library of application server. I is not too nice solution for a big company environment where there is a support agreement with Weblogic partner.
    Could you give me a good / nicer solution?
    thank you, zappee

    Thank you for your answer.
    And what can I do if my war file is in an ear file?
    Structure of my enterprise application:
    *.ear
    |-lib\commons-lang-2.4.jar
    |-lib\....jar
    |
    |-FileAdapterWeb.war
    |-FileAdapterCommons.jar
    |-FileAdapterPlugins.jar
    |-schema.jar
    |- ...
    I do not want to put commons-lang-2.4.jar into *.war and lib directory same time. The all components of my enterprise applications are going to use commons-lang-2.4.jar. For example: it uses FileAdapterWeb.war and FileAdapterPlugins.jar too.
    Is there a solution for me?
    thx, SoMa

  • Apache commons-lang version in Oracle SOA Suite 10.1.3.3.0

    What is the Apache commons-lang version used in Oracle SOA Suite 10.1.3.3.0?
    I was using commons-lang-2.4 classes in writing an Identity service plugin and ran into an issue.

    Did you find a solution to this issue? We are having a similar issue trying to deploy a Paypal IPN on OAS 10.1.2.3. The IPN messages coming from Paypal appear to be attempting an SSLv2 handshake. In our case SSLv2 is disabled due to our security requirements so the connection is killed by our App Server. We have found that manually sending the IPN messages works correctly.

  • Does anyone have a link to common bugs/problems encountered with flex 3?

    Hi,
    does anyone have a link to common bugs/problems encountered
    with flex 3, just so i can try and familarise myself before I go
    asking etc? thanks folks!!

    flex warnings:
    http://livedocs.macromedia.com/flex/2/langref/compilerWarnings.html
    flex errors
    http://livedocs.macromedia.com/flex/2/langref/compilerErrors.html

  • Answers to common Bridge problems.

    Here are user-submitted answers to common Bridge problems.
    I invite all suggestions to addition/corrections/improvements.

    Bumped. I'll convert to document once it will be possible to do so. I have great addendum by CurtY:
    Windows and Mac FAQ and Translation Key
    Keystrokes
    ALT on a Pc = Option on a Mac (On some keyboards (UK), the Option key is labeled with Alt. )
    CTRL (Control) on Pc = Cmd (Command) on a Mac, the key has the following symbol: ⌘
    Right-click on a Pc = Right-click on a Mac, or Control+Click on machines without a mouse.
    Menu differences
    Preferences (CMD+K) are found on the Photoshop menu on a Mac, at the bottom of the Edit menu on a PC, and the shortcut is (CTRL+K).
    On the same Photoshop menu on a Mac, one can find About Plug-ins... and About Photoshop, while they are located on the Help menu on a PC.
    Quit Photoshop (CMD+Q) is also on that Photoshop menu on a Mac, while Exit (CTRL+Q) can be found at the end of the File menu on a PC.
    Preferences location on the hard drive. There is a full document on that topic: http://kb2.adobe.com/cps/828/cpsid_82893.html
    but basically: The main preference file, is on both plaform  Adobe Photoshop CSx Prefs.psp it is located, alongside most other preferences on:
    Mac location: Users/[user name]/Library/Preferences/Adobe Photoshop CSx Settings
    Windows XP: Documents and Settings/[user name]/Application Data/Adobe/Adobe Photoshop CSx/Adobe Photoshop CSx Settings
    Windows 7 and Vista: Users/[user name]/AppData/Roaming/Adobe/Adobe Photoshop CS5/Adobe Photoshop CSx
    Settings Keywords
    pc = C:/Users/user name/AppData/Roaming/Adobe/BridgeCSx/  (note: to view AppData  turn on hidden file option)
    Mac = (your computer name)/ Library / App Support / Adobe / Bridge CSx / Adobe
    Camera Raw location  NOTE:  Should be only one file here.
    PC = Program Files/COMMON Files/Adobe/Plug-ins/CSx/File Formats which gives you Camera Raw.8bi
    Mac = /Library/Application Support/Adobe/Plug-ins/CSx/File Formats/
    Photoshop Actions
    Mac -  Actions (not saved) Actions panel.psp  Users/[user name]/Library/Preferences/Adobe Photoshop CSx Settings
    Mac -  Actions (saved) Actions panel.atn   Program Files/Adobe Photoshop CSx(64bit)/presets/actions
    PC -  Actions (not saved) Actions panel.psp  Users/[user name]/AppData/Roaming/Adobe/Adobe Photoshop CS5/Adobe Photoshop CS5 Settings
    PC -   Actions (saved) Actions panel.atn   Program Files/Adobe Photoshop CSx(64bit)/presets/actions

  • HP Printer Support Videos for Common Printer Problems

    The HP Support Forum shows many questions about print quality issues, paper jams, carriage jams, paper pick-up issues, and test page questions. The videos in the linked playlists below were created to show the steps to fix common printing problems for your HP printer. Each playlist contains multiple videos that pertain to the topic. Be sure to choose the video that applies to your topic and model number if applicable. The printer models are included in the title of the videos. Fixing Print Quality IssuesFixing Paper JamsFixing Carriage JamsFixing Paper Pick-Up IssuesPrinting a Test Page If you have further questions, please visit our YouTube Channel, HP Printer Support. The creators of these videos are the subject matter experts. I am just sharing the videos to help solve common printing problems.

    What does "hard error" mean?  How can I fix it.  My HP 4500 Officejet wireless printer is not printing when it says "printing" and further inquiry tells me there is a "hard error".  I have tried the usual plug and unplug.  

  • Commons-lang library versions problem in 10.3

    Hi,
    my web application is failing because a call to the mentioned library is being routed to the old version Weblogic copy in bea/modules instead of my application WEB-INF/lib one.
    This doesn’t change if I add the library package to prefer-application-packages. I suppose this is because the library is somehow used at startup.
    Can anybody let me know which is the (hopefully non-hacky) way to make my application use the version I want of a library used also by Weblogic?
    Thanks

    java.lang.ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl cannot be cast to javax.xml.parsers.DocumentBuilderFactory
    at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:123)
    at com.bea.core.repackaged.springframework.beans.factory.xml.DefaultDocumentLoader.createDocumentBuilderFactory(DefaultDocumentLoader.java:88)Any idea what's causing com.bea.core.repackaged.springframework.beans.factory.xml.DefaultDocumentLoader to be loaded and where it's being loaded from? Since it's a com.bea class, I assume it's pulled from the server's classpath. It looks like you're running into [this scenario|http://e-docs.bea.com/wls/docs103/programming/classloading.html#wp1087985].
    Besides I saw comments discouraging the use of that parameter saying it could bring a number of unpredictable consequences down the line.Personally, I always use prefer-web-inf-classes when working with WLS. It brings things more in-line with the recommended spec behavior and hence other servers like Tomcat.

  • Struts, log4j, commons-logging problems in 9.0.4 too??

    ok... I have a J2EE project that uses struts, log4j, a couple ejbs. I can successfully deploy and run on JBoss. However, our client insists that we use the 10g App Server, so I tried to deploy on 10g v10.1.2 (after making the appropriate changes to the deployment descriptors); the ear file deployed without problems, but when using the application, I encountered the following error when the app got to part of my code that tries to create a log file using the commons-logging framework:
    java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
    I see from these forums that there is a known problem regarding commons-logging and log4j with v10.1.2 (Help: 10g, struts, commons-logging and log4j doesn't work in 10g!? 9i fine! )..... so, I installed v9.0.4 of the 10g AppServer, deployed and ...... drum roll please.... I get the same error.
    The commons-logging.jar file IS in the [application dir]/WEB-INF/lib directory so the app should be finding the org.apache.commons.logging.LogFactory class file. And - struts is working based on page navigation prior to hitting the error (which I've heard indicates that the commons-logging.jar library is being invoked at some point).
    So... am I missing something? or does v9.0.4 also have the bug (related to classloaders)???
    sure hope someone can help....
    Scott

    I don't know why it's not working either, unless it's related to that classloader issue.... I have the following files in my WEB-INF/lib directory:
    commons-beanutils.jar
    commons-collections.jar
    commons-digester.jar
    commons-logging.jar
    commons-validator.jar
    jakarta-oro.jar
    log4j-1.2.9.jar
    struts.jar
    ScottsTester-ejb.jar (my ejb classes)
    ScottsTester-web.jar (my struts-related classes)
    I'm running into problems when the app tries to create an instance of my ejb (which has as a member variable an org.apache.commons.logging.Log object which is created by the org.apache.commons.logging.LogFactory object - the Oracle App Server is telling me it can't find the LogFactory class despite the fact that the commoons-logging.jar file is in the WEB-INF/lib directory.... and, as other postings have noted, this appears to be a problem with the classloaders. Unfortunately, the workaround suggesting by Qiang causes problems with my ejbs - when I try to get a home object, I encounter a ClassCastException somewhere in the PortableRemoteObject.narrow(o, DbConnectionHome.class); call..... maybe Oracle should stick to databases.....

  • Common screen problem while playing games in Windows 7 x64

    When I start games like Red Alert2 and alot others, the game doesn't show properly as some times the screen goes black or the buttons or menues doesn't show at all
    Some other forums adviced to make these steps
    Right click on Desktop
    Select Screen Resolution
    Click Detect (with no additional monitor connected)
    Next to your first display, you'll see a grey square with the text "Another display not detected" Click on the grey square
    Next to "Multiple displays" it will say "No display detected"
    Click on "No display detected"
    A drop-down menu will appear
    Select "Try to connect anyway on: VGA"
    Click on your primary display (the square with the big "1" in it)
    Next to "Multiple displays" select "Extend these displays"
    I tried these steps and every thing is going fine,  but the annoying problem is that I have to change the display settings each time I run a game and when I'm done playing I have to change them back, since of "Extended displays" order
    In earlier windows versions it worked totally with no problems and even on Windows 8.1 x64
    What would be the error here?
    What should I do instead of all this jam? Is there any Hotfixes?
    Note: I have two video cards running Intel HD graphics and Nvidia Geforce
    ***Update :The problem also exists in Windows 8.1 x64

    Hi Maen Abdulhaq,
    “When I start games like Red Alert2 and a lot others”, ” I don't think that this is a manufacturer problem since it's very common to all those having windows 7 x64 and trying to play such games”
    Did this issue occur in the whole games or just the Red Alert2 in your machines ?
    “unfortunalety windows compatibility settings”
    Have you tried in windows 98 or lower compatibility mode, please ensure you have choose run as an administrator?
    Apart from this ,I recommend you to try this method.
    create a shortcut of "Yuri.exe" (or "Game.exe" if running normal RA2), and place it on the desktop. Open the properties, and in the target line add "-dxlevel 8" to the end. It should look like this (or similar if you're directories
    are different).
     "C:\Program Files (x86)\EA Games\Command & Conquer The First Decade\Command & Conquer Red Alert(tm) II\RA2\YURI.exe" -dxlevel 8
    Meanwhile,  entering Intel HD Graphics control panel (via Windows Control Panel or right-clicking the desktop) and enter Power section. Choose "High performance" mode.
    If the issue persists, I recommend you to disable one graphic card from the device manager to have a check considering you have two graphic cards.
    Best regards

  • File upload using apache Commons FileUpload problem

    Hi All,
    I have used Commons FileUpload for uploading files from windows to unix machine. I'm able to upload files but I have a problem about the contents of file copied in unix. When i upload files few files containing special characters are not copied correctly in unix instead ascii codes are getting copied/written. Seems to be a problem with character encoding.
    For example symbol "�" is not getting copied correctly in unix. So as new line character to. If anyone has faced such issues kindly provide few pointers on this. Appreciate your guidance.
    Thanks,
    -Aj

    Thanks for the reply.
    I'm using the Commons FileUpload class "FileItem" which holds the filestream data and using function
    code snippet of file upload
    ServletFileUpload servletFileUpload = new ServletFileUpload(new DiskFileItemFactory());
    List fileItemsList = servletFileUpload.parseRequest(request);
    Iterator it = fileItemsList.iterator();
    while (it.hasNext())
         FileItem fileItemTemp = (FileItem)it.next();
         File saveToFile = new File("newFile");
          fileItem.write(saveToFile ); // write fileItem data to saveToFile.
    } FileItem object takes care of writing data to disk.No idea,how it does internally.
    Thanks,
    -Aj.

  • Commons DBCP problem

    Hi friends,
    I am implementing the Commons DBCP package in one of my JSP pages.
    This is the scenario :
    In my CATALINA_HOME/common/lib I have the files :
    commons-dbcp-1.1.jar
    commons-pool-1.1.jar
    commons-collections.jar
    I have set the CLASSPATHS in my Environment variables to the appropriate JARs.
    I have added a Context to my server.xml file as :
    <!-- Context for Connection Pooling -->
    <Context path="/CPool" docBase="CPool" debug="5" reloadable="true" crossContext="true">
    <Logger className="org.apache.catalina.logger.FileLogger" prefix="localhost_CPool_Log." suffix=".txt" timestamp="true"/>
    <Resource name="jdbc/test_dsn" auth="Container" type="javax.sql.DataSource"/>
    <ResourceParams name="jdbc/test_dsn">
    <parameter>
              <name>factory</name>
              <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
         </parameter>
         <parameter>
              <name>maxActive</name> <!-- To set maximum number of active users -->
              <value>0</value> <!-- 0 is for no limit -->
         </parameter>
         <parameter>
              <name>maxIdle</name> <!-- Set maximum number of idle connections retained in the pool -->
              <value>0</value> <!-- 0 is for no limit -->
         </parameter>
         <parameter>
         <name>maxWait</name> <!-- Maximum time(ms) to wait for a dB connection to become available -->
              <value>10000</value> <!-- Set -1 to wait indefinitely : here 10 seconds. -->
         </parameter>
         <!-- MySQL dB username and passwords -->
         <parameter>
              <name>username</name>
              <value></value>
              <name>password</name>
              <value></value>
         </parameter>
    <!-- Class name for mm.mysql JDBC driver -->
         <parameter>
              <name>driverClassName</name>
              <value>org.gjt.mm.mysql.Driver</value>
         </parameter>
         <!-- JDBC connection url for the MySQL Database -->
         <parameter>
              <name>url</name>
              <value>jdbc:mysql://localhost:8080/omamconsultants_com?autoreconnect=true</value>
         </parameter>
         </ResourceParams>
    </Context>
    and I have made a new web.xml file in my CPool/WEB-INF directory as :
    <web-app>
    <description> MySQL Test Application for Connection Pooling.</description>
    <!-- Resource reference added by Sherbir to implement Connection Pooling -->
    <resource-ref>
         <description>Connection Pooling</description>
         <res-ref-name>jdbc/test_dsn</res-ref-name>
         <res-type>javax.sql.DataSource</res-type>
         <res-auth>Container</res-auth>
    </resource-ref>
    </web-app>
    Finally, I have made a JSP to access the database table as :
    <%
    int i=0;
    try
    Context ctx = new InitialContext();
         if (ctx == null)
              throw new Exception("No Context available");
         DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/test_dsn");
         if (ds != null)
              Connection con = ds.getConnection();
              if (con != null)
                   System.out.println("Connection " + con.toString() + " established.");
                   Statement stmt = con.createStatement();
                   ResultSet rs = stmt.executeQuery("SELECT * FROM t_sherbir");
                   while (rs.next())
                        System.out.println("Fetching record " + (i+1) + " from table...");
                   con.close();
    catch(Exception e) {}
    %>
    But when I run the program, I am getting this error :
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 18 in the jsp file: /CPool/pool2.jsp
    Generated servlet error:
    [javac] Compiling 1 source file
    C:\jakarta-tomcat-4.1.29\work\Standalone\localhost\examples\CPool\pool2_jsp.java:76: cannot resolve symbol
    symbol : class DataSource
    location: class org.apache.jsp.pool2_jsp
         DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/test_dsn");
    ^
    An error occurred at line: 18 in the jsp file: /CPool/pool2.jsp
    Generated servlet error:
    C:\jakarta-tomcat-4.1.29\work\Standalone\localhost\examples\CPool\pool2_jsp.java:76: cannot resolve symbol
    symbol : class DataSource
    location: class org.apache.jsp.pool2_jsp
         DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/test_dsn");
    ^
    2 errors
         at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130)
         at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
         at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:494)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666)
         at java.lang.Thread.run(Thread.java:536)
    So any1 has an idea where I'm going wrong ?
    Please help immediately.

    It seems to be a simple issue :). You need to import the relevant classes in your JSP file. To access the data source the following classes need to be imported.
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.sql.DataSource;
    You also need to import JDBC related classes - ResultSet, Statement etc.

  • Common Queue Problem

    Hi all,
    I have a messaging queue on my server side. I am using this queue for an asynchronous operation on server side. My problem starts when I want to listen this queue on client side. I am getting the following exception when i try to listen same queue;
    javax.jms.JMSException: A message listener is already registered
    Yes its right i assigned a listener by creating a MD bean
    How can i listen this common queue from client side too ?
    Thank you for your attention,
    My Regards

    Hi,
    Hanging PL/SQL jobs and hanging external jobs need to be treated differently.
    - hanging pl/sql jobs are typically associated with a real background session which is hanging and issues can be tracked down using normal tools/methods to track down oracle hangs (see what sql statement is being run, see what locks are being held/waited on etc).
    - hanging external jobs may be the result of a hanging script or may be hanging because the external job never returned results. Both of these issues are covered in the post on running external jobs here
    Guide to External Jobs on 10g with dbms_scheduler e.g. scripts,batch files
    First check whether the script is running (look through the process list for the name of the script or the commands that the script runs).
    If it is, then you need to debug the script itself or you may be running into the bug where the scheduler hangs on large amounts of stderr (fixed in version 10.2.0.2) in which case you should redirect stderr to a file.
    If nothing is running then you should check your permissions, in particular, the user that the job runs as must have execute access on $ORACLE_HOME/bin and all parent directories. So for e.g. if your $ORACLE_HOME is /opt/oracle/db then you would have to make sure that
    chmod a+rx /opt
    chmod a+rx /opt/oracle
    chmod a+rx /opt/oracle/db
    chmod a+rx /opt/oracle/db/bin
    Hope this helps,
    Ravi.

Maybe you are looking for

  • UDF fields missing in Deployment Manager User Metadata export wizzard

    Hi, When I try to export UDF-s using Deployment Manager, not all UDF-s appear in the Deployment Manager wizard step1 Search list for User Metadata type. It seems that UDF Lookup type-s are not included. Also, some text type UDF-s are missing as well,

  • AE not working after upgrading to 802.11b/g/n AEBS

    I upgraded to the square 802.11b/g/n AEBS but have lost my AE which I use to play iTunes through my stereo. I just get the blinking yellow on the AE now and there's no longer a pulldown window in the lower right corner of iTunes for me to pick the ou

  • Develop: copy after to before for multiple photos?

    Is there a way to copy after settings to the before settings (that of each photo) for multiple photos? I find that I forget to do that after editing a photo. Then saving edits back to the file (cmd-S) flushes the before settings. I've been visiting e

  • After Effects CS5 - Rendering Help!

    I recently got AE CS5.  When I had CS4, i would always render it as a Windows Media File (.wmv).  But now in CS5 when I render it as that, it just messes up. The size of the finally rendered HD clip will be no more than a few hundred KB's, and someti

  • ENTRY_ACT field in BDC program for Txn. IA05

    Dear Gurus, I want to write BDC program for IA05 transaction.  In that, Inspection Charatertics entries, I want to add more entries (more than one page - page down).  Please guide me how to handle RQPAS-ENTRY_ACT screen field. Please provide the logi