On Sun, Apr 11, 2010 at 4:08 PM, Benjamin Venditti <[email protected]> wrote: > Hi Francis, > > I figured out why i couldn't start the web-examples in eclipse with tomcat. > It is related to a bug in the WTP ServerTools. Here are the details > https://bugs.eclipse.org/bugs/show_bug.cgi?id=245857 . > > After removing all .svn directories and I successfully tested the > web-examples with eclipse and tomcat 5.5/6.0. > > I agree with you about removing log4j if it doesn't add extra funcionality. > > The only module I haven't tested is the new empire-db-maven-plugin. Is there > a way to execute or start that?
there is an example that uses it > > Thanks in advance. > Benjamin > > > > > Am 11.04.2010 13:55, schrieb Francis De Brabandere: >> >> Hi Benjamin, >> >> Commons logging was indeed only provided on the parent module and in >> scope provided, which indicates that we expect the container or >> runtime environment to provide commons logging. Of course this is >> wrong and I put it to compile scope since commons logging is our main >> logging api. >> >> The implementation we use is log4j and this should normally be in >> "runtime" scope as we don't need it to compile the code. But >> XmlConfiguration seems to depend on Log4j as it actually sets up >> log4j. >> Personally I think this a bad idea. Merging our configuration and that >> of log4j does not bring any added value. Everybody is used to setting >> up log4j in its own configuration file. Therefore I would opt to >> remove that functionality. Anybody against this? >> >> I will cut a new RC later today. >> >> Thanks for having a look at this issue. >> >> On Sat, Apr 10, 2010 at 9:13 PM, Benjamin Venditti >> <[email protected]> wrote: >>> >>> Hi Francis, >>> >>> i tried to run the web-examples with jetty without success (at first). >>> Here is what i did: >>> - removed local maven repository >>> - "mvn clean compile" in the root empire repository >>> - "mvn jetty:run" in empire-db-examples\empire-db-example-struts2 >>> >>> It claims that it cannot find "org/apache/commons/logging/LogFactory" >>> although commons-logging is defined as a dependency within the parent >>> pom.xml. A error logfile is attached to this email for further details. >>> >>> I was curious and just added commons-logging to the pom.xml in >>> empire-db-examples\empire-db-example-struts2 and was quite surprised when >>> i >>> saw that jetty started without complaining. >>> >>> I think i do not know how maven works exactly, but i don't understand why >>> some dependencies e.g. like log4j, are added to both the parent pom.xml >>> and >>> a child pom.xml. >>> >>> I hope i could be of any help. >>> >>> Best regards, >>> Benjamin >>> >>> >>> Am 10.04.2010 12:13, schrieb Francis De Brabandere: >>>> >>>> On Sat, Apr 10, 2010 at 12:55 AM, Benjamin Venditti >>>> <[email protected]> wrote: >>>>> >>>>> Hi there, >>>>> >>>>> just hat a look at the 2.0.6-incubating release. >>>>> >>>>> I successfully tested: >>>>> examples-advanced >>>>> examples-basic >>>>> examples-cxf >>>>> examples-spring >>>>> >>>>> I got an error while testing the CodeGenApp directly. The error will >>>>> only >>>>> occur if "nestTables" or "nestViews" is enabled. I think the problem >>>>> is, >>>>> that we never set the template folder property of the config object to >>>>> a >>>>> default value. Here is a snippet of the error ... >>>>> >>>>> Writing >>>>> >>>>> >>>>> C:\Users\Hermine7\Workspaces\workspace-emp\empire-db-trunk\empire-db-codegen\target\generated\dbsample\org\apache\empire\db\samples\dbsample\SampleDB.java >>>>> at >>>>> >>>>> >>>>> org.apache.empire.db.codegen.CodeGenWriter.writeFile(CodeGenWriter.java:300) >>>>> ERROR [2010/04/10 00:31]: ResourceManager : unable to find >>>>> resource >>>>> '$templateFolder/Table.vm' in any resource loader. at >>>>> >>>>> >>>>> org.apache.velocity.runtime.log.CommonsLogLogChute.log(CommonsLogLogChute.java:96) >>>>> ERROR [2010/04/10 00:31]: #parse(): cannot find template >>>>> '$templateFolder/Table.vm', called at templates/Database.vm[line 75, >>>>> column >>>>> 25] at >>>>> >>>>> >>>>> org.apache.velocity.runtime.log.CommonsLogLogChute.log(CommonsLogLogChute.java:96) >>>>> ERROR [2010/04/10 00:31]: Unable to find resource >>>>> '$templateFolder/Table.vm' at >>>>> >>>>> >>>>> org.apache.empire.db.codegen.CodeGenWriter.writeFile(CodeGenWriter.java:307) >>>>> org.apache.velocity.exception.ResourceNotFoundException: Unable >>>>> to >>>>> find resource '$templateFolder/Table.vm' >>>>> at >>>>> >>>>> >>>>> org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(ResourceManagerImpl.java:483) >>>>> at >>>>> >>>>> >>>>> org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(ResourceManagerImpl.java:354) >>>>> .... >>>> >>>> I'll have a look at the codegen app later this weekend. Maybe we >>>> should also include a howto or a pointer to it for the codegen. >>>> >>>>> >>>>> Unfortunately i was not able to test the web-examples as i alyways got >>>>> an >>>>> error on starting them. I'm not sure if my tomcat installation or >>>>> configuration is messed up, and i'd be happy if someone could help me >>>>> with >>>>> that. Here is also a snippet of the error: >>>>> >>>>> WARNUNG: [SetPropertiesRule]{Server/Service/Engine/Host/Context} >>>>> Setting property 'source' to >>>>> 'org.eclipse.jst.j2ee.server:empire-db-example-struts2' did not find a >>>>> matching property. >>>>> ... >>>>> SCHWERWIEGEND: Exception starting filter struts2 >>>>> java.lang.ClassNotFoundException: >>>>> org.apache.empire.struts2.web.EmpireFilterDispatcher >>>>> at >>>>> >>>>> >>>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387) >>>>> at >>>>> >>>>> >>>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233) >>>>> at >>>>> >>>>> >>>>> org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:249) >>>>> >>>>> >>>>> best regards benjamin >>>>> >>>> >>>> I'll also have a look at this. I never tested using tomcat, always >>>> used mvn jetty:run >>>> Thanks for testing! >>>> >>>> >>> >>> >> >> >> > > -- http://www.somatik.be Microsoft gives you windows, Linux gives you the whole house.
