login button

NullPointerException when starting with Apache Derby

Forums :

I am running on JBoss 3.2 with Apache Derby database, I have completed all the steps required as per the User guide at http://wso2.org/project/registry/1.1/docs/userguide.html. And there are no errors on console when I start JBoss. But I get the error when I point my browser to http://localhost:8888/wso2/web
Any idea?
-----------------------------
HTTP Status 500 -
type Exception report message
description The server encountered an internal error () that prevented it from fulfilling this request. exception
java.lang.NullPointerException
org.wso2.registry.web.actions.AbstractRegistryAction.getRegistry(AbstractRegistryAction.java:54)
org.wso2.registry.web.actions.ResourceDetailsAction.execute(ResourceDetailsAction.java:93)
org.wso2.registry.web.ControllerServlet.forwardToResources(ControllerServlet.java:887)
org.wso2.registry.web.ControllerServlet.doGet(ControllerServlet.java:475)
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

note The full stack trace of the root cause is available in the JBossWeb/2.0.0.GA_CP05 logs.
-------------------------------

Thanks
Viral

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Hi Viral,Did you copy

Hi Viral,

Did you copy derby.jar, derbyclient.jar and derbynet.jar files in to WEB-INF/lib?. If not, please copy those jar files and restart the derby and jboss servers.

Registry 1.1,itself creates it's underlying database when it initialize. Registry will check if the necessary tables are created at the start up. If not, it will create all necessary tables.So Follow the below step for automatic DB creation and check.

1. Edit the registry.xml file and include derbyDB configuration as of user guide.
2. Copy derby.jar, derbyclient.jar and derbynet.jar files in to WEB-INF/lib
3. Start derby server.
4. Start Jboss

hope this will helpful.

-Krishantha.

I missed some steps in above

I missed some steps in above reply. Before proceed with above steps I recommend you to create a directory called 'wso2registry.war' inside the jboss /server/default/deploy/ and extract the wso2registry war file content to newly created directory. Then follow the steps as mentioned in the above reply.

If you are still encountering the issue,pls reply with your environmental details (versions of derby,OS,browser and jdk)

Yes, that works. thanks

I was missing the last step of creating the directory with wso2registry.war filename. Yes, that works. thanks

Viral

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.