Comments (8)
Bump. I'm encountering this also.
from owf-framework.
2015-06-30 12:02:26,451 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/owf]] (ServerService Thread Pool -- 56) JBWEB000287: Exception sending context initialized event to listener instance of class org.codehaus.groovy.grails.web.context.GrailsContextLoaderListener: org.springframework.beans.factory.access.BootstrapException: Error executing bootstraps; nested exception is java.lang.NoClassDefFoundError: org/apache/tomcat/jdbc/pool/DataSourceProxy
at org.codehaus.groovy.grails.web.context.GrailsContextLoader.initWebApplicationContext(GrailsContextLoader.java:125) [grails-web-2.3.7.jar:2.3.7]
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112) [spring-web-3.2.8.RELEASE.jar:3.2.8.RELEASE]
at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) [jbossweb-7.5.9.Final-redhat-1.jar:7.5.9.Final-redhat-1]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3780) [jbossweb-7.5.9.Final-redhat-1.jar:7.5.9.Final-redhat-1]
at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:163) [jboss-as-web-7.5.1.Final-redhat-3.jar:7.5.1.Final-redhat-3]
at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:61) [jboss-as-web-7.5.1.Final-redhat-3.jar:7.5.1.Final-redhat-3]
at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:96) [jboss-as-web-7.5.1.Final-redhat-3.jar:7.5.1.Final-redhat-3]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [rt.jar:1.8.0_45]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [rt.jar:1.8.0_45]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_45]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_45]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_45]
at org.jboss.threads.JBossThread.run(JBossThread.java:122)
Caused by: java.lang.NoClassDefFoundError: org/apache/tomcat/jdbc/pool/DataSourceProxy
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) [rt.jar:1.8.0_45]
at java.lang.Class.getDeclaredMethods(Class.java:1975) [rt.jar:1.8.0_45]
... 9 more
Caused by: java.lang.ClassNotFoundException: org.apache.tomcat.jdbc.pool.DataSourceProxy from [Module "deployment.ozone-7.16.0.war:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) [jboss-modules.jar:1.3.6.Final-redhat-1]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.6.Final-redhat-1]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.6.Final-redhat-1]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.6.Final-redhat-1]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.6.Final-redhat-1]
... 11 more
from owf-framework.
Depending on how I try configuring the datasources, i also get the below stacktrace. This attempt was with this OwfConfig.groovy:
environments {
production {
dataSource {
pooled = true
dbCreate = "none"
username = "owf7"
password = "password"
driverClassName = "org.postgresql.Driver"
url = "jdbc:postgresql://localhost:5432/owf7"
dialect = "org.hibernate.dialect.PostgreSQLDialoect"
properties {
minEvictableIdleTimeMillis = 180000
timeBetweenEvictionRunsMillis = 180000
numTestsPerEvictionRun = 3
testOnBorrow = true
testWhileIdle = true
testOnReturn = true
validationQuery = "SELECT 1"
}
}
}
}
2015-06-30 13:44:25,840 INFO [org.codehaus.groovy.grails.plugins.datasource.DataSourceGrailsPlugin] (ServerService Thread Pool -- 61) [RuntimeConfiguration] Configuring data source for environment: PRODUCTION
2015-06-30 13:44:25,842 ERROR [org.codehaus.groovy.grails.web.context.GrailsContextLoader] (ServerService Thread Pool -- 61) Error initializing the application: org/apache/tomcat/jdbc/pool/DataSource: java.lang.NoClassDefFoundError: org/apache/tomcat/jdbc/pool/DataSource
at grails.spring.BeanBuilder.invokeBeanDefiningClosure(BeanBuilder.java:754) [grails-spring-2.3.7.jar:2.3.7]
at grails.spring.BeanBuilder.beans(BeanBuilder.java:584) [grails-spring-2.3.7.jar:2.3.7]
at grails.spring.BeanBuilder.invokeMethod(BeanBuilder.java:527) [grails-spring-2.3.7.jar:2.3.7]
at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:163) [jboss-as-web-7.5.1.Final-redhat-3.jar:7.5.1.Final-redhat-3]
at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:61) [jboss-as-web-7.5.1.Final-redhat-3.jar:7.5.1.Final-redhat-3]
at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:96) [jboss-as-web-7.5.1.Final-redhat-3.jar:7.5.1.Final-redhat-3]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [rt.jar:1.8.0_45]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [rt.jar:1.8.0_45]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_45]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_45]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_45]
at org.jboss.threads.JBossThread.run(JBossThread.java:122)
Caused by: java.lang.ClassNotFoundException: org.apache.tomcat.jdbc.pool.DataSource from [Module "deployment.ozone-7.16.0.war:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) [jboss-modules.jar:1.3.6.Final-redhat-1]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.6.Final-redhat-1]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.6.Final-redhat-1]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.6.Final-redhat-1]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.6.Final-redhat-1]
... 12 more
from owf-framework.
Looks like this comes from grails-core 2.3.7. When pooled = true
it always uses Tomcat's DataSource
from owf-framework.
And, the grails-plugin-datasource requires tomcat-jdbc and tomcat-embed-logging-log4j (or tomcat-embed-logging-juli)
from owf-framework.
@mparizernc and I are working through this currently. The issue is that Grails is supposed to add tomcat-jdbc.jar and its dependencies to the war, but our BuildConfig.groovy has a line that inadvertently prevents that
from owf-framework.
Sorry for the delay. We have determined a fix to the issue and will incorporate the fix in our next release. However in the meantime here is a workaround that should get you working with JBoss. Please take the following 3 jars and place them in the WEB-INF/lib directory under the exploded war.
tomcat-embed-logging-log4j-7.0.50.jar - http://search.maven.org/remotecontent?filepath=org/apache/tomcat/embed/tomcat-embed-logging-log4j/7.0.50/tomcat-embed-logging-log4j-7.0.50.jar
tomcat-jdbc-7.0.50.jar - http://search.maven.org/remotecontent?filepath=org/apache/tomcat/tomcat-jdbc/7.0.50/tomcat-jdbc-7.0.50.jar
tomcat-juli-7.0.50.jar - http://search.maven.org/remotecontent?filepath=org/apache/tomcat/tomcat-juli/7.0.50/tomcat-juli-7.0.50.jar
from owf-framework.
Great. Thanks.
from owf-framework.
Related Issues (20)
- OWF/OMP REST Documentation Hard to Find
- Ozone.util.parseJSON(msg) Error: Illegal operator [ HOT 1
- ehcache.xml needed for JBoss Deployment
- Docking two widgets together?
- Deleting an app from the 'My Apps' tab doesn't delete fully.
- Relative URLs for Small & Medium Icon URLs in widget definitions are used inconsistently.
- angular 6 - text.replace is not a function
- Users are getting "Error Type 500" - ....; when they try to access a widget from Store and do not have permissions within OWF to use that app
- expired certs - 2020
- OWF Launcher API bug
- GeoJSON validation fails for valid JSON
- Vagrant Ansible Script Not Found HOT 1
- Occasional refresh in Chrome and Firefox on window resize HOT 3
- Example Channel Listener scrolling not working and too many messages cause slowdown of OWF. HOT 6
- Use of backgroundURL in Configuration widget breaks OWF in IE 11
- Bundle is missing SQLServerPrefsUpdate_v7.0.0.sql script
- use guid for id's vice numeric value
- no user/preference api shows user assignment to groups or groups to user
- Sending a POST to /dashboard/restore no longer automatically restores the dashboard
- Markdown Formatting Incorrect HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from owf-framework.