[EJB 3.0] - Re: MDB deployment problem
by chiragrpatel
slight problem with my previous post. It didn't quite work as well as I had hoped. It does prevent the exception from occuring, but then it stops picking up my entries from ejb-jar.xml and jboss.xml. If I change the <ejb-name> to match what I put in the annotation, i get the "Unable to create activation spec" error again.
Basically, it seems I get this problem anytime I have xml entries in ejb-jar.xml or jboss.xml (or both), and if the <ejb-name> matches what's being deployed. This is problematic because I want to specify the topic name in jboss.xml, but I can't because i can't have a jboss.xml entry with the matching <ejb-name>. This seems like a pretty big problem. Is this a JBoss bug?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962205#3962205
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962205
19 years, 3 months
[Installation, Configuration & Deployment] - Jboss hangs, no errors in logs
by jshein
Running version : jboss-3.2.3
I have an odd situation here. I just started at a new company, and they have an older version of jboss running. Every week or so, the server just hangs. No errors in the logs at all. I tried starting it, tailing the output to a text file, and there was nothing produced when it failed.
Any ideas, or guidance of where to look next would be appreciated.
The error that shows up on the browser is as follows:
org.apache.jasper.JasperException: Unable to compile class for JSP
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:478)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:220)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.jboss.web.tomcat.tc4.statistics.ContainerStatsValve.invoke(ContainerStatsValve.java:76)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:65)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:197)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:605)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:677)
at java.lang.Thread.run(Thread.java:534)
root cause
Can't load default task list
at org.apache.tools.ant.Project.init(Project.java:264)
at org.apache.jasper.compiler.Compiler.getProject(Compiler.java:172)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:273)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:220)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.jboss.web.tomcat.tc4.statistics.ContainerStatsValve.invoke(ContainerStatsValve.java:76)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:65)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:197)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:605)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:677)
at java.lang.Thread.run(Thread.java:534)
Excerpts from the log files, and the tailed file are as follows:
[jboss@mtbol jboss]$ grep -i error jboss_start2.txt
11:28:15,692 INFO [Engine] StandardHost[localhost]: MAPPING configuration error for request URI /MTBOL/bollist.jsp
11:28:15,692 INFO [Engine] StandardHost[localhost]: MAPPING configuration error for request URI /MTBOL/bollist.jsp
11:28:22,724 ERROR [ClusterPartition] Starting failed
java.util.zip.ZipException: error in opening zip file
java.util.zip.ZipException: error in opening zip file
11:28:32,667 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean operation 'checkIncompleteDeployments()'
16:06:21,584 INFO [Engine] StandardHost[localhost]: MAPPING configuration error for request URI /mtbol
16:06:21,584 INFO [Engine] StandardHost[localhost]: MAPPING configuration error for request URI /mtbol
[jboss@mtbol jboss]$ grep -i warn jboss_start2.txt
11:28:03,697 WARN [Heartbeat] Heartbeat disabled
11:28:11,596 WARN [EmbeddedTomcatService] Unable to invoke setDelegate on class loader:org.jboss.web.tomcat.tc4.WebCtxLoader$ENCLoader@186f3b3
11:28:13,418 WARN [EmbeddedTomcatService] Unable to invoke setDelegate on class loader:org.jboss.web.tomcat.tc4.WebCtxLoader$ENCLoader@a22671
11:28:14,959 WARN [EmbeddedTomcatService] Unable to invoke setDelegate on class loader:org.jboss.web.tomcat.tc4.WebCtxLoader$ENCLoader@528780
11:28:22,729 WARN [ServiceController] Problem starting service jboss:service=DefaultPartition
11:28:25,235 WARN [EmbeddedTomcatService] Unable to invoke setDelegate on class loader:org.jboss.web.tomcat.tc4.WebCtxLoader$ENCLoader@caea19
11:28:26,929 WARN [EmbeddedTomcatService] Unable to invoke setDelegate on class loader:org.jboss.web.tomcat.tc4.WebCtxLoader$ENCLoader@1edf84f
11:28:32,181 WARN [EmbeddedTomcatService] Unable to invoke setDelegate on class loader:org.jboss.web.tomcat.tc4.WebCtxLoader$ENCLoader@1d5b945
11:28:32,457 WARN [JARDeployer] Failed to add deployable jar: file:/usr/local/jboss-3.2.3/server/all/tmp/deploy/tmp56396MTBOL.
11:28:32,657 WARN [JARDeployer] Failed to add deployable jar: file:/usr/local/jboss-3.2.3/server/all/tmp/deploy/tmp56397MTBOL.bak.tar.gz
11:30:24,417 WARN [UserSuppliedConnectionProvider] No connection properties specified - the user must supply JDBC connections
12:49:14,704 WARN [UserSuppliedConnectionProvider] No connection properties specified - the user must supply JDBC connections
12:49:17,122 WARN [UserSuppliedConnectionProvider] No connection properties specified - the user must supply JDBC connections
12:49:33,260 WARN [UserSuppliedConnectionProvider] No connection properties specified - the user must supply JDBC connections
12:49:33,875 WARN [UserSuppliedConnectionProvider] No connection properties specified - the user must supply JDBC connections
12:49:36,295 WARN [UserSuppliedConnectionProvider] No connection properties specified - the user must supply JDBC connections
12:50:10,230 WARN [UserSuppliedConnectionProvider] No connection properties specified - the user must supply JDBC connections
12:50:12,860 WARN [UserSuppliedConnectionProvider] No connection properties specified - the user must supply JDBC connections
cd /usr/local/jboss-3.2.3/server/all/log
[root@mtbol log]# grep -i warn server.log
2006-07-31 08:31:44,294 WARN [net.sf.hibernate.connection.UserSuppliedConnectionProvider] No connection properties specified - the user must supply JDBC connections
2006-07-31 08:31:44,431 WARN [net.sf.hibernate.connection.UserSuppliedConnectionProvider] No connection properties specified - the user must supply JDBC connections
2006-07-31 08:31:56,518 WARN [net.sf.hibernate.connection.UserSuppliedConnectionProvider] No connection properties specified - the user must supply JDBC connections
2006-07-31 08:31:57,392 WARN [net.sf.hibernate.connection.UserSuppliedConnectionProvider] No connection properties specified - the user must supply JDBC connections
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962204#3962204
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962204
19 years, 3 months
[JBoss jBPM] - NPE from ProcessState
by brosnt
I have a simple example usage of the ProcessState node, where a parent process contains a reference to a child process via a ProcessState node. The process definitions are stored in a relational database.
The child process actually executes successfully (I have a single node with an ActionHandler that prints the node name to System.out).
However, I receive a NullPointerException in the ProcessState.leave() method - the executionContext.getSubProcessInstance() method call (first line in the method) returns null, and the next line then attempts to invoke a method on this null reference.
I see from the debugger that the executionContext object in the ProcessState.execute() method is different from the executionObject I later see in the ProcessState.leave() method - though in both methods the subProcessInstance member of the executionContext object is null.
Here are my two process definitions:
<process-definition
xmlns="" name="parent">
<start-state name="start">
</start-state>
<end-state name="end1"></end-state>
<process-state name="process1">
<sub-process name="child"/>
</process-state>
</process-definition>
<process-definition
xmlns="" name="child">
<start-state name="start">
</start-state>
<end-state name="end1"></end-state>
<action name="action" config-type="bean" class="SysoutActionHandler">
</process-definition>
Any ideas? Given my limited analysis of the ProcessState.java code and related classes, I do not see how this can actually work - am I seeing a bug?
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962201#3962201
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962201
19 years, 3 months
[EJB 3.0] - hibernate couldn't find column
by carstenkeuch
Hi there,
i'm new to Hibernate, EJB3 and surrounding stuff. I'm using JBoss 4.0.4 and within delivered Hibernate engine. Database is Postgre 8.1.
I've a problem with a generated query. The stack trace is (outtake):
anonymous wrote :
| 2006-08-01 16:12:53,273 WARN [org.hibernate.util.JDBCExceptionReporter] SQL Error: 0, SQLState: 42703
| 2006-08-01 16:12:53,273 ERROR [org.hibernate.util.JDBCExceptionReporter] ERROR: column factactual0_.keydate does not exist
| 2006-08-01 16:12:53,273 DEBUG [org.hibernate.util.JDBCExceptionReporter] could not execute query [select factactual0_.keydate as keydate291_, factactual0_.keyorga as keyorga291_, factactual0_.key as key291_, factactual0_.time as time291_, factactual0_.op_time as op6_291_, factactual0_.max as max291_, factactual0_.min as min291_, factactual0_.op_quantity as op9_291_ from fact_data_actual factactual0_ where factactual0_.keyoperation=? and (factactual0_.keyorga in (1 , 2 , 3))]
| org.postgresql.util.PSQLException: ERROR: column factactual0_.keydate does not exist
| at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1512)
| at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1297)
| at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:188)
| at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:430)
| at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:346)
| at org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:250)
|
Following the bean code:
| private int keydate, keyorga;
| private float time, task, minTime, maxTime;
| private FactDataActualPK key;
|
| @Id
| public FactDataActualPK getKey() {
| return key;
| }
|
| public void setKey(FactDataActualPK key) {
| this.key = key;
| }
|
| @Column(name = "key_date")
| public int getKeydate() {
| return keydate;
| }
|
| public void setKeydate(int keyDate) {
| this.keydate = keyDate;
| }
|
| @Column(name = "key_orga")
| public int getKeyorga() {
| return keyorga;
| }
|
| public void setKeyorga(int keyOrga) {
| this.keyorga = keyOrga;
| }
|
Has anybode an idea why Hibernate is saying that the column "keydate" is missing? The sql error sais that the column is not defined! But: The property exists and the @Column Annotation matches the database. The query seems to be correct.
Thankx for your efforts,
Regards,
Carsten.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962199#3962199
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962199
19 years, 3 months
[JBoss Seam] - Re: Seam component instantiation problem
by klsateesh
Hi Gavin,
Thanks for your reply..
I have included the jboss-ejb3-all.jar in the CLASSPATH and when i try to run the example i am getting the below Exception.
I have searched the forum for this and it seems a ClassLoading Issue and a JBoss bug .Not sure whether it is resolved or not..Could u pls let us know..
|
| 10:31:24,805 ERROR [ExecutionHandler] Error during remote request
| java.lang.IllegalArgumentException: value found for In attribute has the wrong type: helloAction
| at org.jboss.seam.Component.getInstance(Component.java:1273)
| at org.jboss.seam.Component.getInstance(Component.java:1246)
| at org.jboss.seam.remoting.Call.execute(Call.java:101)
| at org.jboss.seam.remoting.ExecutionHandler.handle(ExecutionHandler.java:92)
| at org.jboss.seam.remoting.SeamRemotingServlet.doPost(SeamRemotingServlet.java:56)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java
| :664)
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| at java.lang.Thread.run(Thread.java:595)
|
Thanks
Sateesh
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962198#3962198
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962198
19 years, 3 months
[Beginners Corner] - Re: comp not bound
by jaikiran
anonymous wrote : +- ConverterBean (proxy: $Proxy52 implements interface converter.ConverterHome,interface javax.ejb
| .Handle)
So your lookup should be:
Context ctx = new InitialContext();
| Object objref = ctx.lookup("ConverterBean");
This should work. However, i am surprised as to why your bean was bound to the jndi-name "ConverterBean" instead of "ejb/ConverterBean", which you have mentioned in the jboss.xml as:
<jboss>
| <enterprise-beans>
| <session>
| <ejb-name>ConverterBean</ejb-name>
| <jndi-name>ejb/ConverterBean</jndi-name>
| <method-attributes>
| </method-attributes>
| </session>
| </enterprise-beans>
| </jboss>
Where are you placing this jboss.xml file(just wanted to make sure that the server is picking up this file during deployment)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962197#3962197
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962197
19 years, 3 months