File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Application Frameworks and the fly likes Help me to fix this code Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Other Application Frameworks
Reply Bookmark "Help me to fix this code" Watch "Help me to fix this code" New topic
Author

Help me to fix this code

Peter penzov
Greenhorn

Joined: Jul 19, 2011
Posts: 6
Hi,
I'm new to java programming. I need a help about implementing OSGI module and EJB. I wrote this simple OSGI bundle:



This is the Activator class:




This is the code which calls the OSGI bundle:



The idea is to create a login form which calls OSGI bundle and plain password string is passed to the bundle. The bundle takes the string and converts it to SHA-256 encrypted string. Then the encrypted string is returned to the login bean. I know that it's not a good idea to work on something that you don't know but this is a part of a open source project and this part nobody wants to do it. I donate my free time for this project.

I use JBoss 7.1.0 for application server and Netbeans 7.1. This is the error stack:



I will be glad if someone assist me for the OSGI code.
Write me if you have any questions.

best wishes
Peter
 
 
subject: Help me to fix this code
 
Threads others viewed
The connection does not exist + as400 + hibernate
Injection problem - not quite sure if this is something i should be using injection for
where to handle session here?
EntityManager is null!! what can be the problem?
All of a sudden many of my imports are underlined in red, that goes away when I retype them..
developer file tools