In an attempt to make this simpler I think I made it more confusing. The code I 
am using is from various examples/tutorials.


  | URL url = new File( "pathToMyBuildOutputDir" ).toURL();
  | EJB3StandaloneBootstrap.boot(null);
  | EJB3StandaloneBootstrap.deployXmlResource( "coeds-beans.xml" );
  | deployer = new EJB3StandaloneDeployer();
  | 
  | //
  | // Is this possible/correct??
  | deployer.getDeployDirs().add( url );  
  | 
  | deployer.getArchivesByResource().add( "META-INF/persistence.xml" );
  | deployer.create();
  | deployer.start();
  | initialContext = new InitialContext();
  | 

Here is the error I recieve. The error is initiated from deployer.create(); 
Fron debug, I can see that the file does exist, it is a directory and it does 
create a valid local URL. Withouth the added line in question, everything works 
correctly.

  | Caused by: java.lang.NullPointerException
  |     at javax.naming.InitialContext.getURLScheme(Unknown Source)
  |     at javax.naming.InitialContext.getURLOrDefaultInitCtx(Unknown Source)
  |     at javax.naming.InitialContext.lookup(Unknown Source)
  |     at 
org.jboss.ejb3.Ejb3Deployment.initializeManagedEntityManagerFactory(Ejb3Deployment.java:507)
  |     at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:264)
  |     at 
org.jboss.ejb3.embedded.EJB3StandaloneDeployer.create(EJB3StandaloneDeployer.java:381)
  |     at edu.uno.coeds.test.Ejb3Container.startup(Ejb3Container.java:84)
  | 

Thanks again for the help/clarification.



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3918354#3918354

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3918354


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to