Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: Connection pool and Datasource Implementation Is Not Functioning

  1. #1
    Junior Member
    Join Date
    Sep 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Connection pool and Datasource Implementation Is Not Functioning

    Hello mychickbad,
    Have you got your solution. I am having the same problem. So, please tell me where is the problem.
    Please.....


  2. #2
    Member
    Join Date
    Jul 2013
    Posts
    219
    Thanks
    0
    Thanked 18 Times in 17 Posts

    Default Re: Connection pool and Datasource Implementation Is Not Functioning

    Hello.
    I believe the error is not because of datasource.
    XmlReader is not able to find the file news.rss.
    In your source code the statement is,
    URL url = new URL("http://localhost:8080/publisher/news.rss");

    while in the exception it is,
    java.io.FileNotFoundException: http://localhost:8080/publisher/web/news.rss

    The two paths do not match.
    So can you check in your web application folder where is news.rss existing? In the publisher folder or in the publisher/web folder?
    I guess its probably in the publisher folder. If so just move it to the the sub-folder web and try executing.
    Let me know if the problem still exists.

    Syed.

  3. #3
    Junior Member
    Join Date
    Sep 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Connection pool and Datasource Implementation Is Not Functioning

    Thanks in advance. Please help me out. And still not getting the solution......
    When I made the above modification that mychickbad mentioned and then running the project i am getting the following erros:

    SEVERE: Error configuring application listener of class publisher.web.Init
    java.lang.ClassNotFoundException: publisher.web.Init
    at org.apache.catalina.loader.WebappClassLoader.loadC lass(WebappClassLoader.java:1711)
    at org.apache.catalina.loader.WebappClassLoader.loadC lass(WebappClassLoader.java:1556)
    at org.apache.catalina.core.DefaultInstanceManager.lo adClass(DefaultInstanceManager.java:525)
    at org.apache.catalina.core.DefaultInstanceManager.lo adClassMaybePrivileged(DefaultInstanceManager.java :507)
    at org.apache.catalina.core.DefaultInstanceManager.ne wInstance(DefaultInstanceManager.java:124)
    at org.apache.catalina.core.StandardContext.listenerS tart(StandardContext.java:4715)
    at org.apache.catalina.core.StandardContext.startInte rnal(StandardContext.java:5273)
    at org.apache.catalina.util.LifecycleBase.start(Lifec ycleBase.java:150)
    at org.apache.catalina.core.ContainerBase$StartChild. call(ContainerBase.java:1566)
    at org.apache.catalina.core.ContainerBase$StartChild. call(ContainerBase.java:1556)
    at java.util.concurrent.FutureTask$Sync.innerRun(Unkn own Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker( Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run (Unknown Source)
    at java.lang.Thread.run(Unknown Source)


    Then when I navigating to http://localhost:8080/publisher/news.rss in my browser the error was like:

    java.io.FileNotFoundException: http://localhost:8080/publisher/web/news.rss
    sun.net.http://www.protocol.http.HttpURLConn...Stream(Unknown Source)
    com.sun.syndication.io.XmlReader.<init>(XmlReader. java:237)
    com.sun.syndication.io.XmlReader.<init>(XmlReader. java:213)
    website1.web.HomeServlet.doGet(HomeServlet.java:44 )
    javax.servlet.http.HttpServlet.service(HttpServlet .java:617)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:717)

    And when navigating to http://localhost:8080/rssdb/home the error is:

    SEVERE: Servlet.service() for servlet [home] in context with path [/rssdb] threw exception
    java.io.FileNotFoundException: http://localhost:8080/publisher/news.rss
    at sun.net.http://www.protocol.http.HttpURLConn...Stream(Unknown Source)
    at com.sun.syndication.io.XmlReader.<init>(XmlReader. java:237)
    at com.sun.syndication.io.XmlReader.<init>(XmlReader. java:213)
    at rssdb.web.HomeServlet.doGet(HomeServlet.java:44)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:621)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:722)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:305)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:225)
    at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:169)
    at org.apache.catalina.authenticator.AuthenticatorBas e.invoke(AuthenticatorBase.java:472)
    at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:168)
    at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:98)
    at org.apache.catalina.valves.AccessLogValve.invoke(A ccessLogValve.java:927)
    at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:118)
    at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:407)
    at org.apache.coyote.http11.AbstractHttp11Processor.p rocess(AbstractHttp11Processor.java:999)
    at org.apache.coyote.AbstractProtocol$AbstractConnect ionHandler.process(AbstractProtocol.java:565)
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProce ssor.run(JIoEndpoint.java:307)
    at java.util.concurrent.ThreadPoolExecutor.runWorker( Unknown Source)
    Here rssdb is another project using the news.rss to be crested in publisher project.
    So plz someone help me.......

    --- Update ---

    In the above when navigating to http://localhost:8080/publisher/news.rss the error is actually:

    java.io.FileNotFoundException: http://localhost:8080/publisher/news.rss
    sun.net.http://www.protocol.http.HttpURLConn...Stream(Unknown Source)
    com.sun.syndication.io.XmlReader.<init>(XmlReader. java:237)
    com.sun.syndication.io.XmlReader.<init>(XmlReader. java:213)
    website1.web.HomeServlet.doGet(HomeServlet.java:44 )
    javax.servlet.http.HttpServlet.service(HttpServlet .java:617)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:717)

  4. #4
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,318
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: Connection pool and Datasource Implementation Is Not Functioning

    Please don't hijack other peoples threads, especially when they are over 2 years old. I have moved your posts from http://www.javaprogrammingforums.com...nctioning.html

Similar Threads

  1. Cannot Load Mapped Connection Pool
    By Noob_Ichigo in forum JDBC & Databases
    Replies: 4
    Last Post: August 30th, 2012, 02:21 PM
  2. Connection pool and Datasource Implementation Is Not Functioning
    By mychickbad in forum What's Wrong With My Code?
    Replies: 0
    Last Post: July 14th, 2011, 06:15 PM
  3. Problem Configuring Connection Pool, DataSource, with MySQL, Tomcat 6
    By eboraks in forum JavaServer Pages: JSP & JSTL
    Replies: 0
    Last Post: July 11th, 2011, 10:50 AM
  4. Replies: 0
    Last Post: March 26th, 2011, 11:07 AM
  5. Replies: 0
    Last Post: January 12th, 2011, 08:41 AM