Re: App-register with clnt-cocoon

"Shash Chatterjee" <[email protected]>
Newsgroups gmane.comp.java.keel.user
Message-ID <[email protected]>
Peter,

I have an app that connects to HsqlDB/Oracle at the same time; sevceral here
use Postgres, we can help you out.  Post what you did to enable Oracle, and
what the logs say; we'll go from there.

Shash 

> Hello Shash,
> 
> Thank you for your reply.
> All builds and works fine with local HSQL DB.
> 
> But what should I do to connect to remote DB and operate with data on
> it? I tried to connect to remote Oracle and Postgre but without any
> success.
> 
> Friday, April 9, 2004, 1:31:01 AM, you wrote:
> 
> SC> Peter,
> 
> SC> I haven't had much time to respond, and likely won't get much 
> time over the SC> next few weeks..don't give up though :-)
> 
> SC> I did try a nojms-cocoon deploy on Windows last night, and app-
> register worked SC> fine.  I would really make sure you have the 
> latest keel-build module from CVS SC> (as of say Tuesday or so), and 
> make sure you set "ANT_OPTS=-Xmx256m", and set SC> 
> ant.thread.count=1 in ant.properties.
> 
> SC> Shash
> 
> >> The similar exception occures on using "default-persistence" instead
> >> of "hibernate" (see below). The exceptios arises when tring to 
> >> connect to remote DB server insted of HSQL on localhost. I try to 
> >> connect to remote Oracle 9i.
> >> 
> >> ): Could not prepare ComponentHandler for:
> SC> org.keel.services.persist.defaultpersist.DefaultPersistentFactory
> >> java.lang.IllegalArgumentException: Unknown java.sql.Types type -104
> >>         at 
> >>
> SC>
org.keel.services.persist.base.JDBCDatabaseType.typeToString(JDBCDatabaseType.java:1088)
SC>        at SC>
org.keel.services.persist.base.OracleDatabaseType.setDataSource(OracleDatabaseType.java:93)
SC>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)    
  SC> at SC>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
SC>        at SC>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
SC>        at java.lang.reflect.Method.invoke(Method.java:324)        at SC>
org.apache.avalon.fortress.impl.factory.PassThroughInvocationHandler.invoke(PassThroughInvocationHandler.java:68)
SC>        at $Proxy12.setDataSource(Unknown Source)        at SC>
org.keel.services.persist.base.AbstractPersistentFactory.initialize(AbstractPersistentFactory.java:478)
SC>        at SC>
org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:283)
SC>        at SC>
org.apache.avalon.fortress.impl.handler.ComponentFactory.newInstance(ComponentFactory.java:184)
SC>        at SC>
org.apache.avalon.fortress.impl.factory.ProxyObjectFactory.newInstance(ProxyObjectFactory.java:54)
SC>        at SC>
org.apache.excalibur.mpool.VariableSizePool.newInstance(VariableSizePool.java:120)
SC>        at SC>
org.apache.excalibur.mpool.VariableSizePool.<init>(VariableSizePool.java:62)
SC>       at SC>
org.apache.excalibur.mpool.DefaultPoolManager.getManagedPool(DefaultPoolManager.java:75)
SC>        at SC>
org.apache.avalon.fortress.impl.handler.PoolableComponentHandler.doPrepare(PoolableComponentHandler.java:83)
SC>        at SC>
org.apache.avalon.fortress.impl.handler.AbstractComponentHandler.prepareHandler(AbstractComponentHandler.java:147)
SC>        at SC>
org.apache.avalon.fortress.impl.handler.LEAwareComponentHandler.prepareHandler(LEAwareComponentHandler.java:85)
SC>        at SC>
org.apache.avalon.fortress.impl.handler.PrepareHandlerCommand.execute(PrepareHandlerCommand.java:66)
SC>        at SC>
org.apache.excalibur.event.command.CommandManager$CommandEventHandler.handleEvent(CommandManager.java:293)
SC>        at SC>
org.apache.excalibur.event.command.CommandManager$CommandEventHandler.handleEvents(CommandManager.java:225)
SC>        at SC>
org.apache.excalibur.event.command.AbstractThreadManager$PipelineRunner.run(AbstractThreadManager.java:276)
SC>        at SC>
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:727)
SC>        at java.lang.Thread.run(Thread.java:534)
> >> 
> >> PV> Hello,
> >> 
> >> PV> I have the following error message that is placed in page as comments:
> >> PV> org.keel.services.model.ModelExceptionThis operation requires 
> >> you be logged inorg.keel.services.model.ModelException: Application Error
> >> PV>         at 
> >>
> SC>
org.keel.services.model.defaultmodel.DefaultModelResponse.addError(DefaultModelResponse.java:257)
PV>>         at SC>
org.keel.services.model.defaultmodel.DefaultModelResponse.addErrors(DefaultModelResponse.java:336)
PV>>         at SC>
org.keel.services.model.defaultmodel.DefaultCommand.execute(DefaultCommand.java:120)
PV>>         at SC>
org.keel.services.model.defaultmodel.DefaultCommand.execute(DefaultCommand.java:73)
PV>>         at SC>
org.keel.apps.register.models.VerifyLogin.execute(VerifyLogin.java:75) PV>  
SC>      at sun.reflect.GeneratedMethodAccessor62.invoke(Unknown Source) PV> 
   SC>    at SC>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
