Vaadin-server 8.16.0 Runtime Dependency com.sun.jna - vaadin

After upgrading Vaadin server to 8.16.0, I get this runtime error during the app starting up time.
java.lang.NoSuchMethodError: com.sun.jna.Native.load(Ljava/lang/String;Ljava/lang/Class;)Lcom/sun/jna/Library;
at com.sun.jna.platform.mac.IOKit.<clinit>(IOKit.java:51) ~[jna-platform-5.10.0.jar:5.10.0 (b0)]
at com.sun.jna.platform.mac.IOKitUtil.<clinit>(IOKitUtil.java:39) ~[jna-platform-5.10.0.jar:5.10.0 (b0)]
at oshi.hardware.platform.mac.MacComputerSystem.platformExpert(MacComputerSystem.java:87) ~[oshi-core-6.1.0.jar:6.1.0]
at oshi.util.Memoizer$1.get(Memoizer.java:87) ~[oshi-core-6.1.0.jar:6.1.0]
at oshi.hardware.platform.mac.MacComputerSystem.getHardwareUUID(MacComputerSystem.java:69) ~[oshi-core-6.1.0.jar:6.1.0]
at com.vaadin.pro.licensechecker.MachineId.getComputerId(MachineId.java:23) ~[vaadin-server-8.16.0.jar:8.16.0]
It seems that the com.sun.jna isn't the same version required for Vaadin. I have a look at the document "pom.xml configuration for Vaadin 8" on Vaadin website but don't see how the com.sun.jna is included.
What is missing?

Related

SQLDelight - java.lang.UnsatisfiedLinkError: couldn't find "libsqlitejdbc.so"

