Hi,
in Tomcat environment the System property java.class.path is not valued.
For this reason you should specify the path where find descriptors in the
applicationConfig.xml in the bean SchemaClassResolver:
<bean class=3D"org.romaframework.core.schema.SchemaClassResolver"
id=3D"SchemaClassResolver"
singleton=3D"true">
<property name=3D"classpaths">
<list>
<!-- ADDITIONAL PATHS TO DISCOVER SCHEMA CLASSES -->
<value>C:\Programmi\Apache Software Foundation\Tomcat
5.5\webapps\CreditRescue\WEB-INF\classes</value>
<value>C:\Programmi\Apache Software Foundation\Tomcat
5.5\webapps\CreditRescue\WEB-INF\lib\*</value>
</list>
</property>
</bean>
This feature is not yet documented, I know... I'll update the WiKi ASAP.
bye,
Luca Garulli
Blogging on: http://zion-city.blogspot.com
http://www.RomaFramework.org - The new way to build Java applications
http://www.Pro-Netics.com (member of Orixo.com - The XML business allianc=
e)
http://www.OrienTechnologies.com - Light ODBMS, All in one JDO solution
On Tue, July 25, 2006 0:27, David Bennett said:
> After going through the tutorial, I am receiving the following error
> when deploying the tutorial 'blog' app to Tomcat 5.5...
>
> 17:19:23,084 ERROR [[FEServlet]] Servlet.service() for servlet
> FEServlet threw exception
> org.romaframework.core.exception.ConfigurationNotFoundException: Clas=
s
> HomePage
> at org.romaframework.core.schema.SchemaClass.<init>(Unknown Source)
> at org.romaframework.core.schema.SchemaManager.createClassInfo(Unknow=
n
> Source)
> at org.romaframework.core.schema.SchemaManager.getClassInfo(Unknown
> Source)
> at org.romaframework.core.schema.SchemaManager.getClassInfo(Unknown
> Source)
> at org.romaframework.core.flow.ObjectContext.show(Unknown Source)
> at org.romaframework.core.flow.ObjectContext.show(Unknown Source)
> at
> com.bensoft.romablog.CustomApplicationConfiguration.startUserSession(Cu=
s
> tomApplicationConfiguration.java:29)
>
> My CustomApplicationConfiguration is as follows:
>
> 1 package com.bensoft.romablog;
> 2
> 3 import org.romaframework.aspect.view.Desktop;
> 4 import org.romaframework.aspect.view.echo2.desktop.BasicDesktop=
;
> 5 import org.romaframework.core.config.ApplicationConfiguration;
> 6 import org.romaframework.core.flow.ObjectContext;
> 7
> 8
> 9 public class CustomApplicationConfiguration implements
> ApplicationConfiguration {
> 10 public void startup() {
> 11 // INSERT APPLICATION STARTUP HERE
> 12 }
> 13
> 14 public void shutdown() {
> 15 // INSERT APPLICATION SHUTDOWN HERE
> 16 }
> 17
> 18 /**
> 19 * Return initial desktop.
> 20 */
> 21 public Desktop getDesktop() {
> 22 return new BasicDesktop();
> 23 }
> 24
> 25 /**
> 26 * Callback called on every user connected to the applicatio=
n
> 27 */
> 28 public void startUserSession() {
> 29 ObjectContext.getInstance().show( new
> com.bensoft.romablog.view.domain.HomePage() );
> 30 }
> 31 }
>
> I have tried with both the import and the fully qualified class name.
>
> Any ideas?
> --Dave
>
>
>
> -----------------------------------------------------------------------=
--
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D=
DEVDEV
> _______________________________________________
> RomaFramework-development mailing list
> Rom...@li...
> https://lists.sourceforge.net/lists/listinfo/romaframework-development
>
|