[JBoss Portal] - Error runing application in jboss EAP
by Utkarsh Shinde
Utkarsh Shinde [http://community.jboss.org/people/utkarsh_shinde] created the discussion
"Error runing application in jboss EAP"
To view the discussion, visit: http://community.jboss.org/message/629162#629162
--------------------------------------------------------------
Hi,
I deployed appication in jboss EAP and following error arises.
10:54:43,694 INFO [STDOUT] [EL Finer]: 2011-09-29 10:54:43.694--UnitOfWork(16473041)--Thread(Thread[http-localhost%2F127.0.0.1-8085-1,5,jboss])--end unit of work commit
10:54:43,703 SEVERE [viewhandler] Error Rendering View[/AXSO/DISSOLUTION_BY_REGISTRAR/DISSOLUTION_BY_REGISTRAR_WIN_MAIN.jspx]
javax.faces.FacesException: javax.el.ELException: /AXSO/DISSOLUTION_BY_REGISTRAR/DISSOLUTION_BY_REGISTRAR_CAN_POPUP_2.jspx @59,196 value="#{BindingsDISSOLUTION_BY_REGISTRAR.DISSOLUTION_BY_REGISTRAR_BLK_POPUP_2.currentRow.NOTICE_DATE}": Error reading 'NOTICE_DATE' on type $Proxy218
at javax.faces.component.UIOutput.getValue(UIOutput.java:187)
at org.richfaces.renderkit.CalendarRendererBase.getInputValue(CalendarRendererBase.java:515)
at org.richfaces.renderkit.html.CalendarRenderer.doEncodeEnd(CalendarRenderer.java:297)
at org.richfaces.renderkit.html.CalendarRenderer.doEncodeEnd(CalendarRenderer.java:531)
at org.ajax4jsf.renderkit.RendererBase.encodeEnd(RendererBase.java:134)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:861)
at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:242)
at com.sun.faces.renderkit.html_basic.GridRenderer.renderRow(GridRenderer.java:180)
at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:127)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:234)
at com.sun.faces.renderkit.html_basic.GridRenderer.renderRow(GridRenderer.java:180)
at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:127)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:234)
at com.sun.faces.renderkit.html_basic.GridRenderer.renderRow(GridRenderer.java:180)
at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:127)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:277)
at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:258)
at org.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.java:200)
at org.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.java:195)
at org.ajax4jsf.renderkit.RendererBase.encodeChildren(RendererBase.java:120)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:930)
at javax.faces.render.Renderer.encodeChildren(Renderer.java:148)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:234)
at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:106)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:234)
at com.sun.faces.renderkit.html_basic.GridRenderer.renderRow(GridRenderer.java:180)
at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:127)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:234)
at com.sun.faces.renderkit.html_basic.GridRenderer.renderRow(GridRenderer.java:180)
at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:127)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:234)
at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:106)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:930)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)
at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:530)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
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.doFil
I think problem in java code
The java code is here.
public void setNOTICE_DATE(java.util.Date NOTICE_DATE) {
if (NOTICE_DATE != null) {
this.NOTICE_DATE = NOTICE_DATE.toString();
} else {
this.NOTICE_DATE = null;
}
}
public java.util.Date getNOTICE_DATE() {
if (NOTICE_DATE == null) {
return null;
}
return new java.util.Date(new Long(NOTICE_DATE));
}
Please reply.............
Utkarsh
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/629162#629162]
Start a new discussion in JBoss Portal at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
12 years, 8 months
[Beginner's Corner] - Can you change the context root of the AS7 management console?
by Tom Francis
Tom Francis [http://community.jboss.org/people/tom17] created the discussion
"Can you change the context root of the AS7 management console?"
To view the discussion, visit: http://community.jboss.org/message/629146#629146
--------------------------------------------------------------
Hi,
This is my first post, but I have spent a couple of days searching for this info, but to no avail. First, as I am new here, some background about me.
I work in a middleware team and mostly look after Weblogic & Websphere instances, but I am the main resource on a project that uses AS 4.0.5GA. As such, I have mugged my way around this for a few years and am comfortable to a degree. I don't actually write any code so my involvement is pretty thin.
Now I want to get more accustomed to newer JBoss versions so I have installed AS7 at home. All works fine and I access it through an apache reverse proxy using mod_rewrite & mod_proxy. As my web server is public facing, I have it nestled in a few subdirectories deep.
Now, I created a reverse proxy for the management console as well, but it seems there is a conflict between the directory I have it mapped to on Apache (Like http://mysite.com/mystuff/test/jboss-console/ http://mysite.com/mystuff/test/jboss-console/ or http://mysite.com/mystuff/test/jboss/console/ http://mysite.com/mystuff/test/jboss/console/) and the context root that is is deployed to in JBoss ( http://localhost/console/ http://localhost/console/). The result of this is that when I try to access the console, I assume it has references to the context root '/console/' in the code, resulting in nothign working when I access it through my reverse proxy.
So is it possible to change the context root of the management console to, say, '/mystuff/test/jboss-console/' so that it will work through my reverse proxy?
If not, then I guess I will need to map it directly to http://mysite/console/ http://mysite/console/. I'd probabaly end up using a separate virtual host for this to keep things tidy but it's not my ideal solution.
Thanks,
Tom...
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/629146#629146]
Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
12 years, 8 months
[jBPM] - cannot edit anything in codehoop eclipse bpmn plugin
by Jeff Kouba
Jeff Kouba [http://community.jboss.org/people/jkouba] created the discussion
"cannot edit anything in codehoop eclipse bpmn plugin"
To view the discussion, visit: http://community.jboss.org/message/629067#629067
--------------------------------------------------------------
I am very new to jbpmn, and have been playing around with it, trying to evaluate how we might use it in a project. I am using Eclipse Indigo SR 1.
I've installed JBPM 5.1, and the Eclipse BPMN plugin from codehoop. (I installed graphiti and the eclipse modeling framework as well.)
The thing is, I don't seem to be able to edit anything in a process. I've created a very basic Hello World process, with start and end points, and a script task. The process will run.
When I double click on any of those, however, I don't get any kind of editor. I assume there must be some way of editing the various artifacts?
Do I still need to install something? Am I missing something? I can edit the xml directly, and I dropped in a println statement in the script task, and change the process name, and so forth, but manually editing xml rather defeats the purpose of having a visual editor.
thanks...
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/629067#629067]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
12 years, 8 months
[JBoss Messaging] - JMS consumer not connecting after upgrade to JBoss 5.1.0
by h bhinder
h bhinder [http://community.jboss.org/people/hbhinder] created the discussion
"JMS consumer not connecting after upgrade to JBoss 5.1.0"
To view the discussion, visit: http://community.jboss.org/message/629122#629122
--------------------------------------------------------------
We have the following set up in the production envrionment:
- our application is running on 3 clustered Jboss instances with spring framework. Each machine has a JMS queue where messages are sent.
- we have a listener on a separate machine that listens to all 3 queues for messages. If we configure the listener to use ClusteredXAConnectionFactory (which was working as expected in JBoss 4.2.3 with JBoss Messaging), we get the following error at startup.
2011-09-27 13:30:29,200 INFO [org.springframework.jms.listener.DefaultMessageListenerContainer] (ListGeneratorContainer-5) Setup of JMS message listener invoker failed for destination 'JBossQueue[ListGeneratorQueue]' - trying to recover. Cause: This invocation should not be handled here!
1. java.lang.IllegalStateException: This invocation should not be handled here!
at org.jboss.jms.client.delegate.ClientClusteredConnectionFactoryDelegate.org$jboss$jms$client$delegate$ClientClusteredConnectionFactoryDelegate$createConnectionDelegate$aop(ClientClusteredConnectionFactoryDelegate.java:260)
at org.jboss.jms.client.delegate.ClientClusteredConnectionFactoryDelegate.createConnectionDelegate(ClientClusteredConnectionFactoryDelegate.java)
at org.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:205)
at org.jboss.jms.client.JBossConnectionFactory.createConnection(JBossConnectionFactory.java:87)
at org.jboss.jms.client.JBossConnectionFactory.createConnection(JBossConnectionFactory.java:82)
at org.springframework.jms.support.JmsAccessor.createConnection(JmsAccessor.java:184)
The connection configuration is as follows:
<!--JNDI Environment Template for JMS-->
<bean id="jndiTemplateExternal" class="org.springframework.jndi.JndiTemplate" lazy-init="true">
<property name="environment">
<props>
<prop key="java.naming.factory.initial">org.jnp.interfaces.NamingContextFactory</prop>
<prop key="java.naming.provider.url">IP1:1100,IP2:1100,IP3:1100</prop>
<prop key="java.naming.factory.url.pkgs">org.jboss.naming:org.jnp.interfaces</prop>
</props>
</property>
</bean>
<bean id="jmsConnectionFactoryExternal" class="org.springframework.jndi.JndiObjectFactoryBean" lazy-init="true">
<property name="jndiTemplate" ref="jndiTemplateExternal"/>
<property name="jndiName" value="ClusteredXAConnectionFactory"/>
</bean>
If we replace jndiName with XAConnectionFactory, the application starts up but the listener doesn't process any messages and they remain unconsumed in the queues until JBoss is restarted. On restarting JBoss, all the existing messages get processed but any new messages still remain stuck.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/629122#629122]
Start a new discussion in JBoss Messaging at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
12 years, 8 months
[jBPM] - Exception while trying to access java return value
by snyperboss
snyperboss [http://community.jboss.org/people/snyperboss] created the discussion
"Exception while trying to access java return value"
To view the discussion, visit: http://community.jboss.org/message/628557#628557
--------------------------------------------------------------
Hello all,
I am getting exception while trying to access the java method return value. Below are my source files.
HelloWorld.jpdl.xml:
###################
<?xml version="1.0" encoding="UTF-8"?>
<process name="HelloWorld" xmlns=" http://jbpm.org/4.4/jpdl http://jbpm.org/4.4/jpdl">
<start g="127,111,38,30" name="start1">
<transition name="to PrintHelloWorld" to="PrintHelloWorld"
g="-91,-18" />
</start>
<java class="com.jap.san.HelloWorldTest" g="496,126,80,47"
method="printHelloWorld" name="PrintHelloWorld" var="returnValue">
<transition g="-42,-18" name="to end1" to="end1" />
</java>
<end g="634,132,29,27" name="end1" />
</process>
HelloWorldTest.java:
##################
package com.jap.san;
import java.io.Serializable;
public class HelloWorldTest implements Serializable{
public String printHelloWorld() {
System.out.println(" hi hi hi here @@@@@@");
return "from method";
}
}
Test file:
######################
ProcessEngine processEngine = new Configuration().setResource("jbpm.cfg.xml").buildProcessEngine();
RepositoryService repositoryService = processEngine.getRepositoryService();
ExecutionService executionService = processEngine.getExecutionService();
repositoryService.createDeployment().addResourceFromClasspath("com/jpmc/san/HelloWorld.jpdl.xml").deploy();
ProcessInstance processInstance =executionService.startProcessInstanceByKey("HelloWorld");
String pid = processInstance.getId();
String answer = (String) executionService.getVariable(pid, "returnValue");
System.out.println("answer");
It error out on in the line
String answer = (String) executionService.getVariable(pid, "returnValue");
19:58:26,064 INF | [DefaultCommandService] exception while executing command org.jbpm.pvm.internal.cmd.GetExecutionVariablesCmd@b9b8d0
org.jbpm.api.JbpmException: execution HelloWorld.7 doesn't exist
at org.jbpm.pvm.internal.cmd.GetExecutionVariablesCmd.execute(GetExecutionVariablesCmd.java:60)
at org.jbpm.pvm.internal.cmd.GetExecutionVariablesCmd.execute(GetExecutionVariablesCmd.java:36)
at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)
at org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(StandardTransactionInterceptor.java:50)
at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.executeInNewEnvironment(EnvironmentInterceptor.java:53)
at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:40)
at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:56)
at org.jbpm.pvm.internal.svc.SkipInterceptor.execute(SkipInterceptor.java:43)
at org.jbpm.pvm.internal.svc.ExecutionServiceImpl.getVariable(ExecutionServiceImpl.java:131)
at com.jpmc.san.TestDeployment.main(TestDeployment.java:34)
Thanks
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/628557#628557]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
12 years, 8 months
[Datasource Configuration] - whats wrong with my MySQL datasource
by Marcel Bussien
Marcel Bussien [http://community.jboss.org/people/bussien] created the discussion
"whats wrong with my MySQL datasource"
To view the discussion, visit: http://community.jboss.org/message/629077#629077
--------------------------------------------------------------
*the login excemple produces this error:*
+18:15:31,859 INFO [org.jboss.as.server.deployment] (MSC service thread 1-3) Starting deployment of "login.war"+
+18:15:32,037 INFO [org.jboss.jpa] (MSC service thread 1-2) read persistence.xml for loginDatabase+
+18:15:32,040 INFO [org.jboss.as.jpa] (MSC service thread 1-2) added javax.persistence.api, javaee.api, org.jboss.as.jpa, org.javassist dependencies to login.war+
+18:15:32,040 INFO [org.jboss.as.jpa] (MSC service thread 1-2) added (default provider) org.hibernate dependency to application deployment (since 1 PU(s) didn't specify jboss.as.jpa.providerModule)+
+18:15:32,041 INFO [org.jboss.as.jpa] (MSC service thread 1-2) added org.hibernate dependency to application deployment+
+18:15:32,102 INFO [org.jboss.weld] (MSC service thread 1-2) Processing CDI deployment: login.war+
+18:15:32,102 INFO [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-2) JNDI bindings for session bean named EJBUserManager in deployment unit deployment "login.war" are as follows:+
+ java:global/login/EJBUserManager!org.jboss.as.quickstarts.login.UserManager+
+ java:app/login/EJBUserManager!org.jboss.as.quickstarts.login.UserManager+
+ java:module/EJBUserManager!org.jboss.as.quickstarts.login.UserManager+
+ java:global/login/EJBUserManager+
+ java:app/login/EJBUserManager+
+ java:module/EJBUserManager+
+18:15:32,137 INFO [org.jboss.weld] (MSC service thread 1-2) Starting Services for CDI deployment: login.war+
+18:15:32,255 INFO [org.jboss.as.server.controller] (HttpManagementService-threads - 1) Deployment of "login.war" was rolled back with failure message Operation handler failed to complete+
+18:15:32,462 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) Stopped deployment login.war in 185ms+
*the 'C:\jboss-as-web-7.0.2.Final\standalone\configuration\standalone.xml looks like this:*
+... ExampleDS" pool-name="H2DS"...*
*+
+</datasource>+
+<datasource jndi-name="java:jboss/datasources/MySQLDS" pool-name="MySQLDS" enabled="true" jta="true" use-java-context="true" use-ccm="true">+
+ <connection-url>+
+ jdbc:mysql://localhost:3306/sty+
+ </connection-url>+
+ <driver>+
+ mysql-connector-java-5.1.17.jar+
+ </driver>+
+ <pool>+
+ <min-pool-size>+
+ 10+
+ </min-pool-size>+
+ <max-pool-size>+
+ 100+
+ </max-pool-size>+
+ <prefill>+
+ true+
+ </prefill>+
+ <use-strict-min>+
+ false+
+ </use-strict-min>+
+ <flush-strategy>+
+ FailingConnectionOnly+
+ </flush-strategy>+
+ </pool>+
+ <security>+
+ <user-name>+
+ hokus+
+ </user-name>+
+ <password>+
+ bokus+
+ </password>+
+ </security>+
+ </datasource>+
+ <drivers>+
+ <driver name="mysql-connector-java-5.1.17.jar" module="com.mysql">+
+ <xa-datasource-class>+
+ com.mysql.jdbc.jdbc2.optional.MysqlXADataSource+
+ </xa-datasource-class>+
+ </driver>+
+ <driver name="h2" module="com.h2database.h2">+
+ <xa-datasource-class>+
+ org.h2.jdbcx.JdbcDataSource+
+ </xa-datasource-class>+
+ </driver>+
+ </drivers>+
+ </datasources>+
*and the jar lies here*
+C:\jboss-as-web-7.0.2.Final\standalone\deployments\mysql-connector-java-5.1.17.zip+
*it's enabled too:*
+Registered Datasources+
| | +java:jboss/datasources/ExampleDS+ | +java:jboss/datasources/ExampleDS+ | +H2DS+ | +http://127.0.0.1:9990/console/app/clear.cache.gif+ |
| +java:jboss/datasources/MySQLDS+ | +java:jboss/datasources/MySQLDS+ | +MySQLDS+ |
|
*thanks for any suggestions*+
+
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/629077#629077]
Start a new discussion in Datasource Configuration at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
12 years, 8 months