PV>>         at java.lang.reflect.Method.invoke(Method.java:324) PV>        
at SC>
org.apache.avalon.fortress.impl.factory.PassThroughInvocationHandler.invoke(PassThroughInvocationHandler.java:68)
PV>>         at $Proxy5.execute(Unknown Source) PV>         at SC>
org.keel.services.model.defaultmodel.DefaultModelRequest.execute(DefaultModelRequest.java:186)
PV>>         at sun.reflect.GeneratedMethodAccessor60.invoke(Unknown Source)
PV>>         at SC>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
PV>>         at java.lang.reflect.Method.invoke(Method.java:324) PV>        
at SC>
org.apache.avalon.fortress.impl.factory.PassThroughInvocationHandler.invoke(PassThroughInvocationHandler.java:68)
PV>>         at $Proxy2.execute(Unknown Source) PV>         at SC>
org.keel.services.model.defaultmodel.DefaultCommand.execute(DefaultCommand.java:119)
PV>>         at SC>
org.keel.services.model.defaultmodel.DefaultCommand.execute(DefaultCommand.java:73)
PV>>         at org.keel.models.util.Sequence.runModel(Sequence.java:424) PV>
SC>        at org.keel.models.util.Sequence.runSequence(Sequence.java:271) PV>
  SC>      at org.keel.models.util.Sequence.execute(Sequence.java:123) PV>   
    SC> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) PV>   
     at SC>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
