PabloEr / google-feedserver

Automatically exported from code.google.com/p/google-feedserver
Apache License 2.0
1 stars 0 forks source link

Cannot run examples on Tomcat #6

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Installed apache-tomcat-6.0.20
2. Followed instructions, created Derby database and deployed the WAR as
explained in the documentation
3. Access http://localhost:8080/feedserver/example.com/contact

What is the expected output? What do you see instead?
I would expect to get the list of contacts. I get :

<error>
<code>500</code>
<message>Server Error</message>
</error>

What version of the product are you using? On what operating system?

Trunk. Tried on RedHat Linux 4 and Windows XP. JDK 1.6

Please provide any additional information below.

Original issue reported on code.google.com by gabriele...@gmail.com on 2 Jul 2009 at 2:29

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Sharing :

Turn the log4j (DEBUG) to capture the logs on console.

If you found :

10549 [http-8080-1] DEBUG 
org.apache.commons.beanutils.converters.ArrayConverter  -     No conversion 
required, value is already a java.net.URL[]
10768 [http-8080-1] ERROR 
org.apache.abdera.protocol.server.impl.AbstractProvider  - 
java.lang.RuntimeException: Error occurred.  Cause: 
com.ibatis.common.xml.NodeletException: Error parsing XML.  Cause: 
java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/typeHandler'.  
Cause: java.lang.ClassNotFoundException: 
com.google.feedserver.ibatisCallbackHandlers.StringToNumericCallback
10771 [http-8080-1] INFO  org.apache.abdera.protocol.server.ProviderHelper  - 
Server error
java.lang.RuntimeException: Error occurred.  Cause: 
com.ibatis.common.xml.NodeletException: Error parsing XML.  Cause: 
java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/typeHandler'.  
Cause: java.lang.ClassNotFoundException: 
com.google.feedserver.ibatisCallbackHandlers.StringToNumericCallback

try to :

change the <typeHandler> tag on SQL Map file to :

<typeHandler javaType="string" jdbcType="NUMERIC"
         callback="com.google.feedserver.ibatis.StringToNumericConverter" />

Thanks to Rohan Ghatpande :) for these solution.

Original comment by bagus.wi...@gmail.com on 4 Feb 2011 at 8:03