[JBoss Messaging] - Re: LocalTx, ClientTransaction leak?
by ydzsidemiik
I am using the JMS RA. I look up the JMS connection factory using java:/JmsXA, my performance is reasonable, and I can see in the JMX console that the pool has connections in it and that they are being used. From the beginning I based this design on the assumption that the JMS connections would be pooled. Otherwise, as you note, it wouldn't work very well at all.
I propose that the JMS resource adapter could not be allocating or holding references to JBM internal objects. The trace only goes as far as to identify JcaXAResourceWrapper.end as being on the path to where the actual allocations occur, although it cuts off there for reasons unknown to me but probably having to do with my profiler.
I propose that the allocation could not actually occur in JcaXAResourceWrapper.end because that method contains no allocations of any kind. In my initial investigation of the JBM source, I guessed that the following frames which we do not see may be MessagingXAResource.end -> MessagingXAResource.unsetCurrentTransactionId -> ResourceManager.createLocalTx, a plausible control flow to a function where the objects observed to be leaking are actually being allocated. However, I cannot say with certainty that this is the case.
As per your suggestion, I will try not closing my JMS sessions explicitly.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118429#4118429
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118429
18 years, 6 months
PropertyNotFoundException
by Israel Fdez. Cabrera
Hi I'm new to JBoss and even to Java, so please, be patients ;) I was
reading the list archives and I found many similar questions but I could
not find one that helps.
I'm trying to develop a "helloWord" app to JBoss 4.2.2GA+Seam2.0.1CR1,
the code I wrote is this:
import javax.ejb.Local;
--------------The interface----------------------
@Local
public interface IHelloWorld {
public String sayHello();
}
---------------The action---------------------
import org.jboss.seam.annotations.Name;
@Name("helloWorld")
public class HelloWorldAction implements IHelloWorld {
public String sayHello() {
return "Hello World!";
}
}
------------The page------------------------
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core">
<head>
<title>Hi!</title>
</head>
<body>
<f:view>
<h:outputText value="#{helloWorld.sayHello}"/>
</f:view>
</body>
</html>
Deployment goes fine but when I try to load the sample page JBoss prints
the following:
javax.el.PropertyNotFoundException: Target Unreachable, identifier
'helloWorld' resolved to null
at org.jboss.el.parser.AstValue.getTarget(AstValue.java:38)
at org.jboss.el.parser.AstValue.invoke(AstValue.java:95)
at
org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
at org.jboss.seam.core.Expressions$2.invoke(Expressions.java:174)
at org.jboss.seam.navigation.Page.preRender(Page.java:264)
at org.jboss.seam.navigation.Pages.preRender(Pages.java:309)
at
org.jboss.seam.jsf.SeamPhaseListener.preRenderPage(SeamPhaseListener.java:551)
at
org.jboss.seam.jsf.SeamPhaseListener.beforeRenderResponse(SeamPhaseListener.java:462)
at
org.jboss.seam.jsf.SeamPhaseListener.beforeServletPhase(SeamPhaseListener.java:146)
at
org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:116)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:222)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:595)
I'm not too confident about my deployment process because (as I said
before) I'm new to this world so JBoss IDE for Eclipse is a dark piece
of software to me, and I did not found a way to deploy the project so I
wrote my own ant's build.xml which is this:
<project name="HelloWorld" default="deploy">
<description>
My First Seam Project
</description>
<property name="src" location="src" />
<property name="build" location="build" />
<property name="dist" location="dist" />
<property name="seam-libs"
location="/home/nebulha/Install/Java/JBoss/jboss-seam-2.0.1.CR1/lib" />
<property name="deployment-path"
location="/home/nebulha/Install/Java/JBoss/jboss-4.2.2.GA/server/default/deploy"
/>
<target name="compile" depends="init" description="Compile the source">
<javac srcdir="${src}" destdir="${build}">
<classpath>
<pathelement path="${classpath}"/>
<fileset dir="${seam-libs}">
<include name="*.jar"/>
</fileset>
</classpath>
</javac>
</target>
<target name="clean">
<delete dir="${dist}"/>
<delete dir="${build}"/>
</target>
<target name="init" depends="clean">
<tstamp/>
<mkdir dir="${dist}"/>
<mkdir dir="${build}"/>
<mkdir dir="${build}/view"/>
<mkdir dir="${build}/view/WEB-INF"/>
</target>
<target name="deploy"
depends="create_jar_dist,create_war_dist,create_ear_dist"
description="Deploy to a JBoss local server">
<copy todir="${deployment-path}"
file="${dist}/bananotree-helloworld.ear"/>
</target>
<target name="create_jar_dist" depends="compile"
description="generate the jar file to the distribution">
<jar jarfile="${dist}/bananotree-helloworld.jar"
basedir="${build}"/>
</target>
<target name="create_war_dist" depends="compile,prepare_war_dist"
description="generate the war file to the distribution">
<jar jarfile="${dist}/bananotree-helloworld.war"
basedir="${build}/view"/>
</target>
<target name="create_ear_dist" depends="compile,prepare_ear_dist"
description="generate the ear file to the distribution">
<jar jarfile="${dist}/bananotree-helloworld.ear"
basedir="${build}/ear"/>
</target>
<target name="prepare_ear_dist" depends="init">
<copy todir="${build}/ear" verbose="true">
<fileset dir="${dist}">
<include name="bananotree-helloworld.jar" />
<include name="bananotree-helloworld.war" />
</fileset>
<fileset dir="${seam-libs}">
<include name="*" />
<!-- <include name="jboss-seam.jar" />
<include name="jsf-facelets.jar"/>
<include name="jboss-el.jar"/>-->
</fileset>
</copy>
<copy todir="${build}/ear/META-INF" verbose="true">
<fileset dir="resources/META-INF">
<include name="*" />
</fileset>
</copy>
</target>
<target name="prepare_war_dist" depends="init">
<copy todir="${build}/view/WEB-INF" verbose="true">
<fileset dir="resources/WEB-INF">
<include name="*" />
</fileset>
</copy>
<copy todir="${build}/view/" verbose="true">
<fileset dir="${src}/view/">
<include name="helloWorld.xhtml"/>
</fileset>
</copy>
</target>
</project>
--
____________________
Israel Fdez. Cabrera
iferca(a)gmail.com
Linux registered user No.: 270292 [http://counter.li.org]
. 0 .
. . 0
0 0 0
18 years, 6 months
[JBoss Messaging] - Re: LocalTx, ClientTransaction leak?
by timfox
This doesn't look right to me.
The only time that creating a connection, creating a session, doing something, then closing them is not an antipattern, is when you are using a JMS JCA resource adaptor.
This is because when using a resource adaptor, when you call createConnection() it doesn't actually create an actual new JMS connection, it just retrieves one from a pool that the resource adaptor maintains.
If you're not using a JCA resource adaptor then each call to createConnection, createSession etc will actually create new JMS connections, sessions etc.
Connections and Sessions are heavyweight objects and designed to be re-used. If this is the case then performance is going to very, very bad. Hence it's an antipattern.
If you're seeing lots of actual sessions created it would imply you're not actually using the JCA resource adaptor.
Can you confirm that the connections you create are created using the JCA JMS managed connection factory?
(This is the connection factory you get by looking up typically from java:/JmsXA)
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossJMSRA
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118424#4118424
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118424
18 years, 6 months
[JBossWS] - Is this a valid JAX-WS binding file for wsconsume?
by Brad Marshall
I want wsconsume to do custom package to namespace mappings using the --binding option. I have no experience writing JAX-WS binding files. I created the one listed below, and while wsconsume generates no errors, it also ignores the the pacjage-namespace attributes in the file. What have I got wrong?
(Note that these same parameters, restructured for Axis and with escaping the colons, work with the Axis Wsdl2Java tool as a NsToPkg.properties file.)
| <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
| <jaxws:bindings xmlns:xsd="http://www.w3.org/2001/XMLSchema"
| xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
| wsdlLocation="CA.wsdl"
| xmlns:jaxws="http://java.sun.com/xml/ns/jaxws">
| <jaxws:package-namespace package="ca.webservice.valueobj.cse" namespace="urn:lm:tscse"/>
| <jaxws:package-namespace package="ca.webservice.request" namespace="urn:lm:tsqikreq"/>
| <jaxws:package-namespace package="ca.webservice.response" namespace="urn:lm:tsqikrsp"/>
| <jaxws:package-namespace package="ca.webservice.valueobj.ca" namespace="urn:anyco:tsca"/>
| <jaxws:package-namespace package="ca.webservice.valueobj.ca" namespace="urn:anyco:tscsact"/>
| <jaxws:package-namespace package="ca.webservice.valueobj.ci" namespace="urn:anyco:tsci"/>
| <jaxws:package-namespace package="ca.webservice.valueobj.ci" namespace="urn:anyco:tscis"/>
| <jaxws:package-namespace package="ca.webservice.valueobj.cp" namespace="urn:anyco:tscp"/>
| <jaxws:package-namespace package="ca.webservice.valueobj.cp" namespace="urn:anyco:tscspt"/>
| <jaxws:package-namespace package="ca.webservice.valueobj.fn" namespace="urn:anyco:tsfn"/>
| <jaxws:package-namespace package="ca.webservice.valueobj.fn" namespace="urn:anyco:tsfin"/>
| <jaxws:package-namespace package="ca.webservice.valueobj.id" namespace="urn:anyco:tsidy"/>
| <jaxws:package-namespace package="ca.webservice.valueobj.header" namespace="urn:anyco:tschdr"/>
| <jaxws:package-namespace package="ca.webservice.caws" namespace="http://www.anyco.com/wsdl/CA.wsdl"/>
| <jaxws:package-namespace package="ca.webservice.caws" namespace="http://www.anyco.com/wsdl/CA.xsd"/>
| </jaxws:bindings>
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118423#4118423
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118423
18 years, 6 months
[JBoss Seam] - Design question with facelets
by UTDrew
Hi,
I have a question about the proper way to design a project. I have an entity that the user can create, search for, and edit.
Creating the entity goes through a multi-page wizard. This is managed via a stateful session bean (WizardBean) with a conversation context and a jbpdl pageflow.
Editing the entity is on a single page. This is also managed via a stateful session bean (EditorBean).
In both of these beans I have the same variable name (ex: entity) with an @Out annotation.
Following the DRY principal, I have created a base class which contains the validation code and some other common ajax UI functions. I'm using facelets to re-use the UI for each of these. Because two different session/backing beans use these pages I created an alias variable and in the appropriate pages I use a c:set to set the variable's value before the ui:include tag. Since both backing beans export the same variable name I have not created a similar variable for the bean that is being edited/created.
My question is whether this is a good design pattern or not. I'm not sure if I should just be using one stateful bean with functionality for both create and edit and I'm not sure if it's okay for 2 different SFSB's to export the same variable name in a conversation scope (for the record the editing and creating should always happen in different conversations).
Thanks,
Drew
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118422#4118422
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118422
18 years, 6 months
[JBoss Seam] - Re: Data disappeared when clicking on Conversation outjectio
by jacob.orshalick
"gus888" wrote : I follow Seam wiki pagination sample: manage bean is stateless bean, outject a event or page scope page, but I don't know why I didn't get results back to page. Only after I used conversation outjection, I can got results displayed on page. However, when I try to click a link on the page, the results on the page disappear immediately.
Without some code (the view, the navigation, etc), I don't think anyone is going to be able to help here...
"gus888" wrote : I did not use a long-running conversation. I use stateless bean to outject a temporary conversation. Is it correct? Thank you very much.
If you outject to the conversation, you must begin a long-running conversation to have the data available on the next request (the next click of a commandLink). Otherwise, the temporary conversation will be destroyed and your data is gone on the next request.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118420#4118420
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118420
18 years, 6 months
[JBoss Seam] - Re: Wildcard for pages action
by mmichalek
I'm asking if there's any community interest in supporting wildcards in the from-action in pages.xml.
For example:
pages.xml:
| <navigation from-action="#{logoEditor.editLogo(*)}">
| <redirect view-id="/edit.xhtml"/>
| </navigation>
|
logoPage.xhtml:
| <h:commandLink value="LinkOne" action="#{logoEditor.editLogo(goodLogo)}"/>
|
| <h:commandLink value="LinkTwo" action="#{logoEditor.editLogo(badLogo)}"/>
|
For this example, both LinkOne and LinkTwo would navigate to /edit.xhtml because both of the actions match the #{logoEditor.editLogo(*)} pattern.
In other words, the specific variable names on an action don't matter when the navigation is evaluated because pages.xml specifies a wildcard (*) for the parameters.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118415#4118415
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118415
18 years, 6 months
[JBoss Seam] - Weird classloading problem
by adamw
Hello,
I have a really weird problem which happens only sometimes (that's the worst kind of problems) and in different ways. The only thing the symptoms have in common is ClassDefNotFoundException.
So, I have a standard seam app, generated with seam-gen, with only one exception: I have a separate .jar with interfaces and model classes which is deployed parallerly to the .ear (I separated the interfaces and model classes so I can access the ejb services from other apps).
It work fine until recently, however I have no idea when exactly the problem started to appear (as it appears sometimes, it's hard to find the cause ...).
I noticed that the errors appear more often if a method is called on regular intervals of time, beginning with the "org.jboss.seam.postInitialization" event (I use the quartz scheduler).
So the error is one of the following:
- java.lang.NoClassDefFoundError: org/jboss/seam/Instance
- java.lang.NoClassDefFoundError: org/jboss/seam/interceptor/Proxy
- java.lang.NoClassDefFoundError: <my model class>
- java.lang.NoClassDefFoundError: <my helper model class>; this exception is thrown during deserialization of that class; instances of it are held serialized in the DB.
Here is the stack trace for the first example:
| 19:55:49,230 INFO [Initialization] done initializing Seam
| 19:55:49,264 ERROR [JobRunShell] Job DEFAULT.-4531f942:1175fe7c870:-7ffd threw an unhandled Exception:
| javax.ejb.EJBException: org.jboss.seam.InstantiationException: Could not instantiate Seam component: feedsService
| at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:63)
| at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
| at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
| at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:106)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:214)
| at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:184)
| at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:81)
| at $Proxy170.update(Unknown Source)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
| at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
| at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:76)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
| at org.jboss.seam.async.AsynchronousInterceptor.aroundInvoke(AsynchronousInterceptor.java:50)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
| at org.jboss.seam.intercept.ClientSideInterceptor.invoke(ClientSideInterceptor.java:54)
| at org.javassist.tmp.java.lang.Object_$$_javassist_3.update(Object_$$_javassist_3.java)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
| at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125)
| at org.jboss.seam.async.AsynchronousInvocation.call(AsynchronousInvocation.java:52)
| at org.jboss.seam.async.Asynchronous.executeInContexts(Asynchronous.java:76)
| at org.jboss.seam.async.Asynchronous.execute(Asynchronous.java:45)
| at org.jboss.seam.async.QuartzDispatcher$QuartzJob.execute(QuartzDispatcher.java:304)
| at org.quartz.core.JobRunShell.run(JobRunShell.java:203)
| at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
| Caused by: org.jboss.seam.InstantiationException: Could not instantiate Seam component: feedsService
| at org.jboss.seam.Component.newInstance(Component.java:1962)
| at org.jboss.seam.Component.getInstance(Component.java:1865)
| at org.jboss.seam.Component.getInstance(Component.java:1832)
| at org.jboss.seam.Component.getInstanceInAllNamespaces(Component.java:2174)
| at org.jboss.seam.Component.getValueToInject(Component.java:2126)
| at org.jboss.seam.Component.injectAttributes(Component.java:1590)
| at org.jboss.seam.Component.inject(Component.java:1408)
| at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:45)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| at org.jboss.seam.persistence.EntityManagerProxyInterceptor.aroundInvoke(EntityManagerProxyInterceptor.java:26)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| at org.jboss.seam.persistence.HibernateSessionProxyInterceptor.aroundInvoke(HibernateSessionProxyInterceptor.java:27)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
| at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:50)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
| at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
| ... 42 more
| Caused by: java.lang.RuntimeException: by java.lang.NoClassDefFoundError: org/jboss/seam/Instance
| at org.jboss.seam.util.ProxyFactory.createClass(ProxyFactory.java:190)
| at org.jboss.seam.Component.createProxyFactory(Component.java:2252)
| at org.jboss.seam.Component.getProxyFactory(Component.java:1367)
| at org.jboss.seam.Component.wrap(Component.java:1358)
| at org.jboss.seam.Component.instantiateSessionBean(Component.java:1280)
| at org.jboss.seam.Component.instantiate(Component.java:1265)
| at org.jboss.seam.Component.newInstance(Component.java:1958)
| ... 70 more
| Caused by: javassist.CannotCompileException: by java.lang.NoClassDefFoundError: org/jboss/seam/Instance
| at javassist.util.proxy.FactoryHelper.toClass(FactoryHelper.java:165)
| at org.jboss.seam.util.ProxyFactory.createClass(ProxyFactory.java:186)
| ... 76 more
| Caused by: java.lang.NoClassDefFoundError: org/jboss/seam/Instance
| at java.lang.ClassLoader.defineClass1(Native Method)
| at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
| at sun.reflect.GeneratedMethodAccessor106.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at javassist.util.proxy.FactoryHelper.toClass2(FactoryHelper.java:177)
| at javassist.util.proxy.FactoryHelper.toClass(FactoryHelper.java:159)
| ... 77 more
|
(here you can see the quartz schduler at work, but it also happens when this is turned off, and looks very similar).
Anybody has any ideas, where at least I can start looking?
--
Adam
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118414#4118414
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118414
18 years, 6 months
[EJB 3.0] - JNDI look up datasource problem
by Roman.Angelov
Hi All :),
Today I tried to build my first ejb 3 (in fact I tried to use Entity and Session EJB - one Session bean calls Entities and make records in the tables). I tried two configurations of database- one for Jboss hybernate and one for Oracle 9i.
I used these xml files for datasource connections in the deploy folder:
1. The default hsqldb-ds.xml - the beans work fine (All actions are successful executed)
2. oracle-ds.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!-- The Hypersonic embedded database JCA connection factory config -->
<!-- $Id: hsqldb-ds.xml 39791 2006-01-10 18:14:42Z dimitris $ -->
<local-tx-datasource>
<jndi-name>TestDS</jndi-name>
<connection-url>jdbc:oracle:thin:@xx.xxx.xx.xx:1521:sidname</connection-url>
<!--
See on WIKI page below how to use Oracle's thin JDBC driver to connect with enterprise RAC.
-->
<!--
Here are a couple of the possible OCI configurations.
For more information, see http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/java.92...
<connection-url>jdbc:oracle:oci:@youroracle-tns-name</connection-url>
or
<connection-url>jdbc:oracle:oci:@(description=(address=(host=youroraclehost)(protocol=tcp)(port=1521))(connect_data=(SERVICE_NAME=yourservicename)))</connection-url>
Clearly, its better to have TNS set up properly.
-->
<driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
<user-name>user</user-name>
password
<min-pool-size>5</min-pool-size>
<max-pool-size>100</max-pool-size>
</local-tx-datasource>
* I changed the username, password, url and the sid name.
With the second configuration of datasource I have this exeption:
#####################################
21:04:37,343 ERROR [AbstractKernelController] Error installing to Start: name=pe
rsistence.units:ear=chapter8.ear,jar=chapter8-ejb.jar,unitName=actionBazaar stat
e=Create
javax.persistence.PersistenceException: org.hibernate.HibernateException: unknow
n Oracle major version [0]
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Con
figuration.java:663)
at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFa
ctory(HibernatePersistence.java:127)
at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnit
Deployment.java:259)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(Reflec
tionUtils.java:56)
at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(
ReflectMethodInfoImpl.java:110)
..................................
####################################
I used only persistence.xml in
with content
<persistence-unit name="actionBazaar">
<jta-data-source>java:TestDS</jta-data-source>
<!-- Uncomment for automatic table creation-->
</persistence-unit>
with <jta-data-source>java:DefaultDS</jta-data-source> works fine
What can be the problem that I cannot use Oracle datasource?
I use jboss-5.0.0.Beta3 and java 1.5.0_06-b05
Thanks a lot!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118413#4118413
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118413
18 years, 6 months
[JBoss jBPM] - logging jboss web console problem
by rodosa
Hello!!
I can't login in the jbpm web console. The login failed and the error is the following.
I'm using MySQL. I have to change anything in the jbpm-console.war???
Thanks
| 19:46:56,440 ERROR [STDERR] 09-ene-2008 19:46:56 com.sun.faces.lifecycle.ELResol
| verInitPhaseListener populateFacesELResolverForJsp
| INFO: JSF1027: [null] The ELResolvers for JSF were not registered with the JSP c
| ontainer.
| 19:46:56,659 ERROR [STDERR] 09-ene-2008 19:46:56 com.sun.facelets.compiler.TagLi
| braryConfig loadImplicit
| INFO: Added Library from: jar:file:/C:/jbpm/jbpm-jpdl-3.2.2/server/server/jbpm/t
| mp/deploy/tmp4741jbpm-console-exp.war/WEB-INF/lib/gravel-14.jar!/META-INF/gravel
| -compat.taglib.xml
| 19:46:56,659 ERROR [STDERR] 09-ene-2008 19:46:56 com.sun.facelets.compiler.TagLi
| braryConfig loadImplicit
| INFO: Added Library from: jar:file:/C:/jbpm/jbpm-jpdl-3.2.2/server/server/jbpm/t
| mp/deploy/tmp4741jbpm-console-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf
| -ui.taglib.xml
| 19:46:56,690 ERROR [STDERR] 09-ene-2008 19:46:56 com.sun.facelets.compiler.TagLi
| braryConfig loadImplicit
| INFO: Added Library from: jar:file:/C:/jbpm/jbpm-jpdl-3.2.2/server/server/jbpm/t
| mp/deploy/tmp4741jbpm-console-exp.war/WEB-INF/lib/gravel-14.jar!/META-INF/gravel
| -data.taglib.xml
| 19:46:57,002 ERROR [STDERR] 09-ene-2008 19:46:57 com.sun.facelets.compiler.TagLi
| braryConfig loadImplicit
| INFO: Added Library from: jar:file:/C:/jbpm/jbpm-jpdl-3.2.2/server/server/jbpm/t
| mp/deploy/tmp4741jbpm-console-exp.war/WEB-INF/lib/jbpm4jsf-14.jar!/META-INF/core
| .taglib.xml
| 19:46:57,034 ERROR [STDERR] 09-ene-2008 19:46:57 com.sun.facelets.compiler.TagLi
| braryConfig loadImplicit
| INFO: Added Library from: jar:file:/C:/jbpm/jbpm-jpdl-3.2.2/server/server/jbpm/t
| mp/deploy/tmp4741jbpm-console-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf
| -core.taglib.xml
| 19:46:57,049 ERROR [STDERR] 09-ene-2008 19:46:57 com.sun.facelets.compiler.TagLi
| braryConfig loadImplicit
| INFO: Added Library from: jar:file:/C:/jbpm/jbpm-jpdl-3.2.2/server/server/jbpm/t
| mp/deploy/tmp4741jbpm-console-exp.war/WEB-INF/lib/jbpm4jsf-14.jar!/META-INF/tfl-
| compat.taglib.xml
| 19:46:57,049 ERROR [STDERR] 09-ene-2008 19:46:57 com.sun.facelets.compiler.TagLi
| braryConfig loadImplicit
| INFO: Added Library from: jar:file:/C:/jbpm/jbpm-jpdl-3.2.2/server/server/jbpm/t
| mp/deploy/tmp4741jbpm-console-exp.war/WEB-INF/lib/jbpm4jsf-14.jar!/META-INF/tf.t
| aglib.xml
| 19:46:57,065 ERROR [STDERR] 09-ene-2008 19:46:57 com.sun.facelets.compiler.TagLi
| braryConfig loadImplicit
| INFO: Added Library from: jar:file:/C:/jbpm/jbpm-jpdl-3.2.2/server/server/jbpm/t
| mp/deploy/tmp4741jbpm-console-exp.war/WEB-INF/lib/gravel-14.jar!/META-INF/gravel
| -simple.taglib.xml
| 19:46:57,080 ERROR [STDERR] 09-ene-2008 19:46:57 com.sun.facelets.compiler.TagLi
| braryConfig loadImplicit
| INFO: Added Library from: jar:file:/C:/jbpm/jbpm-jpdl-3.2.2/server/server/jbpm/t
| mp/deploy/tmp4741jbpm-console-exp.war/WEB-INF/lib/gravel-14.jar!/META-INF/gravel
| -action.taglib.xml
| 19:46:57,080 ERROR [STDERR] 09-ene-2008 19:46:57 com.sun.facelets.compiler.TagLi
| braryConfig loadImplicit
| INFO: Added Library from: jar:file:/C:/jbpm/jbpm-jpdl-3.2.2/server/server/jbpm/t
| mp/deploy/tmp4741jbpm-console-exp.war/WEB-INF/lib/jbpm4jsf-14.jar!/META-INF/tfl.
| taglib.xml
| 19:46:57,096 ERROR [STDERR] 09-ene-2008 19:46:57 com.sun.facelets.compiler.TagLi
| braryConfig loadImplicit
| INFO: Added Library from: jar:file:/C:/jbpm/jbpm-jpdl-3.2.2/server/server/jbpm/t
| mp/deploy/tmp4741jbpm-console-exp.war/WEB-INF/lib/jbpm4jsf-14.jar!/META-INF/iden
| tity.taglib.xml
| 19:46:57,112 ERROR [STDERR] 09-ene-2008 19:46:57 com.sun.facelets.compiler.TagLi
| braryConfig loadImplicit
| INFO: Added Library from: jar:file:/C:/jbpm/jbpm-jpdl-3.2.2/server/server/jbpm/t
| mp/deploy/tmp4741jbpm-console-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jst
| l-core.taglib.xml
| 19:46:57,112 ERROR [STDERR] 09-ene-2008 19:46:57 com.sun.facelets.compiler.TagLi
| braryConfig loadImplicit
| INFO: Added Library from: jar:file:/C:/jbpm/jbpm-jpdl-3.2.2/server/server/jbpm/t
| mp/deploy/tmp4741jbpm-console-exp.war/WEB-INF/lib/gravel-14.jar!/META-INF/gravel
| -nav.taglib.xml
| 19:46:57,112 ERROR [STDERR] 09-ene-2008 19:46:57 com.sun.facelets.compiler.TagLi
| braryConfig loadImplicit
| INFO: Added Library from: jar:file:/C:/jbpm/jbpm-jpdl-3.2.2/server/server/jbpm/t
| mp/deploy/tmp4741jbpm-console-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf
| -html.taglib.xml
| 19:46:57,127 ERROR [STDERR] 09-ene-2008 19:46:57 com.sun.facelets.compiler.TagLi
| braryConfig loadImplicit
| INFO: Added Library from: jar:file:/C:/jbpm/jbpm-jpdl-3.2.2/server/server/jbpm/t
| mp/deploy/tmp4741jbpm-console-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jst
| l-fn.taglib.xml
| 19:46:57,127 ERROR [STDERR] 09-ene-2008 19:46:57 com.sun.facelets.compiler.TagLi
| braryConfig loadImplicit
| INFO: Added Library from: jar:file:/C:/jbpm/jbpm-jpdl-3.2.2/server/server/jbpm/t
| mp/deploy/tmp4741jbpm-console-exp.war/WEB-INF/lib/jbpm4jsf-14.jar!/META-INF/tf-c
| ompat.taglib.xml
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118408#4118408
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118408
18 years, 6 months
[JBoss Tools (users)] - Re: MyEclipse & JBoss Tools
by klob
"max.andersen(a)jboss.com" wrote : please - what *exact* error message did you get ? Which duplicates ? What nullpointers ? stacktraces ? Logs ?
MyEclipse uses it own executable which pops up a problems occurred dialog box which says "Duplicate Errors", but I don't see anything in the Eclipse log.
At the top of the window when doing the install it says "WTP JAVA EE (MYECLIPSE INCOMPATIBLE) - ECLIPSE PLATFORM
But after re-installing again, it seems that many more things work, including the JBoss Tools. I just did a few quick tests. This time I used http://download.jboss.org/jbosstools/updates/development as the site.xml.
Exception stack trace:
==============================================
!MESSAGE An unexpected exception was thrown.
!STACK 0
java.lang.NullPointerException
at org.jboss.tools.jst.jsp.outline.ValueHelper.updateFacelets(ValueHelper.java:314)
at org.jboss.tools.jst.jsp.outline.ValueHelper.init(ValueHelper.java:109)
at org.jboss.tools.jst.jsp.outline.ValueHelper.(ValueHelper.java:81)
at org.jboss.tools.jst.jsp.outline.JSPPropertySourceAdapter.(JSPPropertySourceAdapter.java:66)
at org.jboss.tools.jst.jsp.outline.JSPPropertySheetConfiguration$JSPPropertySourceProvider0.getPropertySource(JSPPropertySheetConfiguration.java:56)
at org.eclipse.ui.views.properties.PropertySheetEntry.getPropertySource(PropertySheetEntry.java:470)
at org.eclipse.ui.views.properties.PropertySheetEntry.setValues(PropertySheetEntry.java:752)
at org.eclipse.ui.views.properties.PropertySheetViewer.setInput(PropertySheetViewer.java:974)
at org.eclipse.ui.views.properties.PropertySheetPage.selectionChanged(PropertySheetPage.java:473)
at org.eclipse.wst.sse.ui.internal.properties.ConfigurablePropertySheetPage.selectionChanged(ConfigurablePropertySheetPage.java:166)
at org.eclipse.ui.internal.AbstractSelectionService.firePostSelection(AbstractSelectionService.java:179)
at org.eclipse.ui.internal.AbstractSelectionService$2.selectionChanged(AbstractSelectionService.java:71)
at org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageSelectionProvider$2.run(JSPMultiPageSelectionProvider.java:144)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageSelectionProvider.fireSelectionChanged(JSPMultiPageSelectionProvider.java:142)
at org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageSelectionProvider.firePostSelectionChanged(JSPMultiPageSelectionProvider.java:131)
at org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor$1.handlePostSelectionChanged(JSPMultiPageEditor.java:306)
at org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor$1$1.selectionChanged(JSPMultiPageEditor.java:289)
at org.eclipse.wst.sse.ui.StructuredTextEditor$6.run(StructuredTextEditor.java:910)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.wst.sse.ui.StructuredTextEditor$StructuredSelectionProvider.fireSelectionChanged(StructuredTextEditor.java:908)
at org.eclipse.wst.sse.ui.StructuredTextEditor$StructuredSelectionProvider.handlePostSelectionChanged(StructuredTextEditor.java:966)
at org.eclipse.wst.sse.ui.StructuredTextEditor$5.selectionChanged(StructuredTextEditor.java:889)
at org.eclipse.jface.text.TextViewer.firePostSelectionChanged(TextViewer.java:2546)
at org.eclipse.jface.text.TextViewer.firePostSelectionChanged(TextViewer.java:2498)
at org.eclipse.jface.text.TextViewer$5.run(TextViewer.java:2477)
at org.eclipse.swt.widgets.Display.runTimer(Display.java:3745)
at org.eclipse.swt.widgets.Display.messageProc(Display.java:2967)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2265)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3291)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
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.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
==============================================
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118404#4118404
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118404
18 years, 6 months
[JBoss Seam] - Re: Data disappeared when clicking on Conversation outjectio
by gus888
"jacob.orshalick" wrote : "gus888" wrote : Question 1 : I tried different outjection scopes: EVENT, PAGE and CONVERSATION, and only the CONVERSATION scope works (outjected data were displayed on web). When I used EVENT and PAGE scopes, no data were displayed on web page. I don't know why?
|
| What is the rest of the scenario? How are these values getting populated? Are you executing an action then redirecting?
|
Hi Jacob, thank you for your reply.
I follow Seam wiki pagination sample: manage bean is stateless bean, outject a event or page scope page, but I don't know why I didn't get results back to page. Only after I used conversation outjection, I can got results displayed on page. However, when I try to click a link on the page, the results on the page disappear immediately. I really feel frustrated.
"jacob.orshalick" wrote :
| "gus888" wrote : Question 2 : When I clicked h:commandLinks of individual email and phone, the whole page data disappeared. Anybody can explain why? Thank you in advance.
|
| Have you started a long-running conversation? Data outjected to conversation scope will be outjected to the temporary conversation which is destroyed at the end of the request if you don't promote the conversation to long-running. I did not use a long-running conversation. I use stateless bean to outject a temporary conversation. Is it correct? Thank you very much.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118391#4118391
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118391
18 years, 6 months
[Beginners Corner] - JBOSS JSTL <sql:dataSource> issue
by WE-energies2
I have seen many posting on this issue, but none of them solved my issue.
I can not get <sql:dataSource> tag to connect to my data Source file.
I am now thinking my app/server is setup wrong.
I can get the JSP to work if I do not use the datasource file.
I have that option commented out in the sample code below.
Here is the quick sample JSP .
| <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
| <%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql"%>
|
|
| <sql:setDataSource dataSource="OracleDS" />
| <!-- driver="oracle.jdbc.driver.OracleDriver"
| url="jdbc:Oracle:thin:@pxxxyyyzzzz:1521:pedcd50k" user="xxxxxx"
| password="yyyyyyy" />
| -->
| <sql:query var="data" >
| select * from coll_active_campaigns
| </sql:query>
|
| <html>
| <head>
| <title></title>
| </head>
|
| <body>
| <br />
| <form>
| <table align="left" cellspacing=2 cellpadding=3 border="1" width="627"
| height="203">
| <c:forEach var="camp" items="${data.rows}">
| <tr>
| <td>
| ${camp.schedule_id}
| </td>
| <td>
| ${camp.campaign_id}
| </td>
| <td>
| ${camp.cd_campaign}
| </td>
| <td>
| ${camp.campaign}
| </td>
| <br />
| </tr>
| </c:forEach>
| </table>
| </form>
| <br />
|
| </body>
| </html>
|
| <datasources>
| <local-tx-datasource>
| <jndi-name>OracleDS</jndi-name>
| <connection-url>jdbc:oracle:thin:@pxxxxxyyyyzzzzz:1521:pedcd50k</connection-url>
|
| <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
| <user-name>xxxxxxx</user-name>
| <password>yyyyy</password>
| <!-- Uses the pingDatabase method to check a connection is still valid before handing it out from the pool -->
| <!--valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker</valid-connection-checker-class-name-->
| <!-- Checks the Oracle error codes and messages for fatal errors -->
| <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
| <!-- sql to call when connection is created
| <new-connection-sql>some arbitrary sql</new-connection-sql>
| -->
|
| <!-- sql to call on an existing pooled connection when it is obtained from pool - the OracleValidConnectionChecker is prefered
| <check-valid-connection-sql>some arbitrary sql</check-valid-connection-sql>
| -->
|
| </local-tx-datasource>
|
| </datasources>
|
|
I get this error from JBoss:
10:43:00,131 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "java.sql.SQLException: No suitable driver"
at org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.getConnection(QueryTagSupport.java:276)
at org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.doStartTag(QueryTagSupport.java:
Is there something I am missing in the setup?
The datasource file seems to be ok, it deploy correctly on startup.
10:42:38,696 INFO [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=OracleDS' to JNDI name 'java:OracleDS'
I am using JBoss 4.0.5, Oracle 10.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118388#4118388
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118388
18 years, 6 months
[EJB 3.0] - Re: Preview the next EJB 3 implementation bundled in JBoss A
by mjhammel
I might be missing something here but it appears cglib.jar is missing from the distribution:
mjhammel(tty4)$ pwd
| /home/mjhammel/src/cei/jboss-5.0.0.Beta3
| mjhammel(tty4)$ find . -iname "*cglib*"
| mjhammel(tty4)$ find . -iname "*dom4j*"
| ./lib/dom4j.jar
| ./docs/licenses/dom4j.txt
| mjhammel(tty4)$
I use Hibernate for reverse engineering a db and this process fails without this jar file:
-genConfig:
| [hibernatetool] Executing Hibernate Tool with a JDBC Configuration (for reverse engineering)
| [hibernatetool] 1. task: hbm2hbmxml (Generates a set of hbm.xml files)
| [hibernatetool] - Hibernate 3.2.4.sp1
| [hibernatetool] - hibernate.properties not found
| [hibernatetool] - Bytecode provider name : cglib
| [hibernatetool] - using JDK 1.4 java.sql.Timestamp handling
|
| BUILD FAILED
| java.lang.NoClassDefFoundError: net/sf/cglib/core/KeyFactory
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118379#4118379
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118379
18 years, 6 months
[Installation, Configuration & DEPLOYMENT] - deploy ear on jboss5 BETA3
by florian79
I try to deploy an EAR to the all configuration of jboss5beta3 and get the following exception (the same ear works fine at jboss4.x):
|
| 16:58:15,154 INFO [Catalina] Server startup in 267 ms
| 16:58:17,971 WARN [BeanSchemaBinding] You should use the 2.0 version of the Microcontainer xml. xmlns='urn:jboss:bean-deployer:2.0'
| 16:58:18,249 INFO [PersistenceUnitParsingDeployer] Found persistence units [org.jboss.ejb3.metadata.jpa.spec.PersistenceUnitMetaData@1ac8c3d{name=dooris-portal}]
| 16:58:18,299 ERROR [AbstractKernelController] Error installing to Parse: name=vfsfile:/path/***/file.ear/ state=Not Installed mode=Manual requiredState=Parse
| org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfsfile:/path/***/file.ear/loom-portal.war/
| at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
| at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:232)
| at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:199)
| at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.deploy(AbstractParsingDeployerWithOutput.java:162)
| at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:169)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:853)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:906)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:794)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:327)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:622)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:411)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:498)
| at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:506)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:245)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:131)
| at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:408)
| at org.jboss.Main.boot(Main.java:208)
| at org.jboss.Main$1.run(Main.java:534)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: cvc-complex-type.2.4.d: Invalid content was found starting with element 'description'. No child element is expected at this point. @ *unknown*[11,17]
| at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:193)
| at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:153)
| at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:120)
| at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(AbstractVFSParsingDeployer.java:86)
| at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:223)
| ... 21 more
| Caused by: org.xml.sax.SAXException: cvc-complex-type.2.4.d: Invalid content was found starting with element 'description'. No child element is expected at this point. @ *unknown*[11,17]
| at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$MetaDataErrorHandler.error(SaxJBossXBParser.java:432)
| at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
| at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
| at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
| at org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown Source)
| at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown Source)
| at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source)
| at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source)
| at org.apache.xerces.xinclude.XIncludeHandler.startElement(Unknown Source)
| at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
| at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
| at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
| at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
| at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
| at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
| at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
| at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
| at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:189)
| ... 25 more
| 16:58:21,836 INFO [AspectDeployer] Deploying xml into org.jboss.aop.AspectManager@1a142ec for org.jboss.mx.loading.UnifiedClassLoader3@1c407d5{ url=vfsfile:/home/fb/Programme/jboss-5.0.0.Beta3/server/all/deploy/ejb3-interceptors-aop.xml ,addedOrder=48}
| 16:58:22,285 INFO [AspectDeployer] Deploying AOP annotations into org.jboss.aop.AspectManager@1a142ec for org.jboss.mx.loading.UnifiedClassLoader3@10ec1a3{ url=vfsfile:/home/fb/Programme/jboss-5.0.0.Beta3/server/all/deploy/cluster/jbossweb-cluster.aop ,addedOrder=53}
| 16:58:22,289 INFO [AspectDeployer] Deploying xml into org.jboss.aop.AspectManager@1a142ec for org.jboss.mx.loading.UnifiedClassLoader3@10ec1a3{ url=vfsfile:/home/fb/Programme/jboss-5.0.0.Beta3/server/all/deploy/cluster/jbossweb-cluster.aop ,addedOrder=53}
| 16:58:23,200 INFO [TomcatDeployment] deploy, ctxPath=/invoker, vfsUrl=httpha-invoker.sar/invoker.war
| 16:58:30,472 INFO [SnmpAgentService] SNMP agent going active
| 16:58:30,711 INFO [TomcatDeployment] deploy, ctxPath=/, vfsUrl=ROOT.war
| 16:58:38,755 INFO [CorbaNamingService] CORBA Naming Started
| 16:58:39,056 INFO [MailService] Mail Service bound to java:/Mail
| 16:58:39,448 INFO [TomcatDeployment] deploy, ctxPath=/jmx-console, vfsUrl=jmx-console.war
| 16:58:40,444 INFO [JMXConnectorServerService] JMX Connector server: service:jmx:rmi://localhost/jndi/rmi://localhost:1090/jmxconnector
| 16:58:44,637 INFO [ManagedEndpointRegistry] JBoss Web Services - JBossWS
| 16:58:44,651 INFO [ManagedEndpointRegistry] jbossws-native-2.0.0.GA (build=200707051029)
| 16:58:44,655 ERROR [AbstractKernelController] Error installing to Create: name=WSEndpointRegistry state=Configured
| java.lang.NoSuchFieldError: OBJECT_NAME
| at org.jboss.wsf.stack.jbws.ManagedEndpointRegistry.create(ManagedEndpointRegistry.java:146)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:56)
| at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:110)
| at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
| at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:214)
| at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:45)
| at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:108)
| at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:69)
| at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221)
| at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(KernelControllerContextAction.java:135)
| at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(KernelControllerContextAction.java:46)
| at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
| at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
| at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:327)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:574)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:398)
| at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:69)
| at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:42)
| at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:65)
| at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
| at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:169)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:853)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:874)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:906)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:794)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:327)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:622)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:411)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:498)
| at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:506)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:245)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:131)
| at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:408)
| at org.jboss.Main.boot(Main.java:208)
| at org.jboss.Main$1.run(Main.java:534)
| at java.lang.Thread.run(Thread.java:595)
| 16:58:45,403 ERROR [AbstractKernelController] Error installing to PreInstall: name=WSServiceRefHandler state=Real
| java.lang.VerifyError: (class: org/jboss/ws/core/client/ServiceRefHandlerImpl, method: newServiceRefMetaData signature: ()Lorg/jboss/ws/integration/ServiceRefMetaData;) Wrong return type in function
| at java.lang.Class.getDeclaredConstructors0(Native Method)
| at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
| at java.lang.Class.getDeclaredConstructors(Class.java:1808)
| at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl.getDeclaredConstructors(IntrospectionTypeInfoFactoryImpl.java:437)
| at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl.getConstructors(IntrospectionTypeInfoFactoryImpl.java:143)
| at org.jboss.reflect.plugins.ClassInfoImpl.getDeclaredConstructors(ClassInfoImpl.java:424)
| at org.jboss.beans.info.plugins.AbstractBeanInfoFactory.getConstructors(AbstractBeanInfoFactory.java:178)
| at org.jboss.beans.info.plugins.AbstractBeanInfoFactory.getBeanInfo(AbstractBeanInfoFactory.java:135)
| at org.jboss.config.plugins.AbstractConfiguration.getBeanInfo(AbstractConfiguration.java:71)
| at org.jboss.kernel.plugins.config.AbstractKernelConfig.getBeanInfo(AbstractKernelConfig.java:55)
| at org.jboss.kernel.plugins.config.AbstractKernelConfigurator.getBeanInfo(AbstractKernelConfigurator.java:65)
| at org.jboss.kernel.plugins.config.AbstractKernelConfigurator.getBeanInfo(AbstractKernelConfigurator.java:84)
| at org.jboss.kernel.plugins.dependency.PreInstallAction.installActionInternal(PreInstallAction.java:62)
| at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(KernelControllerContextAction.java:135)
| at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(KernelControllerContextAction.java:46)
| at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
| at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
| at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:327)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:574)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:398)
| at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:69)
| at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:42)
| at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:65)
| at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
| at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:169)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:853)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:874)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:906)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:794)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:327)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:622)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:411)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:498)
| at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:506)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:245)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:131)
| at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:408)
| at org.jboss.Main.boot(Main.java:208)
| at org.jboss.Main$1.run(Main.java:534)
| at java.lang.Thread.run(Thread.java:595)
| 16:58:45,414 ERROR [AbstractKernelController] Error installing to PreInstall: name=ServiceRefHandler state=Real
|
|
any idea? does it depend on the new vfs?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118369#4118369
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118369
18 years, 6 months