PV>>         at SC>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
PV>>         at java.lang.reflect.Method.invoke(Method.java:324) PV>        
at SC>
org.apache.avalon.fortress.impl.factory.PassThroughInvocationHandler.invoke(PassThroughInvocationHandler.java:68)
PV>>         at $Proxy3.execute(Unknown Source) PV>         at SC>
org.keel.services.model.defaultmodel.DefaultModelRequest.execute(DefaultModelRequest.java:186)
PV>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
PV> SC>         at SC>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
PV>>         at SC>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
PV>>         at java.lang.reflect.Method.invoke(Method.java:324) PV>        
at SC>
org.apache.avalon.fortress.impl.factory.PassThroughInvocationHandler.invoke(PassThroughInvocationHandler.java:68)
PV>>         at $Proxy2.execute(Unknown Source) PV>         at SC>
org.keel.servers.direct.KeelDirectServer.execute(KeelDirectServer.java:251)
PV>>         at SC>
org.keel.servers.direct.KeelDirectServer$MultiThreadedProcessor.run(KeelDirectServer.java:294)
> >> 
> >> PV> In WEB-INF/keel/server/log/system.log I have the following:
> >> PV> ): Could not prepare ComponentHandler for:
> SC> org.keel.services.persist.hibernate.HibernatePersistentFactory
> >> PV> java.lang.IllegalArgumentException: Unknown java.sql.Types type -
> >> 104 PV>         at 
> >>
> SC>
org.keel.services.persist.base.JDBCDatabaseType.typeToString(JDBCDatabaseType.java:1088)
PV>>         at SC>
org.keel.services.persist.base.OracleDatabaseType.setDataSource(OracleDatabaseType.java:93)
PV>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
PV> SC>         at SC>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
PV>>         at SC>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
PV>>         at java.lang.reflect.Method.invoke(Method.java:324) PV>        
at SC>
org.apache.avalon.fortress.impl.factory.PassThroughInvocationHandler.invoke(PassThroughInvocationHandler.java:68)
PV>>         at $Proxy10.setDataSource(Unknown Source) PV>         at SC>
org.keel.services.persist.base.AbstractPersistentFactory.initialize(AbstractPersistentFactory.java:478)
PV>>         at SC>
org.keel.services.persist.hibernate.HibernatePersistentFactory.initialize(HibernatePersistentFactory.java:80)
PV>>         at SC>
org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:283)
PV>>         at SC>
org.apache.avalon.fortress.impl.handler.ComponentFactory.newInstance(ComponentFactory.java:184)
PV>>         at SC>
org.apache.avalon.fortress.impl.factory.ProxyObjectFactory.newInstance(ProxyObjectFactory.java:54)
PV>>         at SC>
org.apache.excalibur.mpool.VariableSizePool.newInstance(VariableSizePool.java:120)
PV>>         at SC>
org.apache.excalibur.mpool.VariableSizePool.<init>(VariableSizePool.java:62)
PV>>         at SC>
org.apache.excalibur.mpool.DefaultPoolManager.getManagedPool(DefaultPoolManager.java:75)
PV>>         at SC>
org.apache.avalon.fortress.impl.handler.PoolableComponentHandler.doPrepare(PoolableComponentHandler.java:83)
PV>>         at SC>
org.apache.avalon.fortress.impl.handler.AbstractComponentHandler.prepareHandler(AbstractComponentHandler.java:147)
PV>>         at SC>
org.apache.avalon.fortress.impl.handler.LEAwareComponentHandler.prepareHandler(LEAwareComponentHandler.java:85)
PV>>         at SC>
org.apache.avalon.fortress.impl.handler.PrepareHandlerCommand.execute(PrepareHandlerCommand.java:66)
PV>>         at SC>
org.apache.excalibur.event.command.CommandManager$CommandEventHandler.handleEvent(CommandManager.java:293)
PV>>         at SC>
org.apache.excalibur.event.command.CommandManager$CommandEventHandler.handleEvents(CommandManager.java:225)
PV>>         at SC>
org.apache.excalibur.event.command.AbstractThreadManager$PipelineRunner.run(AbstractThreadManager.java:276)
PV>>         at SC>
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:727)
PV>>         at java.lang.Thread.run(Thread.java:534)
> >> 
> >> PV> Wednesday, April 7, 2004, 12:02:19 AM, you wrote:
> >> 
> >> PV>> Hello,
> >> 
> >> PV>> I've built keel with cocoon client in "nojms-cocoon" deployment.
> >> PV>> When I start tomcat I have login page. If I try to do something 
> >> I have PV>> error message on page
> >> 
> >> PV>> "Errors:
> >> PV>>  * null, Could not return a reference to the Component
> >> PV>>  (Key='org.keel.services.persist.PersistentFactory/*')"
> >> 
> >> PV>> If I understand correctly PersistentFactory is the interface 
> >> that PV>> should be implemented in "svc-persist-default" in my 
> >> deployment by the PV>> class PV>>
> SC> "org.keel.services.persist.defaultpersist.DefaultPersistentFactory".
> >> PV>> The class contains the following meta tags:
> >> 
> >> PV>>  * @avalon.component
> >> PV>>  * @avalon.service type=org.keel.services.persist.PersistentFactory
> >> PV>>  * @x-avalon.info name=default-persistent
> >> PV>>  * @x-avalon.lifestyle type=pooled
> >> 
> >> PV>> and "WEB-INF\keel\server\conf\svc-persist-default\system.xconf"
> >> PV>> contains the element "default-persistent".
> >> 
> >> PV>> What is wrong?
> >> 
> >> -- 
> >> Best regards,
> >> Peter Velychko                            
> >> [email protected]
> >> 
> >> _______________________________________________
> >> User mailing list
> >> [email protected]
> >> http://lists.keelframework.org/listinfo.cgi/user-keelframework.org
> 
> SC> _______________________________________________
> SC> User mailing list
> SC> [email protected]
> SC> http://lists.keelframework.org/listinfo.cgi/user-keelframework.org
> 
> -- 
> Best regards,
> Peter Velychko                            
> [email protected]
> 
> _______________________________________________
> User mailing list
> [email protected]
> http://lists.keelframework.org/listinfo.cgi/user-keelframework.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.