• Post Reply Bookmark Topic Watch Topic
  • New Topic

Running "Enterprise Application Client" outside NetBeans

 
Michal Glowacki
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I've created Enterprise Application Client project in NB 5.5.1. It uses few entity and session beans as well as postgres datasource. AS is JBoss 4.0.5. App works great when run under NB ("Run" command), but now I'd like to move it to production server where it will be run every x minutes. I was trying for over 5h without luck. All the time, I get different errors. The one which I can't get rid of is: NoClassDefinitionException: tools/ServiceLocator. That's my jar file with functions to get datasource and ejb interfaces. Ok, I need to specify path to it.

When I've added path to manifest file I had exception that main class of my app can't be found. When I've tried java -cp ServiceLocator.jar -jar myapp.jar I had still an error 'NoClassDefinitionException: tools/ServiceLocator'.

Please somebody help, I really don't know what more can I try.
 
Mark Spritzler
ranger
Sheriff
Posts: 17290
9
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, if you can get Netbeans to do all of it with run, then all you need to do is build the entire project make it create an .ear file and just copy the ear file to the JBoss deploy directory. That is really all that NetBeans is doing underneath the cover when you click "run" It really doesn't do any magic.

Mark
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!