Tomcat 5.5.5 is really getting on the nerves, doing a simple web app with struts just does not want to start, and the worse thing is, not even a single error message. I’ve already configured the web app log4j.properties and commons-logging, took it exactly from other web apps which i have. I never faced this issue with Tomcat 4.1.29. At anypoint of time, if there was error, or something didn’t or even if the web app log files wasn’t showing anything, i could just go to tomcat log files to see it.

Read the rest of this entry »

I’m too busy at the moment to go for a rome subproject, plus the dev.java.net site was down last night, malaysia time. anyway, i’m uploading the source code here before making it more permanent. It has a src folder which has rome source code plus mine under com.xymphany.*, the rome.properties is modified to point to com.xymphany.* classes. The hibernate mapping files is included, but it is generatable with the build file attached

I spent another frustrating 1/2 day trying to fix a ‘problem’ , a NoClassDefFound. Initially was only deploying the class to web directory then decided it need to be in the ejb classpath too, put it there, still to no avail, touched the file so that it will be updated and hope that it works, to no avail. I must have a missed an ibatis misconfiguration done by a new developer in the office but showed when i was running the app, because using oc4j, it will only show once the error and ‘marks’ the class as unavailable. Subsequently running the app, bloody NoClassDefFound error keeps coming up. Looked at log files, seeing the last few lines, it was the reporting the same thing as the error page generated by oracle.

Read the rest of this entry »

I’m working to get rome and hibernate for persisting feeds. All sample feeds are persisting allright except for the one which have SyModule, the exception being thrown is

net.sf.hibernate.PropertyAccessException: IllegalArgumentException occurred calling getter of
      xymphany.syndication.domain.synd.DCModuleImpl.id
 Read the rest of this entry »

The ibatis documentation provides a sample on how to call a procedure, but how do you call a function in Oracle? The code sample shows it.

<parameterMap id="getSomeFunction" class="java.util.Map" >
<parameter property="question1" jdbcType="INTEGER" javaType="java.lang.String" mode="OUT"/>
<parameter property="question2" jdbcType="VARCHAR" javaType="java.lang.String" mode="IN"/>
<parameter property="question3" jdbcType="INTEGER" javaType="java.lang.String" mode="IN"/>
<parameter property="question54" jdbcType="VARCHAR" javaType="java.lang.String" mode="IN"/>
<parameter property="question5" jdbcType="VARCHAR" javaType="java.lang.String" mode="IN"/>
</parameterMap>
 Read the rest of this entry »

Using ibatis dao transaction which is configured by dao.xml was giving errors as such,

com.ibatis.sqlmap.engine.transaction.TransactionException:
TransactionManager could not start a new transaction.
 A transaction is already started.
 Read the rest of this entry »
All rights reserved : pastmon.org