I was following tutorial from "Getting Started with Roo" book and everthing went fine until I began moving project root to server, when error 404 is coming..
scaffold command ended successfully, I am not able to undersnand why this URL is giving 404 error -Code:persistence setup --provider HIBERNATE --database MYSQL --userName root --password entity --class ~.model.Customer field string --fieldName lastName --notNull field string --fieldName firstName --notNull database reverse engineer --package ~.domain --schema rootest controller scaffold --entity ~.domain.Customer --class ~.web.CustomerController
http://localhost:8080/crm/customers
CustomerController ->
Server Log message:Code:@RooWebScaffold(path = "customers", formBackingObject = Customer.class) @RequestMapping("/customers") @Controller public class CustomerController { }
Also "perform eclipse" command sys -Code:Failed to instantiate SLF4J LoggerFactory Reported exception: java.lang.NoClassDefFoundError: org/apache/log4j/Level at org.slf4j.LoggerFactory.bind(LoggerFactory.java:121) at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:111) at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:268) at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:241) at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:156) at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:132) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:272) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4723) at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226) at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Level at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1678) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1523) ... 17 more
Code:Cannot run program "mvn.bat" (in directory "C:\Users\viji\Documents\workspace-sts-2.8.1.RELEASE\crm"): CreateProcess error=2, The system cannot find the file specified


Reply With Quote
