Hi,

I'm a new maven user and I have a plugin for 1.0.2 that is having trouble 
finding it's jars in a local repository even though I've defined them in the 
<dependencies>.  It's purpose is to extract business rules from a local rule 
repository and then package & deploy them to a remote server.

Appended is the output of '-e', it's reporting that it can't find one of the 
jndi classes.  This class is in jnp-client-4.0.jar and I've included this in 
the project.xml dependency list.  I know it's finding it because if I mangle 
the name it carps about not finding it.  The jellybean works thru a test class 
in eclipse so I don't believe it's a code issue.

What puzzles me is that there are other outside classes used in the bean before 
the jndi context that are found on the classpath.

Can someone help me get this jellybean's classpath working?

Thanks,
Darren

If it helps, here's my plugin.jelly file:

<?xml version="1.0"?>

<project   
  xmlns:ant="jelly:ant"
  xmlns:define="jelly:define"
  xmlns:jrulesdeployer="jrulesdeployer"
  >
  
  <define:taglib uri="jrulesdeployer">
    <define:jellybean
      name="jrulesdeployer"
      className="com.emdeon.phoenix.jrules.deploy.JRulesRuleAppDeployer"
      method="exportRuleApps"
      />
  </define:taglib>
  
  <goal name="jrules-ruleapp-quality-deploy" description="Deploy Quality 
Measures IRL files">  
    <jrulesdeployer:jrulesdeployer
        var="rd"
        repositoryPath="${medOne.jrules.deploy.quality.repositoryPath}"
        
ruleAppMajorVersion="${medOne.jrules.deploy.quality.ruleApp.majorVersion}"
        
ruleAppMinorVersion="${medOne.jrules.deploy.quality.ruleApp.minorVersion}"
      />
  </goal>
</project>  

Stack trace:

BUILD FAILED
javax.naming.NoInitialContextException: Cannot instantiate class: 
org.jnp.interfaces.NamingContextFactory [Root exception is 
java.lang.ClassNotFoundException: org/jnp/interfaces/NamingContextFactory]
        at 
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:652)
        at 
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
        at javax.naming.InitialContext.init(InitialContext.java:219)
        at javax.naming.InitialContext.<init>(InitialContext.java:195)
        at 
com.emdeon.phoenix.jrules.deploy.JRulesRuleAppDeployer.connect(JRulesRuleAppDeployer.java:92)
        at 
com.emdeon.phoenix.jrules.deploy.JRulesRuleAppDeployer.exportRuleApps(JRulesRuleAppDeployer.java:70)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at 
org.apache.commons.jelly.impl.DynamicBeanTag.doTag(DynamicBeanTag.java:230)
        at 
org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:145)
        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
        at 
org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:79)
        at 
org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:110)
        at com.werken.werkz.Goal.fire(Goal.java:639)
        at com.werken.werkz.Goal.attain(Goal.java:575)
        at com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:193)
        at 
org.apache.maven.jelly.tags.werkz.MavenAttainGoalTag.doTag(MavenAttainGoalTag.java:127)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
        at 
org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:79)
        at 
org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:110)
        at com.werken.werkz.Goal.fire(Goal.java:639)
        at com.werken.werkz.Goal.attain(Goal.java:575)
        at 
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:671)
        at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
        at org.apache.maven.cli.App.doMain(App.java:488)
        at org.apache.maven.cli.App.main(App.java:1239)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at com.werken.forehead.Forehead.run(Forehead.java:551)
        at com.werken.forehead.Forehead.main(Forehead.java:581)
Caused by: java.lang.ClassNotFoundException: 
org/jnp/interfaces/NamingContextFactory
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:219)
        at 
com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:42)
        at 
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:649)
        ... 34 more
File...... C:\Documents and 
Settings\-DKing\.maven\cache\jrules-ruleapp-deploy-1.0\plugin.jelly
Element... jrulesdeployer:jrulesdeployer
Line...... 32
Column.... 9
Cannot instantiate class: org.jnp.interfaces.NamingContextFactory
Total time: 5 seconds
Finished at: Thu Apr 06 16:48:30 EDT 2006

C:\projects\medOne 1.0\dev\src\master-build>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to