Runtime Environment
SQLDelight version: 1.4.3
Application OS: Android
Bug Description
I'm trying to create SQLDelight in library level as kotlin multiplatform library and deploy it as android library...
Then when I added it as dependencies in my Android apps (separated project, because I want to treat it as client who used my library later), I got a Runtime issue with the following stacktrace :
2020-12-01 10:02:40.827 3642-3642/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.socketdummy, PID: 3642
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.example.socketdummy-iBZCoVo2j0qCEXnpJ23JAg==/base.apk"],nativeLibraryDirectories=[/data/app/com.example.socketdummy-iBZCoVo2j0qCEXnpJ23JAg==/lib/x86, /system/lib, /system/product/lib]]] couldn't find "libsqlitejdbc.so"
at java.lang.Runtime.loadLibrary0(Runtime.java:1067)
at java.lang.Runtime.loadLibrary0(Runtime.java:1007)
at java.lang.System.loadLibrary(System.java:1667)
at org.sqlite.core.NativeDB.<clinit>(NativeDB.java:38)
at org.sqlite.core.NativeDB.load(NativeDB.java:53)
at org.sqlite.core.CoreConnection.open(CoreConnection.java:211)
at org.sqlite.core.CoreConnection.<init>(CoreConnection.java:76)
at org.sqlite.jdbc3.JDBC3Connection.<init>(JDBC3Connection.java:25)
at org.sqlite.jdbc4.JDBC4Connection.<init>(JDBC4Connection.java:24)
at org.sqlite.SQLiteConnection.<init>(SQLiteConnection.java:45)
at org.sqlite.JDBC.createConnection(JDBC.java:114)
at org.sqlite.JDBC.connect(JDBC.java:88)
at java.sql.DriverManager.getConnection(DriverManager.java:580)
at java.sql.DriverManager.getConnection(DriverManager.java:190)
at com.squareup.sqldelight.sqlite.driver.JdbcSqliteDriver.<init>(JdbcSqliteDriver.kt:25)
at com.squareup.sqldelight.sqlite.driver.JdbcSqliteDriver.<init>(JdbcSqliteDriver.kt:14)
at bca.lib.data.local.driver.DatabaseDriverFactory.createDriver(DatabaseDriverFactory.kt:21)
at bca.lib.data.local.driver.DatabaseDriverFactoryKt.getSQLDriver(DatabaseDriverFactory.kt:29)
at bca.lib.di.KodeinInjectorKt$kodeinInjector$1$6.invoke(KodeinInjector.kt:22)
at bca.lib.di.KodeinInjectorKt$kodeinInjector$1$6.invoke(Unknown Source:2)
at org.kodein.di.bindings.Singleton$getFactory$1$1$1.invoke(standardBindings.kt:127)
at org.kodein.di.bindings.Reference$Local$Companion.invoke$kodein_di(references.kt:16)
at org.kodein.di.bindings.Strong$Companion.make(references.kt:31)
at org.kodein.di.bindings.Singleton$getFactory$1$1.invoke(standardBindings.kt:127)
at org.kodein.di.bindings.Singleton$getFactory$1$1.invoke(standardBindings.kt:96)
at org.kodein.di.bindings.StandardScopeRegistry.getOrCreate(scopes.kt:64)
at org.kodein.di.bindings.Singleton$getFactory$1.invoke(standardBindings.kt:127)
at org.kodein.di.bindings.Singleton$getFactory$1.invoke(standardBindings.kt:96)
at org.kodein.di.internal.DIContainerImpl$factory$1.invoke(DIContainerImpl.kt:160)
at org.kodein.di.DIContainer$provider$$inlined$toProvider$1.invoke(curry.kt:14)
at org.kodein.di.internal.DirectDIBaseImpl.Instance(DirectDIImpl.kt:30)
at bca.lib.di.KodeinInjectorKt$kodeinInjector$1$5.invoke(KodeinInjector.kt:25)
at bca.lib.di.KodeinInjectorKt$kodeinInjector$1$5.invoke(Unknown Source:2)
at org.kodein.di.bindings.Singleton$getFactory$1$1$1.invoke(standardBindings.kt:127)
at org.kodein.di.bindings.Reference$Local$Companion.invoke$kodein_di(references.kt:16)
at org.kodein.di.bindings.Strong$Companion.make(references.kt:31)
at org.kodein.di.bindings.Singleton$getFactory$1$1.invoke(standardBindings.kt:127)
at org.kodein.di.bindings.Singleton$getFactory$1$1.invoke(standardBindings.kt:96)
at org.kodein.di.bindings.StandardScopeRegistry.getOrCreate(scopes.kt:64)
at org.kodein.di.bindings.Singleton$getFactory$1.invoke(standardBindings.kt:127)
at org.kodein.di.bindings.Singleton$getFactory$1.invoke(standardBindings.kt:96)
at org.kodein.di.internal.DIContainerImpl$factory$1.invoke(DIContainerImpl.kt:160)
at org.kodein.di.DIContainer$provider$$inlined$toProvider$1.invoke(curry.kt:14)
at org.kodein.di.internal.DirectDIBaseImpl.Instance(DirectDIImpl.kt:30)
at bca.lib.di.KodeinInjectorKt$kodeinInjector$1$4.invoke(KodeinInjector.kt:25)
at bca.lib.di.KodeinInjectorKt$kodeinInjector$1$4.invoke(Unknown Source:2)
at org.kodein.di.bindings.Singleton$getFactory$1$1$1.invoke(standardBindings.kt:127)
at org.kodein.di.bindings.Reference$Local$Companion.invoke$kodein_di(references.kt:16)
2020-12-01 10:02:40.829 3642-3642/? E/AndroidRuntime: at org.kodein.di.bindings.Strong$Companion.make(references.kt:31)
at org.kodein.di.bindings.Singleton$getFactory$1$1.invoke(standardBindings.kt:127)
at org.kodein.di.bindings.Singleton$getFactory$1$1.invoke(standardBindings.kt:96)
at org.kodein.di.bindings.StandardScopeRegistry.getOrCreate(scopes.kt:64)
at org.kodein.di.bindings.Singleton$getFactory$1.invoke(standardBindings.kt:127)
at org.kodein.di.bindings.Singleton$getFactory$1.invoke(standardBindings.kt:96)
at org.kodein.di.internal.DIContainerImpl$factory$1.invoke(DIContainerImpl.kt:160)
at org.kodein.di.DIContainer$provider$$inlined$toProvider$1.invoke(curry.kt:14)
at org.kodein.di.internal.DirectDIBaseImpl.Instance(DirectDIImpl.kt:30)
at bca.lib.di.KodeinInjectorKt$kodeinInjector$1$2.invoke(KodeinInjector.kt:25)
at bca.lib.di.KodeinInjectorKt$kodeinInjector$1$2.invoke(Unknown Source:2)
at org.kodein.di.bindings.Provider$getFactory$1.invoke(standardBindings.kt:86)
at org.kodein.di.bindings.Provider$getFactory$1.invoke(standardBindings.kt:80)
at org.kodein.di.internal.DIContainerImpl$factory$1.invoke(DIContainerImpl.kt:160)
at org.kodein.di.DIContainer$provider$$inlined$toProvider$1.invoke(curry.kt:14)
at org.kodein.di.internal.DirectDIBaseImpl.Instance(DirectDIImpl.kt:30)
at bca.lib.ConnectionManager$connect$provisionUseCase$2.invoke(ConnectionManager.kt:28)
at bca.lib.ConnectionManager$connect$provisionUseCase$2.invoke(ConnectionManager.kt:10)
at org.kodein.di.DIAwareKt$newInstance$1.invoke(DIAware.kt:268)
at org.kodein.di.DIAwareKt$newInstance$1.invoke(Unknown Source:4)
at org.kodein.di.DIProperty$provideDelegate$1.invoke(properties.kt:46)
at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
at bca.lib.ConnectionManager.connect(ConnectionManager.kt:16)
at com.example.socketdummy.MainActivity.lambda$onCreate$0(MainActivity.java:31)
at com.example.socketdummy.-$$Lambda$MainActivity$GO0OJj7ZT4UkfvPtudR0IznuTHw.onClick(Unknown Source:2)
at android.view.View.performClick(View.java:7125)
at com.google.android.material.button.MaterialButton.performClick(MaterialButton.java:992)
at android.view.View.performClickInternal(View.java:7102)
at android.view.View.access$3500(View.java:801)
at android.view.View$PerformClick.run(View.java:27336)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7356)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
it said no "libsqlitejdbc.so" was found..., did I make a mistake? and how to solve this problem?
according to the documentation I understand, I just addded this following dependencies in my Android apps :
implementation 'com.squareup.sqldelight:android-driver:1.4.3'
I need solution for this issue with the following conditions:
the SQLDelight definition is on Library layer (including .sq, driver actual definition) and can be deployed as android lib or iOS framework
it can be implemented as dependencies in the client apps later (ex: Android / iOS)
Thank you
Somehow you have included the jdbc driver. See lines in the stack trace related to com.squareup.sqldelight.sqlite.driver.JdbcSqliteDriver. I would guess this either crept in because you intended them to run tests in the JVM that way, or you are also making this library available for server side and the config is not set up properly. Seeing the gradle config might help.

