Re: Re: Error getting configuration dir.

Raoul Pierre <[email protected]>
Newsgroups gmane.comp.java.keel.devel
Message-ID <[email protected]>
Raoul Pierre a écrit :

>
> When I try to run
>
> http://localhost:8080/test/model.do?model=createdb
>
> I got this error:
> org.keel.clients.ClientException: Error getting configuration dir.: 
> Syntaxe du nom de fichier, de répertoire ou de volume incorrecte
> (Incorrect volume, directory or file name syntax)
>
> I think this message came from 
> AbstractWebappClientConnector.getWebappPath().
> To follow what happens, I try to put some System.out.println(...) in:
> - keel-client\src\java\org\keel\clients\AbstractClientConnector.java
> - 
> keel-client\src\java\org\keel\clients\webapp\AbstractWebappClientConnector.java 
>
> - clnt-struts\src\java\org\keel\clients\struts\StrutsClientConnector.java
>
> They are compiled but only the last one print the new messages on the 
> console... And I don't see where Keel takes the old classe versions!

I removed all the keel-keel-client-2.0.jar and keel-common-2.0.jar files 
I found under KEEL_HOME directory, and now it's ok: I get the expected 
messages. It seems that one of the final jar file is not updated correctly.

Next step.

Now I got this error: Could not return a reference to the Component 
(Key='org.keel.services.persist.PersistentFactory/*')

But the hsql files are created. I tried with a keel.properties file and
jdbc.keel-dbpool.dburl=jdbc:hsqldb:./db/keel-hsqldb
No difference.

Any idea?

Pierre

PS:
[INFO] Struts Client Connector starting.
[DEBUG] Regular form parameter 'model', 'createdb'
[DEBUG] Standard Dyna Form...
[DEBUG] Cookie 'JSESSIONID', value '23D765AA2F3EAE53B1E01FA4193AB96F'
[INFO] Configuring Client 1
[KeelStarter] keel.config.dir = 
'C:\DEV\keel\keel-build\TEST\webapp\WEB-INF\keel\server\conf'
[KeelStarter] Keel Server Classpath directory: 
C:\DEV\keel\keel-build\TEST\webapp\WEB-INF\keel\server\lib\

[...]

