The sample app is a java app.

Thanks for your ideas - here's where I stand:

1) Is the sample app a native exe? If so, you might be stuck. 

--> Sample app is a java app.

2) Is there a native init method that needs to be called? 
--> native init?  unsure what you mean here..    when I call the method in the sample 
app, it works.  When I call it from my app in jboss, no workie.

3) Are you sure you're looking at the right DLL? 
--> yes

4) Are you sure JBoss is loading it? Try removing it and seeing if you get an 
exception. Try replacing it with a corrupt file (e.g. type a few words into Notepad, 
and save the file with a .DLL extension). This will prove that it's finding the file 
and trying to load it. 

--> yes.  without this .dll, it gives me an unsatisfiedLinkError(CWrapJava.dll).    
When I include the .dll in the jboss/bin directory & point to it through System.load, 
it loads it fine but fails when I call the method.

5) Are you sure you're calling System.loadLibrary before you're calling the native 
method?

Yes.  I've tried this in a static method which got called when the object was loaded 
(constructed ), and also put it in the constructor.




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

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


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to