Facing issues when upgrading Struts from version 2.0.11.2 to 2.3.28.1

I have an application which is using Struts 2.0.11.2.The application is flagged as vulnerable due to the old version of struts.I am facing issues while upgrading the struts to version 2.3.28.1(this is the latest allowed version in our organization).
After a lot of research on google i understood that the Dojo classes are deprecated in the new struts version. However our project uses a lot of dojo tags.
I am aware of the alternative plugins such as Struts Jquery. But use of alternative plugins will involve a lot of code change and testing which is not feasible in the current time frame we have got.
Is there some way out to use the dojo tags with the struts to version 2.3.28.1?.
Can we somehow incorporate the struts2-dojo-plugin with the Struts version 2.3.28.1?.
i tried it myself but am getting stuck(details mentioned below)
What i tried:
1) I replaced the Struts core jar with struts2-core-2.3.28.1 jar.
2) Updated all the dependency jars as mentioned in the Maven repository.
3) Added struts2-dojo-plugin-2.3.20.1
4) Included in JSP-s
<%# taglib prefix="sx" uri="/struts-dojo-tags"%>
<head><sx:head /></head>
The issue i am facing:
When i hit the JSP below is the error i get. Any help is highly appreciated.Let me know if you need any more details or information from my side.
FreeMarker template error (HTML_DEBUG mode; use RETHROW in production!)
The following has evaluated to null or missing:
==> parameters.pushId [in template "template/ajax/submit.ftl" at line 103, column 6]
----
Tip: It's the step after the last dot that caused this error, not those before it.
----
Tip: If the failing expression is known to be legally refer to something that's null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----
----
FTL stack trace ("~" means nesting-related):
- Failed at: #if parameters.pushId [in template "template/ajax/submit.ftl" at line 103, column 1]
----
Java stack trace (for programmers):
----
freemarker.core.InvalidReferenceException: [... Exception message was already printed; see it above ...]
at freemarker.core.InvalidReferenceException.getInstance(InvalidReferenceException.java:116)
at freemarker.core.UnexpectedTypeException.newDesciptionBuilder(UnexpectedTypeException.java:60)
at freemarker.core.UnexpectedTypeException.<init>(UnexpectedTypeException.java:40)
at freemarker.core.NonBooleanException.<init>(NonBooleanException.java:44)
at freemarker.core.Expression.modelToBoolean(Expression.java:136)
at freemarker.core.Expression.evalToBoolean(Expression.java:119)
at freemarker.core.Expression.evalToBoolean(Expression.java:110)
at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:46)
at freemarker.core.Environment.visit(Environment.java:312)
at freemarker.core.MixedContent.accept(MixedContent.java:62)
at freemarker.core.Environment.visit(Environment.java:312)
at freemarker.core.Environment.process(Environment.java:290)
at freemarker.template.Template.process(Template.java:312)
at org.apache.struts2.components.template.FreemarkerTemplateEngine.renderTemplate(FreemarkerTemplateEngine.java:158)
at org.apache.struts2.components.UIBean.mergeTemplate(UIBean.java:584)
at org.apache.struts2.components.ClosingUIBean.start(ClosingUIBean.java:57)
at org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:54)
at jsp_servlet._demotool.__fileupload._jsp__tag2(__fileupload.java:332)
at jsp_servlet._demotool.__fileupload._jspService(__fileupload.java:236)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:408)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:318)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:502)
at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:432)
at weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:163)
at jsp_servlet._demotool.__ctmmessage._jspService(__ctmmessage.java:132)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:408)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:318)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:502)
at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:432)
at weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:163)
at jsp_servlet._demotool.__home._jspService(__home.java:255)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:408)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:318)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:96)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:96)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at org.apache.struts2.dispatcher.ng.filter.StrutsExecuteFilter.doFilter(StrutsExecuteFilter.java:90)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareFilter.doFilter(StrutsPrepareFilter.java:91)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

