> -----Original Message-----
> From: Abbas Yousafzai [mailto:[EMAIL PROTECTED]]  
> 
> ERROR org.apache.torque.util.BasePeer - BasePeer.MapBuilder 
> failed trying to
> instantiate: com.adphobia.om.map.ApusersecurityMapBuilder
> java.lang.ClassNotFoundException: 
> com.adphobia.om.map.ApusersecurityMapBuilder

I am getting this error also, in Torque 3.0-b4.  It's a complete
showstopper for my project :(  I am currently initialising torque via an
'init' servlet which specifically calls Torque.init() and passes the
prop file in.  I know this is successful because it's in a try-catch
block and I print a debug message after intialisation.

When I come to execute the following code in my app:

Criteria crit = new Criteria();
crit.addJoin(
        LoginPeer.INDIVIDUALID,
        ClubMemberPeer.INDIVIDUALID);
crit.add(LoginPeer.INDIVIDUALID, individualID);
crit.add(LoginPeer.PASSWORD, password);
List list = LoginPeer.doSelect(crit);

It fails with an identical error to that above in my log4j appender.  I
also see the following in a Tomcat error in the browser:

java.lang.NullPointerException: Connection object was null. This could
be due to a misconfiguration of the DataSourceFactory. Check the logs
and Torque.properties to better determine the cause.

The former error only happens the first time.  If I run the code again I
get the Tomcat error but nothing in the log4j debug log!  Weird.
Anyway, as I said, I'm dead in the water on this one.

Someone please help :)

Cheers,

M

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to