xvhfeng / run-jetty-run

Automatically exported from code.google.com/p/run-jetty-run
0 stars 0 forks source link

cannot configure a datasource resource for jndi lookup #123

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What is the expected output? What do you see instead?
Configure database resource successfully for JNDI lookup.
I see a "java.lang.ClassNotFoundException: 
org.mortbay.jetty.plus.naming.Resource"

What steps will reproduce the problem?
1.
added  configuration for a datasource resource:
<New id="DefaultDs" class="org.mortbay.jetty.plus.naming.Resource">
    <Arg></Arg>
    <Arg>jdbc/DefaultDs</Arg>

    <Arg>

      <New class="[datasource class]">
        <Set name="serverName"></Set> 
        <Set name="portNumber">50002</Set>
        <Set name="databaseName"></Set>
        <Set name="driverType">4</Set>
        <Set name="user"></Set>
        <Set name="password"></Set>
      </New>

    </Arg>
  </New>  
2.
try to start jetty
3.

What Eclipse version are you using ?
3.7

What Run-Jetty-Run version are you using?
1.3.2

What OS are you using ? 32bit or 64 bit?
Mac 10.6.8 (64bit)

Please provide any additional information below.
I think the plugin is just not packaging the jar:
jetty-plus.jar and jetty-naming.jar?

Original issue reported on code.google.com by arthur....@gmail.com on 27 Feb 2012 at 7:48

GoogleCodeExporter commented 9 years ago
found that enabling the "JNDI Support" in the configuration allowed this to work

Original comment by arthur....@gmail.com on 27 Feb 2012 at 10:34

GoogleCodeExporter commented 9 years ago
Maybe we should default enable it , I am not sure...but anyway you find it. :)

Have a good time.

Original comment by tonylovejava on 28 Feb 2012 at 3:55

GoogleCodeExporter commented 9 years ago

Original comment by tonylovejava on 11 Mar 2012 at 3:39