Get stagemonitor working with Grails 2.5?

I'm trying to get www.stagemonitor.org working with Grails.
I've created a sample project here: https://github.com/jbwiv/teststagemonitor
I've added stagemonitor to grails-app/conf/BuildConfig.groovy as both a compile and runtime dependency. It indeed gets installed to my maven directory after calling "grails refresh-dependencies":
/home/user/.m2/repository/org/stagemonitor
/home/user/.m2/repository/org/stagemonitor/stagemonitor-requestmonitor
/home/user/.m2/repository/org/stagemonitor/stagemonitor-requestmonitor/0.13.0
/home/user/.m2/repository/org/stagemonitor/stagemonitor-requestmonitor/0.13.0/stagemonitor-requestmonitor-0.13.0.pom.sha1
/home/user/.m2/repository/org/stagemonitor/stagemonitor-requestmonitor/0.13.0/_remote.repositories
/home/user/.m2/repository/org/stagemonitor/stagemonitor-requestmonitor/0.13.0/stagemonitor-requestmonitor-0.13.0.jar
/home/user/.m2/repository/org/stagemonitor/stagemonitor-requestmonitor/0.13.0/stagemonitor-requestmonitor-0.13.0.pom
/home/user/.m2/repository/org/stagemonitor/stagemonitor-requestmonitor/0.13.0/stagemonitor-requestmonitor-0.13.0.jar.sha1
/home/user/.m2/repository/org/stagemonitor/stagemonitor-jvm
/home/user/.m2/repository/org/stagemonitor/stagemonitor-jvm/0.13.0
/home/user/.m2/repository/org/stagemonitor/stagemonitor-jvm/0.13.0/stagemonitor-jvm-0.13.0.pom.sha1
/home/user/.m2/repository/org/stagemonitor/stagemonitor-jvm/0.13.0/_remote.repositories
/home/user/.m2/repository/org/stagemonitor/stagemonitor-jvm/0.13.0/stagemonitor-jvm-0.13.0.jar
/home/user/.m2/repository/org/stagemonitor/stagemonitor-jvm/0.13.0/stagemonitor-jvm-0.13.0.jar.sha1
/home/user/.m2/repository/org/stagemonitor/stagemonitor-jvm/0.13.0/stagemonitor-jvm-0.13.0.pom
/home/user/.m2/repository/org/stagemonitor/stagemonitor-javaagent
/home/user/.m2/repository/org/stagemonitor/stagemonitor-javaagent/0.13.0
/home/user/.m2/repository/org/stagemonitor/stagemonitor-javaagent/0.13.0/stagemonitor-javaagent-0.13.0.pom
/home/user/.m2/repository/org/stagemonitor/stagemonitor-javaagent/0.13.0/_remote.repositories
/home/user/.m2/repository/org/stagemonitor/stagemonitor-javaagent/0.13.0/stagemonitor-javaagent-0.13.0.jar.sha1
/home/user/.m2/repository/org/stagemonitor/stagemonitor-javaagent/0.13.0/stagemonitor-javaagent-0.13.0.pom.sha1
/home/user/.m2/repository/org/stagemonitor/stagemonitor-javaagent/0.13.0/stagemonitor-javaagent-0.13.0.jar
/home/user/.m2/repository/org/stagemonitor/stagemonitor-web
/home/user/.m2/repository/org/stagemonitor/stagemonitor-web/0.13.0
/home/user/.m2/repository/org/stagemonitor/stagemonitor-web/0.13.0/stagemonitor-web-0.13.0.jar
/home/user/.m2/repository/org/stagemonitor/stagemonitor-web/0.13.0/_remote.repositories
/home/user/.m2/repository/org/stagemonitor/stagemonitor-web/0.13.0/stagemonitor-web-0.13.0.pom.sha1
/home/user/.m2/repository/org/stagemonitor/stagemonitor-web/0.13.0/stagemonitor-web-0.13.0.jar.sha1
/home/user/.m2/repository/org/stagemonitor/stagemonitor-web/0.13.0/stagemonitor-web-0.13.0.pom
/home/user/.m2/repository/org/stagemonitor/stagemonitor-os
/home/user/.m2/repository/org/stagemonitor/stagemonitor-os/0.13.0
/home/user/.m2/repository/org/stagemonitor/stagemonitor-os/0.13.0/stagemonitor-os-0.13.0.jar.sha1
/home/user/.m2/repository/org/stagemonitor/stagemonitor-os/0.13.0/_remote.repositories
/home/user/.m2/repository/org/stagemonitor/stagemonitor-os/0.13.0/stagemonitor-os-0.13.0.pom.sha1
/home/user/.m2/repository/org/stagemonitor/stagemonitor-os/0.13.0/stagemonitor-os-0.13.0.pom
/home/user/.m2/repository/org/stagemonitor/stagemonitor-os/0.13.0/stagemonitor-os-0.13.0.jar
/home/user/.m2/repository/org/stagemonitor/stagemonitor-jdbc
/home/user/.m2/repository/org/stagemonitor/stagemonitor-jdbc/0.13.0
/home/user/.m2/repository/org/stagemonitor/stagemonitor-jdbc/0.13.0/_remote.repositories
/home/user/.m2/repository/org/stagemonitor/stagemonitor-jdbc/0.13.0/stagemonitor-jdbc-0.13.0.pom.sha1
/home/user/.m2/repository/org/stagemonitor/stagemonitor-jdbc/0.13.0/stagemonitor-jdbc-0.13.0.jar.sha1
/home/user/.m2/repository/org/stagemonitor/stagemonitor-jdbc/0.13.0/stagemonitor-jdbc-0.13.0.pom
/home/user/.m2/repository/org/stagemonitor/stagemonitor-jdbc/0.13.0/stagemonitor-jdbc-0.13.0.jar
/home/user/.m2/repository/org/stagemonitor/stagemonitor-core
/home/user/.m2/repository/org/stagemonitor/stagemonitor-core/0.13.0
/home/user/.m2/repository/org/stagemonitor/stagemonitor-core/0.13.0/_remote.repositories
/home/user/.m2/repository/org/stagemonitor/stagemonitor-core/0.13.0/stagemonitor-core-0.13.0.pom.sha1
/home/user/.m2/repository/org/stagemonitor/stagemonitor-core/0.13.0/stagemonitor-core-0.13.0.jar
/home/user/.m2/repository/org/stagemonitor/stagemonitor-core/0.13.0/stagemonitor-core-0.13.0.pom
/home/user/.m2/repository/org/stagemonitor/stagemonitor-core/0.13.0/stagemonitor-core-0.13.0.jar.sha1
I've also placed a stagemonitor.properties file in src/java, which at runtime gets moved to target/work/resources/stagemonitor.properties. I believe I have that properties file configured properly.
I've installed the templates Grails uses for web.xml and modified to insure metadata-complete=true is not present in the generated web.xml.
However, after grails run-app and navigating to http://localhost:8080/main/index, I get my index page as expected, but no stagemonitor icon to click and it appears no stagemonitor assets are included.
It doesn't appear to be compatible with Grails. If you enable logging
log4j.main = {
error 'org.codehaus.groovy.grails',
'org.springframework',
'org.hibernate',
'net.sf.ehcache.hibernate'
info 'org.stagemonitor'
}
you'll see a bunch of error stacktraces that appear to imply that the way they're using Javassist to wire in tracing code isn't compatible with Groovy and/or the AST transformations that Grails uses:
org.stagemonitor.javassist.NotFoundException: stagemonitortest.PersonController$setErrors
...
org.stagemonitor.javassist.NotFoundException: stagemonitortest.PersonController$getParams$0
...
org.stagemonitor.javassist.NotFoundException: stagemonitortest.Person$count
...
org.stagemonitor.javassist.NotFoundException: stagemonitortest.Person$list$0
...
org.stagemonitor.javassist.NotFoundException: stagemonitortest.PersonController$respond$1

