The following exception is thrown during the initialization of WSO2 registry. This is thrown when MySQL database is configured as the registry datastore.
The following changes were made to configure mysql database as the registry datastore
1. create a database wso2registrydb in MySQL and run the database script provided - mysql-complete.sql
2. create a datasource - jdbc/WSO2RegistryDB [1] -in tomcat pointing to the MySQL database
3. modify registry.xml to include mysql config
<dbconfig name="mysql">
<url>jdbc:mysql://localhost:3306/wso2registrydb</url>
<userName>root</userName>
<password>root</password>
<driverName>com.mysql.jdbc.Driver</driverName>
</dbconfig>
4. modify registry.xml to set the current config as
<currentConfig>mysql</currentConfig>
During the initialization of the registry from the browser, i get the following exception.
org.wso2.registry.RegistryException: Could not check authentication.
Caused by Null Realm not permitted.
at org.wso2.registry.secure.SecureRegistry.<init>(SecureRegistry.java:91
)
at org.wso2.registry.web.actions.AbstractRegistryAction.getRegistry(Abst
ractRegistryAction.java:55)
at org.wso2.registry.web.actions.ResourceDetailsAction.execute(ResourceD
etailsAction.java:86)
at org.wso2.registry.web.ControllerServlet.forwardToResources(Controller
Servlet.java:784)
at org.wso2.registry.web.ControllerServlet.doGet(ControllerServlet.java:
416)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:174)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:174)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:874)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
rocessConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
lowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:689)
at java.lang.Thread.run(Thread.java:595)
Caused by: org.wso2.usermanager.UserManagerException: Null Realm not permitted.
at org.wso2.usermanager.acl.realm.AuthorizingRealm.init(AuthorizingRealm
.java:104)
at org.wso2.registry.secure.SecureRegistry.<init>(SecureRegistry.java:77
)
... 20 more
Have I missed something here? There are no records in any of the tables (incl um_users) in the wso2registrydb.
Thanks