Unable to load context file for database

352 views

To whom it may concern:

 

I am using Ganib 5.1

running xampp on windows

18 Mar 2015 12:57:11 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Users\82080097\Downloads\Zip Files\Ganib-5.1-with-jre\jre6\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Broadcom\Broadcom 802.11 Network Adapter\Driver
18 Mar 2015 12:57:11 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
18 Mar 2015 12:57:11 PM org.apache.coyote.AbstractProtocol init
SEVERE: Failed to initialize end point associated with ProtocolHandler ["http-bio-8080"]
java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind
    at java.net.PlainSocketImpl.socketBind(Native Method)
    at java.net.PlainSocketImpl.bind(Unknown Source)
    at java.net.ServerSocket.bind(Unknown Source)
    at java.net.ServerSocket.<init>(Unknown Source)
    at java.net.ServerSocket.<init>(Unknown Source)
    at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:49)
    at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:394)
    at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:623)
    at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:434)
    at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119)
    at org.apache.catalina.connector.Connector.initInternal(Connector.java:981)
    at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
    at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)
    at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
    at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:814)
    at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:640)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:665)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455)
18 Mar 2015 12:57:11 PM org.apache.catalina.core.StandardService initInternal
SEVERE: Failed to initialize connector [Connector[HTTP/1.1-8080]]
org.apache.catalina.LifecycleException: Failed to initialize component [Connector[HTTP/1.1-8080]]
    at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:106)
    at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)
    at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
    at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:814)
    at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:640)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:665)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455)
Caused by: org.apache.catalina.LifecycleException: Protocol handler initialization failed
    at org.apache.catalina.connector.Connector.initInternal(Connector.java:983)
    at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
    ... 12 more
Caused by: java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind
    at java.net.PlainSocketImpl.socketBind(Native Method)
    at java.net.PlainSocketImpl.bind(Unknown Source)
    at java.net.ServerSocket.bind(Unknown Source)
    at java.net.ServerSocket.<init>(Unknown Source)
    at java.net.ServerSocket.<init>(Unknown Source)
    at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:49)
    at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:394)
    at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:623)
    at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:434)
    at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119)
    at org.apache.catalina.connector.Connector.initInternal(Connector.java:981)
    ... 13 more
18 Mar 2015 12:57:11 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
18 Mar 2015 12:57:11 PM org.apache.coyote.AbstractProtocol init
SEVERE: Failed to initialize end point associated with ProtocolHandler ["ajp-bio-8009"]
java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind
    at java.net.PlainSocketImpl.socketBind(Native Method)
    at java.net.PlainSocketImpl.bind(Unknown Source)
    at java.net.ServerSocket.bind(Unknown Source)
    at java.net.ServerSocket.<init>(Unknown Source)
    at java.net.ServerSocket.<init>(Unknown Source)
    at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:49)
    at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:394)
    at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:623)
    at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:434)
    at org.apache.catalina.connector.Connector.initInternal(Connector.java:981)
    at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
    at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)
    at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
    at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:814)
    at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:640)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:665)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455)
18 Mar 2015 12:57:11 PM org.apache.catalina.core.StandardService initInternal
SEVERE: Failed to initialize connector [Connector[AJP/1.3-8009]]
org.apache.catalina.LifecycleException: Failed to initialize component [Connector[AJP/1.3-8009]]
    at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:106)
    at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)
    at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
    at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:814)
    at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:640)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:665)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455)
Caused by: org.apache.catalina.LifecycleException: Protocol handler initialization failed
    at org.apache.catalina.connector.Connector.initInternal(Connector.java:983)
    at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
    ... 12 more
Caused by: java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind
    at java.net.PlainSocketImpl.socketBind(Native Method)
    at java.net.PlainSocketImpl.bind(Unknown Source)
    at java.net.ServerSocket.bind(Unknown Source)
    at java.net.ServerSocket.<init>(Unknown Source)
    at java.net.ServerSocket.<init>(Unknown Source)
    at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:49)
    at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:394)
    at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:623)
    at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:434)
    at org.apache.catalina.connector.Connector.initInternal(Connector.java:981)
    ... 13 more
