1st question: if i do a mvn tomcat:run does this give me the ability to edit
files and have the application reload, so i can see the changes in real time
e.g. grails, rails, jetty plugin i believe?

2nd problem:
im trying to get the tomcat maven plugin to run with my site.

i run:
mvn tomcat:run

everything seems like its going to run fine until spring tries to load some
environment variables (application context):
<bean id="rimPropertyUrl"
class="org.springframework.jndi.JndiObjectFactoryBean">
        <property name="jndiName">
            <value>java:comp/env/mysitePropertiesLocation </value>
        </property>
    </bean>


that i have stored in my context file which i have placed in
"src/main/webapp/META-INF/context.xml" (context.xml)
<Environment
        name="mysitePropertiesLocation"
        type="java.lang.String"
        value="file:///path/to/dir/mysite.properties"
        override="true"/>

The properties file is where it should be.

the error i get is this:

> nested exception is javax.naming.NoInitialContextException: Need to specify
> class name in environment or system property, or as an applet parameter, or
> in an application resource file:  java.naming.factory.initial


this isn't a spring problem because i can run the application fine by
storing the context file in TOMCAT_HOME/conf/Catalina/localhost.

is there something else i can try to get this to work?


Thanks in advance
j

Reply via email to