[Tomcat, HTTPD, Servlets & JSP] - Regarding JSP Compilation in JBoss 4.0.5.GA
by sharanhere
We are seeing below exception in our production logs: Not sure why the container is trying to recompile the JSP's?
appreciate your feedback.
2008-02-12 18:20:17,114 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/].[jsp]] Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP
Generated servlet error:
Duplicate field form1_jsp._jspx_fnmap_0
Generated servlet error:
Duplicate field form1_jsp._jspx_fnmap_0
Generated servlet error:
_jspx_fnmap_0 cannot be resolved
Generated servlet error:
_jspx_fnmap_0 cannot be resolved
An error occurred at line: 43 in the jsp file: /WEB-INF/presentations/7014/jsp/form1.jsp
Generated servlet error:
_jspx_fnmap_0 cannot be resolved
An error occurred at line: 52 in the jsp file: /WEB-INF/presentations/7014/jsp/form1.jsp
Generated servlet error:
_jspx_fnmap_0 cannot be resolved
An error occurred at line: 59 in the jsp file: /WEB-INF/presentations/7014/jsp/form1.jsp
Generated servlet error:
_jspx_fnmap_0 cannot be resolved
at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:414)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:297)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4134036#4134036
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4134036
18 years, 1 month
[Clustering/JBoss] - Re: Load balancing and dev environment
by bstansberry@jboss.com
For EJB2, you can change the defaults in the conf/standardjboss.xml file. File contains a number of "container-configuration" elements; search for those that include a "cluster-config" subelement. Each is the default for a particular type of clustered EJB.
| <cluster-config>
| <partition-name>${jboss.partition.name:DefaultPartition}</partition-name>
| </cluster-config>
You can change the default load balance polices by adding sub-elements:
| <cluster-config>
| <partition-name>${jboss.partition.name:DefaultPartition}</partition-name>
| <home-load-balance-policy>org.jboss.ha.framework.interfaces.FirstAvailableIdenticalAllProxies</home-load-balance-policy>
| <bean-load-balance-policy>org.jboss.ha.framework.interfaces.FirstAvailableIdenticalAllProxies</bean-load-balance-policy>
| </cluster-config>
|
For EJB3 I don't see a clean way to override the default. It's configured via the deploy/ejb3-interceptors-aop.xml file. There's two sections
| <domain name="Stateless Bean">
| ......
| </domain>
|
and
| <domain name="Stateful Bean">
| ......
| </domain>
|
where perhaps you could try adding something like:
| <annotation expr="class((a)org.jboss.annotation.ejb.Clustered)">
| @org.jboss.annotation.ejb.Clustered(loadBalancePolicy=org.jboss.ha.framework.interfaces.FirstAvailableIdenticalAllProxies.class)
| </annotation>
|
i.e. attempt to override the annotation value for beans that have @Clustered. Don't know if that would work. If it does work it will remove the ability to annotate a particular class with different values from what you specify here.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4134031#4134031
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4134031
18 years, 1 month
[Installation, Configuration & DEPLOYMENT] - deploying problem
by sajhak
HI all ,
iam new to j2EE development// ...
I am deploying j2EE archives into the JBOSS server using IntelliJ IDEA 7.0 , where it has inbuilt support for JBOSS integration.. when i deploy the archives , those are not goes to the "default/deploy" directory , instead it goes to the "default/tmp/deploy" directory ...
I want to deploy those into the "default/deploy" directly.. I can do it manually , by just copying the files to the server directly.But i think there should be a way to do it directly from the IDE ..
I tried those deployments using NetBeans 6.0 , there i didnt have to face any problems , then relevant archives deployed into the "default/deploy" directory ....
so what is the reason behind this could be ?? is that a bug with IntelliJ IDEA or do i have to configure the JBOSS server ???
plese help me .. im so desperate ... :(
Thanks n Regds
Sajith
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4134025#4134025
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4134025
18 years, 1 month
[EJB/JBoss] - Re: Finder exception after upgrade from 4.0.5 to 4.2.2
by aazaroff
Here is the stack trace. It is always the same.
It appears the root cause is:
org.jboss.resource.JBossResourceException: Could not enlist in transaction on entering meta-aware object!
|
| 2008-03-04 12:07:37,586 ERROR [org.jboss.ejb.plugins.cmp.jdbc.JDBCFindByPrimaryKeyQuery.XmlfeedrequestsBean#findByPrimaryKey] Find failed
| org.jboss.util.NestedSQLException: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: ae1a342:9ff4:47cd7fad:78 status: ActionStatus.ABORT_ONLY >); - nested throwable: (org.jboss.resource.JBossResourceException: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: ae1a342:9ff4:47cd7fad:78 status: ActionStatus.ABORT_ONLY >))
| at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:94)
| at org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractQueryCommand.execute(JDBCAbstractQueryCommand.java:225)
| at org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractQueryCommand.execute(JDBCAbstractQueryCommand.java:144)
| at org.jboss.ejb.plugins.cmp.jdbc.JDBCFindByPrimaryKeyQuery.execute(JDBCFindByPrimaryKeyQuery.java:155)
| at org.jboss.ejb.plugins.cmp.jdbc.JDBCFindEntityCommand.execute(JDBCFindEntityCommand.java:61)
| at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.findEntity(JDBCStoreManager.java:604)
| at org.jboss.ejb.plugins.CMPPersistenceManager.findEntity(CMPPersistenceManager.java:315)
| at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.findEntity(CachedConnectionInterceptor.java:236)
| at org.jboss.ejb.EntityContainer.findSingleObject(EntityContainer.java:1099)
| at org.jboss.ejb.EntityContainer.findLocal(EntityContainer.java:676)
| 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.invocation.Invocation.performCall(Invocation.java:359)
| at org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.java:1126)
| at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:105)
| at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynchronizationInterceptor.java:203)
| at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:189)
| at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:105)
| at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:136)
| at org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:76)
| at org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreationInterceptor.java:45)
| at org.jboss.ejb.plugins.CallValidationInterceptor.invokeHome(CallValidationInterceptor.java:56)
| at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:125)
| at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
| at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:161)
| at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:145)
| at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:132)
| at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:107)
| at org.jboss.ejb.EntityContainer.internalInvokeHome(EntityContainer.java:521)
| at org.jboss.ejb.Container.invoke(Container.java:981)
| at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invokeHome(BaseLocalProxyFactory.java:359)
| at org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:133)
| at $Proxy113.findByPrimaryKey(Unknown Source)
| at possystems.transporter.DestinationInvoker.run(DestinationInvoker.java:60)
| at possystems.transporter.TransporterBean.onMessage(TransporterBean.java:64)
| 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.invocation.Invocation.performCall(Invocation.java:359)
| at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.java:495)
| at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
| at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterceptor.java:116)
| at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
| at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
| at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
| at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
| at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:109)
| at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
| at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)
| at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContainer.java:402)
| at org.jboss.ejb.Container.invoke(Container.java:960)
| at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:987)
| at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerInvoker.java:1287)
| at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:266)
| at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:891)
| at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:170)
| at org.jboss.mq.SpySession.run(SpySession.java:323)
| at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:194)
| at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:756)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: org.jboss.resource.JBossResourceException: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: ae1a342:9ff4:47cd7fad:78 status: ActionStatus.ABORT_ONLY >)
| at org.jboss.resource.connectionmanager.TxConnectionManager.managedConnectionReconnected(TxConnectionManager.java:343)
| at org.jboss.resource.connectionmanager.BaseConnectionManager2.reconnectManagedConnection(BaseConnectionManager2.java:518)
| at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:399)
| at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:842)
| at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:88)
| ... 62 more
| Caused by: javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: ae1a342:9ff4:47cd7fad:78 status: ActionStatus.ABORT_ONLY >
| at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener$TransactionSynchronization.checkEnlisted(TxConnectionManager.java:744)
| at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener.enlist(TxConnectionManager.java:577)
| at org.jboss.resource.connectionmanager.TxConnectionManager.managedConnectionReconnected(TxConnectionManager.java:337)
| ... 66 more
|
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4134019#4134019
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4134019
18 years, 1 month