JSF 2.0 deployment on Websphere 7.0 exception

I am writing a project in RAD 7.5.5 with UI being developed in Primefaces, JSF 2.0. When I try to deploy my app on Websphere 7.0 I am getting the below error. I tried doing a Google but could not get any solution out of this tried all possible suggestions. the solutions I tried to get this fixed. I am deploying the app as an ear under which I have the war configured. (tried deploying the war only but still the same error)
(I tried all these options in various combinations... I know I wanted not to leave any stone unturned... :( but still no luck)
Removing the ConfigureListener from web.xml & removing the jsf-api.jar & jsf-impl.jar from the WEB-INF/lib folder and deploying.
Setting the Parent class loader to PARENT_LAST.
Select "Sun Reference" option under JSP and JSF option on console.
Tried adding the jsf-impl.jar & jsf-api.jar in shared library and reference to the deployed app.
Tried stopping the server did a clean->publish.
Tried configuring a new profile and deployed the app to the new profile.
I had this working previously but suddenly this started happening... What could be the problem?
[5/18/12 10:12:25:873 EDT] 00000009 servlet E com.ibm.ws.webcontainer.servlet.ServletWrapper init SRVE0100E: Uncaught init() exception created by servlet Faces Servlet in application employeedirWeb-ear: java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.context.FacesContextFactory
at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:270)
at javax.faces.webapp.FacesServlet.init(FacesServlet.java:164)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:358)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.init(ServletWrapperImpl.java:169)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:1809)
at com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServletWrapper(WebExtensionProcessor.java:98)
at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:1038)
at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:959)
at com.ibm.ws.webcontainer.webapp.WebApp.initializeTargetMappings(WebApp.java:638)
at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinally(WebApp.java:436)
at com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:304)
at com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:100)
at com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:166)
at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:731)
at com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:616)
at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:376)
at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:668)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1127)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1319)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:610)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:944)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:740)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2051)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:385)
at com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:328)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$300(CompositionUnitMgrImpl.java:113)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl$CUInitializer.run(CompositionUnitMgrImpl.java:895)
at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:349)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1604)
[5/18/12 10:12:25:889 EDT] 00000009 extension E com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor createServletWrapper Error occured while preparing the servlet for initialization.
javax.servlet.ServletException: SRVE0207E: Uncaught initialization exception created by servlet
at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:434)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.init(ServletWrapperImpl.java:169)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:1809)
at com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServletWrapper(WebExtensionProcessor.java:98)
at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:1038)
at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:959)
at com.ibm.ws.webcontainer.webapp.WebApp.initializeTargetMappings(WebApp.java:638)
at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinally(WebApp.java:436)
at com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:304)
at com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:100)
at com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:166)
at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:731)
at com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:616)
at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:376)
at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:668)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1127)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1319)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:610)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:944)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:740)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2051)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:385)
at com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:328)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$300(CompositionUnitMgrImpl.java:113)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl$CUInitializer.run(CompositionUnitMgrImpl.java:895)
at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:349)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1604)
Caused by: java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.context.FacesContextFactory
at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:270)
at javax.faces.webapp.FacesServlet.init(FacesServlet.java:164)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:358)
... 27 more

