[JBoss Seam] - Possible bug -- conflict with app's own 'StringUtility' clas
by DataGazetteer
I created a class called 'StringUtility' in a package called 'Utility' and encountered this stack trace when deploying:
| 16:57:39,660 INFO [Initialization] initializing Seam
| 16:57:39,704 INFO [Scanner] scanning: .../jboss-4.0.5.GA/server/default/deploy/app.ear/app.jar
| 16:57:40,064 INFO [Scanner] scanning: .../jboss-4.0.5.GA/server/default/tmp/deploy/tmp61301jboss-seam.jar
| 16:57:55,677 INFO [Component] Component: org.jboss.seam.core.init, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Init
| 16:57:59,309 ERROR [[/app]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
| java.lang.NoClassDefFoundError: org/jboss/seam/util/Conversions$StringConverter
| at org.jboss.seam.util.Conversions$1.<init>(Conversions.java:18)
| at org.jboss.seam.util.Conversions.<clinit>(Conversions.java:17)
| at org.jboss.seam.Component$ConstantInitialValue.<init>(Component.java:1971)
| at org.jboss.seam.Component.getInitialValue(Component.java:400)
| at org.jboss.seam.Component.initInitializers(Component.java:378)
| at org.jboss.seam.Component.<init>(Component.java:263)
| at org.jboss.seam.Component.<init>(Component.java:204)
| at org.jboss.seam.init.Initialization.addComponent(Initialization.java:742)
| at org.jboss.seam.init.Initialization.addComponents(Initialization.java:625)
| at org.jboss.seam.init.Initialization.init(Initialization.java:429)
| at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:33)
| at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3763)
| at org.apache.catalina.core.StandardContext.start(StandardContext.java:4211)
| ...deleted...
|
Simply renaming the class to 'StringUtil' allowed the application to deploy without error. Please let me know if you need a tighter test case in JIRA or more of the stack trace.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3999738#3999738
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3999738
19 years, 3 months
[JBossCache] - Re: PojoCache: java.lang.NoSuchMethodException: addObserver
by chencao0524
Thanks for your reply.
My POJO are Person.class, Student.class, Address.class
| Person.java
| @org.jboss.cache.aop.annotation.InstanceOfPojoCacheable
| public class Person implements Serializable {
| ...
| }
|
| Student.java
| public class Student extends Person {
| ...
| }
|
| Address.java
| @org.jboss.cache.aop.annotation.PojoCacheable
| public class Address implements Serializable {
| ...
| }
|
snippets in my build.xml
| <path id="build.classpath">
| <pathelement location="${basedir}"/>
| <fileset dir="${jboss.home}/lib">
| <include name="**/*.jar"/>
| </fileset>
| <fileset dir="${jboss.home}/server/${jboss.server.config}/lib">
| <include name="**/*.jar"/>
| </fileset>
| <fileset dir="${jboss.home}/server/${jboss.server.config}/deploy/ejb3.deployer">
| <include name="*.jar"/>
| </fileset>
| <fileset dir="${jboss.home}/server/${jboss.server.config}/deploy/jboss-aop-jdk50.deployer">
| <include name="*.jar"/>
| </fileset>
| <fileset dir="${lib.dir}">
| <include name="**/*.jar"/>
| </fileset>
| <fileset dir="${cache.lib.50.dir}">
| <include name="**/*.jar"/>
| </fileset>
| <pathelement location="${classes.dao.dir}"/>
| <pathelement location="${classes.web.dir}"/>
| <pathelement location="${classes.test.dir}"/>
| <pathelement location="${conf.hivemind.dir}"/>
| </path>
|
| <!-- set local properties for this build -->
| <path id="pojocache.lib.classpath">
| <fileset dir="${cache.lib.50.dir}">
| <include name="jboss-common.jar"/>
| <include name="concurrent.jar"/>
| <include name="javassist.jar"/>
| <include name="trove.jar"/>
| <include name="jboss-cache-jdk50.jar"/>
| <include name="jboss-aop-jdk50.jar"/>
| </fileset>
| </path>
|
| <!-- pre-compile directory with aopc -->
| <target name="aopc" depends="compile" description="Precompile aop test classes">
| <taskdef name="aopc" classname="org.jboss.aop.ant.AopC" classpathref="pojocache.lib.classpath"/>
| <aopc compilerclasspathref="pojocache.lib.classpath" verbose="true">
| <src path="${classes.dao.dir}"/>
| <aoppath path="${cache.resources.dir}/jboss-aop.xml"/>
| <classpath refid="build.classpath"/>
| </aopc>
| </target>
|
jboss-app.xml
| <prepare expr="field(* @org.jboss.cache.aop.AopMarker->*)" />
|
|
| <prepare expr="field(* $instanceof{(a)org.jboss.cache.aop.InstanceOfAopMarker}->*)" />
|
|
|
| <prepare expr="field(* @org.jboss.cache.aop.annotation.PojoCacheable->*)" />
|
| <prepare expr="field(* $instanceof{(a)org.jboss.cache.aop.annotation.InstanceOfPojoCacheable}->*)" />
|
the versions of the jboss-aop-jdk50.jar and jboss-cache-jdk50.jar are the same above.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3999736#3999736
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3999736
19 years, 3 months
[Persistence, JBoss/CMP, Hibernate, Database] - Re: Oracle Database resource problem
by skumarsamy
Hi,
I'm now getting some other exception as follows. Here i'm the only user and i don't have much connection too.
10:42:24,484 WARN [JBossManagedConnectionPool] Unable to fill pool
org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (java.lang.NullPointerException)
at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:179)
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:565)
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.fillToMin(InternalManagedConnectionPool.java:512)
at org.jboss.resource.connectionmanager.PoolFiller.run(PoolFiller.java:74)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NullPointerException
at org.jboss.mx.loading.RepositoryClassLoader.findClass(RepositoryClassLoader.java:620)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:464)
at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:405)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at oracle.net.ns.NetException.(Unknown Source)
at oracle.net.ano.Ano.e(Ano)
at oracle.net.ano.Ano.init(Ano)
at oracle.net.ns.NSProtocol.connect(Unknown Source)
at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:844)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:268)
at oracle.jdbc.driver.PhysicalConnection.(PhysicalConnection.java:414)
at oracle.jdbc.driver.T4CConnection.(T4CConnection.java:165)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:171)
... 4 more
regards
kumar
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3999734#3999734
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3999734
19 years, 3 months