Method initialize() of my Store is called by Namespace.loadDefinition() -> initializeServices() . After that method Namespace.loadBaseData() calls my connect() (by SlideTransactionManager)...
log
02 Dec 2003 15:22:02 - org.apache.slide.common.Namespace - INFO - Registering Store docs (class org.apache.slide.store.StandardStore) with parameters {} on scope /
02 Dec 2003 15:22:02 - org.apache.slide.common.Namespace - INFO - Initializing Store docs(org.apache.slide.store.StandardStore)
>>>> initialize(): [EMAIL PROTECTED]
02 Dec 2003 15:22:02 - org.apache.slide.common.Namespace - INFO - Loading namespace slide base data
02 Dec 2003 15:22:02 - org.apache.slide.transaction.SlideTransactionManager - DEBUG - Begin Transaction 1 xid main-1070367722641-1- in thread main
>>>> connect():
Diego Bragato wrote:
Here is the side effect ...
The bootstrap does not end.
It's probably calling connect() before initialize and there is yet no properly registered driver
here are the logs
slide-domain
02 Dec 2003 11:27:39 - org.apache.slide.common.Domain - WARNING - Service [EMAIL PROTECTED] connection failed : No suitable driver
02 Dec 2003 11:27:39 - org.apache.slide.common.Domain - WARNING - Service is missing on root node
slide_ns_slide
02 Dec 2003 11:27:39 - org.apache.slide.common.Namespace - INFO - Registering Store jdbc (class org.apache.slide.store.StandardStore) with parameters {} on scope /
02 Dec 2003 11:27:39 - org.apache.slide.common.Namespace - INFO - Initializing Store jdbc(org.apache.slide.store.StandardStore)
02 Dec 2003 11:27:39 - slidestore.reference.JDBCDescriptorsStore - INFO - Connecting to "jdbc:hsqldb:slidestructure" as user "sa"
02 Dec 2003 11:27:39 - slidestore.reference.JDBCDescriptorsStore - ERROR - Connecting to "jdbc:hsqldb:slidestructure" as user "sa" failed
02 Dec 2003 11:27:39 - slidestore.reference.JDBCDescriptorsStore - ERROR - java.sql.SQLException: No suitable driver
02 Dec 2003 11:27:39 - slidestore.reference.JDBCDescriptorsStore - INFO - Loading and registering driver: org.hsqldb.jdbcDriver
Thanks a lot
Diego
At 12:42 PM 12/2/2003 +0300, you wrote:
Diego Bragato wrote:
Thanks for the answer,
there is a mismatch: my Embedded Domain (version1.8)
Looked the way you are saying is correct (Definition and then Parameters)
I changed the order into loadParameters ( where there is the new NameSpaceConfig) loadDefinition ()
The bootstrap went through fine
Is this correct or there is an on going change to code ?
I don't know How it works for check in ...
Thanks Diego
Yes, it was my typo, sorry :)
Those code I`v taken from Domain class. In Domain.java (initNamespace() method) the order is:
namespace.loadParameters(namespaceConfigurationDefinition);
...
namespace.loadDefinition(namespaceDefinition);
So, I think it is correct. I don`t know is there any side effects of those change. It whold be nice if one of slide developers explains it.
At 11:45 AM 12/2/2003 +0300, you wrote:
Diego Bragato wrote:
Hi all, I've been trying to run slide with latest code At startup it goes with this exception in the catalina.out
Starting Slide
java.lang.NullPointerException
at org.apache.slide.security.SecurityImpl.init(SecurityImpl.java:136)
at org.apache.slide.security.ACLSecurityImpl.init(ACLSecurityImpl.java:110)
at org.apache.slide.security.SecurityImpl.<init>(SecurityImpl.java:129)
at org.apache.slide.security.ACLSecurityImpl.<init>(ACLSecurityImpl.java:100)
at org.apache.slide.common.NamespaceAccessTokenImpl.<init>(NamespaceAccessTokenImpl.java:140)
at org.apache.slide.common.Namespace.initializeServices(Namespace.java:497)
at org.apache.slide.common.Namespace.loadDefinition(Namespace.java:762)
at org.apache.slide.common.EmbeddedDomain.addNamespace(EmbeddedDomain.java:228)
at wrappers.catalina.SlideServerListener.loadNamespace(SlideServerListener.java:359)
at wrappers.catalina.SlideServerListener.initializeDomain(SlideServerListener.java:296)
at wrappers.catalina.SlideServerListener.lifecycleEvent(SlideServerListener.java:145)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2183)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Starting service Slide Tomcat Apache Tomcat/4.1.24-LE-jdk14 Starting service Slide WebDAV Apache Tomcat/4.1.24-LE-jdk14 Starting service Slide Admin Apache Tomcat/4.1.24-LE-jdk14
I understood simply that the namespaceConfig object in the Namespace is null and it doesn't look to be initialized
Anybody can help ?
On the other hand is there a tag in the cvs with a reasonably stable release I can use ?
Diego
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
You have to modify EmbeddedDomain#addNamespace() mrthod:
change method call order from namespace.loadParameters(configuration); namespace.loadDefinition(definition); to: namespace.loadDefinition(definition); namespace.loadParameters(configuration);
-- Utkin Andrew
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Utkin Andrew
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Andrew Utkin
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