JSF 2 OpenJPA 2 Glassfish 3.1 WEB9031 Error

I got this error which according to Apache Support is an issue relating with Glassfish rather than OpenJPA:
java.lang.IllegalStateException: WEB9031: WebappClassLoader unable to load resource [org.apache.openjpa.util.LongId], because it has not yet been started, or was already stopped
The stacktrace is:
Caused by: java.lang.IllegalStateException: WEB9031: WebappClassLoader unable to load resource [org.apache.openjpa.util.LongId], because it has not yet been started, or was already stopped
at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1410)
at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1368)
at com.ckd.model.BookModel.pcNewObjectIdInstance(BookModel.java)
at org.apache.openjpa.enhance.PCRegistry.newObjectId(PCRegistry.java:138)
at org.apache.openjpa.meta.MetaDataRepository.processRegisteredClass(MetaDataRepository.java:1693)
at org.apache.openjpa.meta.MetaDataRepository.processRegisteredClasses(MetaDataRepository.java:1643)
... 112 more
Has anyone come across this before and how to resolve it? I have been stuck on this issue for the last several days.
Another of my post related to this issue can be found here: JSF 2: h:link and getrowdata.
The above error relates to a problem with the OpenJPA enhancer. When you execute Sun's JDK the OpenJPA's dynamic enhancer starts by default. This action, in turn, stuffs up Glassfish's classloader class - hence, the WEB9031 error.
For those who experience this same issue, a simple workaround is to do the enhancement at build time - which I did in ANT with org.apache.openjpa.ant.PCEnhancerTask - and add this property to your persistence.xml to shut off the dynamic enhancer: <property name="openjpa.DynamicEnhancementAgent" value="false"/>.
Also, it wouldn't hurt to throw this in your persistence.xml as well <property name="openjpa.RuntimeUnenhancedClasses" value="unsupported" />.

Resources