[wsas-java-dev] [jira] Closed: (WSAS-225) wso2wsas startup fails due to incorrectly initialized wso2wsas.home variable

Saminda Wishwajith Abeyruwan (JIRA) jira at wso2.org
Mon May 14 07:23:02 PDT 2007


     [ http://www.wso2.org/jira/browse/WSAS-225?page=all ]

Saminda Wishwajith Abeyruwan  closed WSAS-225.
----------------------------------------------

    Resolution: Fixed

Problem being fixed in Commons project 

> wso2wsas startup fails due to incorrectly initialized wso2wsas.home variable
> ----------------------------------------------------------------------------
>
>                 Key: WSAS-225
>                 URL: http://www.wso2.org/jira/browse/WSAS-225
>             Project: WSO2 WSAS-Java
>          Issue Type: Bug
>    Affects Versions: Nightly
>         Environment: winxp, jdk15
>            Reporter: Charitha Kankanamge
>         Assigned To: Saminda Wishwajith Abeyruwan 
>            Priority: Blocker
>         Attachments: screenshot.JPG
>
>
> wso2wsas startup fails due to incorrectly initialized wso2wsas.home variable. Instead of initializing wso2wsas.home to the correct installation directory, ${wso2wsas.home} folder is created at the root. Because of that, the following errors can be seen when running wso2wsas.bat
> ERROR [2007-05-11 12:12:14,587]  Database '../database/WSO2WSAS_DB' not found.
> FATAL [2007-05-11 12:12:14,603]  Cannot start WSO2 WSAS
> org.hibernate.exception.GenericJDBCException: Cannot open connection
>         at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)
>         at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)
>         at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
>         at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29)
>         at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:420)
>         at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:144)
>         at org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:129)
>         at org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:57)
>         at org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1290)
>         at org.wso2.wsas.persistence.dao.ServerConfigurationDAO.getConfigurationProperty(ServerConfigurationDAO.java:36)
>         at org.wso2.wsas.persistence.PersistenceManager.getConfigurationProperty(PersistenceManager.java:349)
>         at org.wso2.wsas.ServerManager.initLoggingConfiguration(ServerManager.java:303)
>         at org.wso2.wsas.ServerManager.start(ServerManager.java:109)
>         at org.wso2.wsas.MainServlet.start(MainServlet.java:191)
>         at org.wso2.wsas.MainServlet.init(MainServlet.java:163)
>         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
>         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
>         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3915)
>         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4176)
>         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
>         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
>         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
>         at org.wso2.wsas.TomcatRepositoryListener.run(TomcatRepositoryListener.java:104)
>         at java.lang.Thread.run(Thread.java:595)Caused by: SQL Exception: Database '../database/WSO2WSAS_DB' not found.
>         at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
>         at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
>         at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source)
>         at org.apache.derby.impl.jdbc.EmbedConnection.newSQLException(Unknown Source)
>         at org.apache.derby.impl.jdbc.EmbedConnection.<init>(Unknown Source)
>         at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(Unknown Source)
>         at org.apache.derby.jdbc.Driver30.getNewEmbedConnection(Unknown Source)
>         at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source)
>         at java.sql.DriverManager.getConnection(DriverManager.java:525)
>         at java.sql.DriverManager.getConnection(DriverManager.java:140)
>         at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110)
>         at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:417)
>         ... 19 more
> FATAL [2007-05-11 12:12:14,603]  WSO2 WSAS start failed
> org.wso2.utils.ServerException: Cannot start WSO2 WSAS
>         at org.wso2.wsas.ServerManager.start(ServerManager.java:176)
>         at org.wso2.wsas.MainServlet.start(MainServlet.java:191)
>         at org.wso2.wsas.MainServlet.init(MainServlet.java:163)
>         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
>         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
>         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3915)
>         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4176)
>         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
>         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
>         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
>         at org.wso2.wsas.TomcatRepositoryListener.run(TomcatRepositoryListener.java:104)
>         at java.lang.Thread.run(Thread.java:595)
> Caused by: org.hibernate.exception.GenericJDBCException: Cannot open connection        at org.hibernate.exception.SQLStateConverter.handledNonSpecificException
> (SQLStateConverter.java:103)
>         at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)
>         at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
>         at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29)
>         at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:420)
>         at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:144)
>         at org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:129)
>         at org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:57)
>         at org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1290)
>         at org.wso2.wsas.persistence.dao.ServerConfigurationDAO.getConfiguration
> Property(ServerConfigurationDAO.java:36)
>         at org.wso2.wsas.persistence.PersistenceManager.getConfigurationProperty(PersistenceManager.java:349)
>         at org.wso2.wsas.ServerManager.initLoggingConfiguration(ServerManager.java:303)
>         at org.wso2.wsas.ServerManager.start(ServerManager.java:109)
>         ... 11 more
> This does not occur frequently since the same wsas version was running without having this error in my machine.
> The attached screen shot shows the ${wso2wsas.home} directory is created at  ..wso2wsas-1.2-SNAPSHOT/

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://www.wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        




More information about the Wsas-java-dev mailing list