[KeelStarter] JAR: xmlParserAPIs-2.6.2.jar
[KeelContainerFactory] Initializing Keel Container...
[KeelContainerFactory] Building configurations...
[KeelContainerFactory] Reading 
C:\DEV\keel\keel-build\TEST\webapp\WEB-INF\keel\server\conf
[KeelContainerFactory] Reading configuration overrides from 
C:\DEV\keel\keel-build\TEST
[KeelContainerFactory]  No override file 
C:\DEV\keel\keel-build\TEST/roles.properties found - no overrides 
applied to roles
[KeelContainerFactory] Reading configuration overrides from 
C:\DEV\keel\keel-build\TEST
[KeelContainerFactory]  No override file 
C:\DEV\keel\keel-build\TEST/keel.properties found - no overrides applied 
to keel
[KeelContainerFactory] Reading configuration overrides from 
C:\DEV\keel\keel-build\TEST
[KeelContainerFactory]  No override file 
C:\DEV\keel\keel-build\TEST/logkit.properties found - no overrides 
applied to logkit
[KeelContainerFactory] Reading configuration overrides from 
C:\DEV\keel\keel-build\TEST
[KeelContainerFactory]  No override file 
C:\DEV\keel\keel-build\TEST/instrument.properties found - no overrides 
applied to instrument
[KeelContainerFactory] Setting system property 
'java.security.auth.login.config' to 
'C:\DEV\keel\keel-build\TEST\webapp\WEB-INF\keel\server\conf/jaas.config'
[KeelContainerFactory] Setting system property 
'java.security.krb5.realm' to 'YOUR.REALM'
[KeelContainerFactory] Setting system property 'java.security.krb5.kdc' 
to 'YOUR.KDC'
[KeelContainerFactory] Setting system property 'model.timeout' to '60'
[DEBUG] No cookies returned
[ERROR] No elements in response from server
[ERROR] Stack for error from createdb, Key: 'Exception during model 
execution Message: Could not return a reference to the Component 
(Key='org.keel.services.persist.PersistentFactory/*')
org.keel.services.model.ModelException: Could not return a reference to 
the Component (Key='org.keel.services.persist.Persis
tentFactory/*')
        at 
org.keel.services.model.defaultmodel.DefaultModelRequest.getService(DefaultModelRequest.java:417)
        at org.keel.models.util.CreateDB.execute(CreateDB.java:43)
        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.avalon.fortress.impl.factory.PassThroughInvocationHandler.invoke(PassThroughInvocationHandler.java:68)

        at $Proxy3.execute(Unknown Source)
        at 
org.keel.services.model.defaultmodel.DefaultModelRequest.execute(DefaultModelRequest.java:182)
        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.avalon.fortress.impl.factory.PassThroughInvocationHandler.invoke(PassThroughInvocationHandler.java:68)

        at $Proxy1.execute(Unknown Source)
        at 
org.keel.servers.direct.KeelDirectServer.execute(KeelDirectServer.java:230)
        at 
org.keel.servers.direct.KeelDirectServer$MultiThreadedProcessor.run(KeelDirectServer.java:273)

-----------------------------------------
org.apache.avalon.framework.service.ServiceException: Could not return a 
reference to the Component (Key='org.keel.services.
persist.PersistentFactory/*')
        at 
org.apache.avalon.fortress.impl.lookup.FortressServiceManager.lookup(FortressServiceManager.java:117)
        at 
org.keel.core.container.KeelServiceManager.lookup(KeelServiceManager.java:95)
        at 
org.keel.core.container.AbstractKeelServiceable.getService(AbstractKeelServiceable.java:113)
        at 
org.keel.services.model.defaultmodel.DefaultModelRequest.getService(DefaultModelRequest.java:415)
        at org.keel.models.util.CreateDB.execute(CreateDB.java:43)
        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.avalon.fortress.impl.factory.PassThroughInvocationHandler.invoke(PassThroughInvocationHandler.java:68)

        at $Proxy3.execute(Unknown Source)
        at 
org.keel.services.model.defaultmodel.DefaultModelRequest.execute(DefaultModelRequest.java:182)
        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.avalon.fortress.impl.factory.PassThroughInvocationHandler.invoke(PassThroughInvocationHandler.java:68)

        at $Proxy1.execute(Unknown Source)
        at 
org.keel.servers.direct.KeelDirectServer.execute(KeelDirectServer.java:230)
        at 
org.keel.servers.direct.KeelDirectServer$MultiThreadedProcessor.run(KeelDirectServer.java:273)
Caused by: org.keel.services.persist.PersistenceException: Role 
'org.keel.services.persist.DatabaseType' does not have an im
plementation with id/hint 'keel-dbtype'. It's available implementations 
are keel-dbtype-informix, keel-dbtype-oracle, keel-d
btype-hsqldb, keel-dbtype-mysql, keel-dbtype-postgresql, 
keel-dbtype-sqlserver. (Key='org.keel.services.persist.DatabaseType
/keel-dbtype')
        at 
org.keel.services.persist.base.AbstractPersistentFactory.initialize(AbstractPersistentFactory.java:446)
        at 
org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:283)
        at 
org.apache.avalon.fortress.impl.handler.ComponentFactory.newInstance(ComponentFactory.java:184)
        at 
org.apache.avalon.fortress.impl.factory.ProxyObjectFactory.newInstance(ProxyObjectFactory.java:54)
        at 
org.apache.avalon.fortress.impl.handler.AbstractComponentHandler.newComponent(AbstractComponentHandler.java:246)
        at 
org.apache.avalon.fortress.impl.handler.ThreadSafeComponentHandler.doPrepare(ThreadSafeComponentHandler.java:40)
        at 
org.apache.avalon.fortress.impl.handler.AbstractComponentHandler.prepareHandler(AbstractComponentHandler.java:147
)
        at 
org.apache.avalon.fortress.impl.handler.AbstractComponentHandler.get(AbstractComponentHandler.java:177)
        at 
org.apache.avalon.fortress.impl.handler.LEAwareComponentHandler.get(LEAwareComponentHandler.java:96)
        at 
org.apache.avalon.fortress.impl.lookup.FortressServiceManager.lookup(FortressServiceManager.java:99)
        ... 19 more







http://keelframework.org/documentation.shtml
Keelgroup mailing list
[email protected]
http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com
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.