18 Mar 2015 12:57:11 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 771 ms
18 Mar 2015 12:57:11 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
18 Mar 2015 12:57:11 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.47
18 Mar 2015 12:57:11 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\Users\82080097\Downloads\Zip Files\Ganib-5.1-with-jre\tomcat\webapps\host-manager
18 Mar 2015 12:57:13 PM org.apache.tomcat.websocket.server.WsSci onStartup
INFO: JSR 356 WebSocket (Java WebSocket 1.0) support is not available when running on Java 6. To suppress this message, run Tomcat on Java 7, remove the WebSocket JARs from $CATALINA_HOME/lib or add the WebSocketJARs to the tomcat.util.scan.DefaultJarScanner.jarsToSkip property in $CATALINA_BASE/conf/catalina.properties. Note that the deprecated Tomcat 7 WebSocket API will be available.
18 Mar 2015 12:57:13 PM org.apache.catalina.util.SessionIdGenerator createSecureRandom
INFO: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [174] milliseconds.
18 Mar 2015 12:57:13 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\Users\82080097\Downloads\Zip Files\Ganib-5.1-with-jre\tomcat\webapps\manager
18 Mar 2015 12:57:14 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\Users\82080097\Downloads\Zip Files\Ganib-5.1-with-jre\tomcat\webapps\ROOT
18 Mar 2015 12:58:25 PM org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromClass
INFO: Creating Service {http://soa.form.ganib.com/}IFormExportServiceService from class com.ganib.form.soa.IFormExportService
18 Mar 2015 12:58:26 PM org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromClass
INFO: Creating Service {http://soa.form.ganib.com/}IFormImportServiceService from class com.ganib.form.soa.IFormImportService
18 Mar 2015 12:58:26 PM org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromClass
INFO: Creating Service {http://oauth.soa.ganib.com/}OauthLoginServiceImplService from class com.ganib.soa.oauth.IOauthLoginservice
18 Mar 2015 12:58:27 PM org.apache.cxf.endpoint.ServerImpl initDestination
INFO: Setting the server's publish address to be /OAuthLogin
18 Mar 2015 12:58:41 PM org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromClass
INFO: Creating Service {http://soa.form.ganib.com/}IFormExportServiceService from class com.ganib.form.soa.IFormExportService
18 Mar 2015 12:58:41 PM org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromClass
INFO: Creating Service {http://soa.form.ganib.com/}IFormImportServiceService from class com.ganib.form.soa.IFormImportService
18 Mar 2015 12:58:41 PM org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromClass
INFO: Creating Service {http://oauth.soa.ganib.com/}OauthLoginServiceImplService from class com.ganib.soa.oauth.IOauthLoginservice
18 Mar 2015 12:58:41 PM org.apache.cxf.endpoint.ServerImpl initDestination
INFO: Setting the server's publish address to be /OAuthLogin
18 Mar 2015 12:58:50 PM org.apache.cxf.transport.servlet.CXFServlet updateContext
INFO: Load the bus with application context
18 Mar 2015 12:58:50 PM org.apache.cxf.bus.spring.BusApplicationContext getConfigResources
INFO: No cxf.xml configuration file detected, relying on defaults.
18 Mar 2015 12:58:50 PM org.apache.cxf.transport.servlet.AbstractCXFServlet replaceDestinationFactory
INFO: Servlet transport factory already registered
18 Mar 2015 12:58:59 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 107767 ms
18 Mar 2015 12:58:59 PM org.apache.catalina.core.StandardServer await
SEVERE: StandardServer.await: create[localhost:8005]:
java.net.BindException: Address already in use: JVM_Bind
    at java.net.PlainSocketImpl.socketBind(Native Method)
    at java.net.PlainSocketImpl.bind(Unknown Source)
    at java.net.ServerSocket.bind(Unknown Source)
    at java.net.ServerSocket.<init>(Unknown Source)
    at org.apache.catalina.core.StandardServer.await(StandardServer.java:427)
    at org.apache.catalina.startup.Catalina.await(Catalina.java:779)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:725)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:456)
18 Mar 2015 12:58:59 PM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["http-bio-8080"]
18 Mar 2015 12:58:59 PM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["ajp-bio-8009"]
18 Mar 2015 12:58:59 PM org.apache.catalina.core.StandardService stopInternal
INFO: Stopping service Catalina
18 Mar 2015 12:58:59 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [] appears to have started a thread named [MySQL Statement Cancellation Timer] but has failed to stop it. This is very likely to create a memory leak.
18 Mar 2015 12:58:59 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [] appears to have started a thread named [Sched1_Worker-1] but has failed to stop it. This is very likely to create a memory leak.
18 Mar 2015 12:58:59 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [] appears to have started a thread named [Sched1_Worker-2] but has failed to stop it. This is very likely to create a memory leak.
18 Mar 2015 12:58:59 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [] appears to have started a thread named [Sched1_Worker-3] but has failed to stop it. This is very likely to create a memory leak.
18 Mar 2015 12:58:59 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [] appears to have started a thread named [Sched1_Worker-4] but has failed to stop it. This is very likely to create a memory leak.
18 Mar 2015 12:58:59 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [] appears to have started a thread named [Sched1_QuartzSchedulerThread] but has failed to stop it. This is very likely to create a memory leak.
18 Mar 2015 12:58:59 PM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler ["http-bio-8080"]
18 Mar 2015 12:58:59 PM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler ["http-bio-8080"]
18 Mar 2015 12:58:59 PM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler ["ajp-bio-8009"]
18 Mar 2015 12:58:59 PM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler ["ajp-bio-8009"]

Part of Ganib log:

2015-03-18 12:58:13,140 INFO [org.hibernate.cfg.annotations.Version] - Hibernate Annotations 3.4.0.GA
2015-03-18 12:58:13,156 INFO [org.hibernate.cfg.Environment] - Hibernate 3.3.1.GA
2015-03-18 12:58:13,164 INFO [org.hibernate.cfg.Environment] - hibernate.properties not found
2015-03-18 12:58:13,170 INFO [org.hibernate.cfg.Environment] - Bytecode provider name : javassist
2015-03-18 12:58:13,174 INFO [org.hibernate.cfg.Environment] - using JDK 1.4 java.sql.Timestamp handling
2015-03-18 12:58:13,364 INFO [org.hibernate.cfg.AnnotationBinder] - Binding entity from annotated class: com.ganib.hibernate.model.ClientDatabaseVersion
2015-03-18 12:58:13,422 INFO [org.hibernate.cfg.annotations.EntityBinder] - Bind entity com.ganib.hibernate.model.ClientDatabaseVersion on table CLIENT_DATABASE_VERSION
2015-03-18 12:58:13,477 INFO [org.hibernate.cfg.AnnotationBinder] - Binding entity from annotated class: com.ganib.hibernate.model.DatabaseVersion
2015-03-18 12:58:13,478 INFO [org.hibernate.cfg.annotations.EntityBinder] - Bind entity com.ganib.hibernate.model.DatabaseVersion on table DATABASE_VERSION
2015-03-18 12:58:13,482 INFO [org.hibernate.cfg.AnnotationBinder] - Binding entity from annotated class: com.ganib.hibernate.model.DatabaseVersionUpdate
2015-03-18 12:58:13,483 INFO [org.hibernate.cfg.annotations.EntityBinder] - Bind entity com.ganib.hibernate.model.DatabaseVersionUpdate on table DATABASE_VERSION_UPDATE
2015-03-18 12:58:13,486 INFO [org.hibernate.cfg.AnnotationBinder] - Binding entity from annotated class: com.ganib.hibernate.model.HelpFeedback
2015-03-18 12:58:13,486 INFO [org.hibernate.cfg.annotations.EntityBinder] - Bind entity com.ganib.hibernate.model.HelpFeedback on table HELP_FEEDBACK
2015-03-18 12:58:13,530 INFO [org.hibernate.cfg.AnnotationBinder] - Binding entity from annotated class: com.ganib.hibernate.model.PnAddress
2015-03-18 12:58:13,531 INFO [org.hibernate.cfg.annotations.EntityBinder] - Bind entity com.ganib.hibernate.model.PnAddress on table PN_ADDRESS
2015-03-18 12:58:13,560 INFO [org.hibernate.cfg.AnnotationBinder] - Binding entity from annotated class: com.ganib.hibernate.model.PnAgendaItem
2015-03-18 12:58:13,563 INFO [org.hibernate.cfg.annotations.EntityBinder] - Bind entity com.ganib.hibernate.model.PnAgendaItem on table PN_AGENDA_ITEM
2015-03-18 12:58:13,613 INFO [org.hibernate.cfg.AnnotationBinder] - Binding entity from annotated class: com.ganib.hibernate.model.PnApplicationSpace
2015-03-18 12:58:13,614 INFO [org.hibernate.cfg.annotations.EntityBinder] - Bind entity com.ganib.hibernate.model.PnApplicationSpace on table PN_APPLICATION_SPACE
2015-03-18 12:58:13,616 INFO [org.hibernate.cfg.AnnotationBinder] - Binding entity from annotated class: com.ganib.hibernate.model.PnAssignment

I do as everything stated in previous suggestions on the forum but with no success

Thank you.

Kind regards,

Mara
 

 

Can I perhaps send you the log files in zip format please?

Thank you

 

asked Mar 18, 2015 by maramk (140 points)
edited Mar 19, 2015 by maramk

1 Answer

0 votes
Hello,
 
Thank you for approaching us.
 
As per the logs it seems that the port configured for tomcat is already used by another service and it's not able to bind again.
You need to change tomcat 'HTTP/AJP/shutdown' port in server.xml present in "c:\xampp\tomcat\conf"
 
Once you have changed the tomcat ports, please restart tomcat.
 
If you have any other issues, Kindly feel free to contact us. We are happy to help you.
 
Thanks,

Jaclyn

Jaclyn N,
Ganib Support Team, Ganib Inc.
Free Signup | Free Download | Documentation
Skype ID: ganib.support
Email: support@ganib.com

 

answered Mar 18, 2015 by Jaclyn (18,310 points)
...