From: Rice Y. <ri...@gm...> - 2008-01-21 06:16:00
|
Rice, Rice Yeh wrote: > Then where is the right place to configure the configuration classes? > jetty-web? > You don't need to setup the configuration classes. This is already done for you by the plugin. Is the annotation configuration org.mortbay.jetty.annotations.Configuration included in the plugin? If not, how should I do it? >> Rice Yeh wrote: >>> Hi, >>> I use maven plugin to run my web app. I find jetty always give the >>> following error message >>> >>> 2008-01-19 13:45:45.588::WARN: Configuration problem at <env-entry> >>> <env-entry-name>welcomeMessage</env-entry-name> >>> <env-entry-type>java.lang.String</env-entry-type> >>> <env-entry-value>Hello World from >>> env-entry!</env-entry-value> >>> </env-entry> >>> javax.naming.InvalidNameException : A flat name can only have a single >>> component After a whole day of tracking, I finally find the way to correct this error. It is all about carol, which seems function as jndi implementation for jetty. I have to put the following properties in in carol.properties, which seems only needed in maven plugin environment. carol.start.ns=false carol.start.jndi=false carol.protocols=jrmp carol.start.rmi=false carol.jvm.rmi.local.call=true carol.jndi.java.naming.factory.url.pkgs=org.mortbay.naming Regards, Rice -- View this message in context: http://www.nabble.com/env-entry-not-work-when-using-maven-plugin-tp14967607p14991820.html Sent from the Jetty Support mailing list archive at Nabble.com. |