[Beginners Corner] - couple of issues with jsp compilation
by jo_atman
Folks,
Here are a couple of issues i have been having on my local machine with jsp compilation (on the server running JBoss 4.0.0, it works great). Appreciate any help you can provide.
My JBoss version is 4.2.1 GA, and jdk is 1.5.0_12
An error occurred at line: 538 in the jsp file: /xf_sa_supplier_description.jsp
The method setValue(String) in the type PutTag is not applicable for the arguments (boolean)
535: <tiles:put name="attrType" value="operatingMonths"/>
536: <tiles:put name="header" value="operatingMonths"/>
537: <tiles:put name="mutipleselect" value="true"/>
538: <tiles:put name="checkboolean" value="<%=disableOPM%>"/>
539: </tiles:insert>
Here it's complaining about the last tiles:put having a boolean argument. Shouldn't autoboxing take care of this?
Secondly,
An error occurred at line: 34 in the jsp file: /xf_page_attributebuilder.jsp
Syntax error, parameterized types are only available if source level is 5.0
31: try
32: {
33: String selectboolean = null;
34: List restrictedAttributes = new ArrayList();
How do i check what source level it's running at? Shouldn't it be 5.0 already?
Thanks,
Nilesh
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107600#4107600
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107600
18 years, 5 months
[JCA/JBoss] - XATransaction resource enlisted as LocalTransaction
by nlmarco
Hello *,
I've a problem with a RA: Even though the ra.xml says
<transaction-support>XATransaction</transaction-support>
my resource seems to be handled as if it was only local-tx, which leads to exceptions:
2007-11-24 22:01:18,165 WARN [com.arjuna.ats.jta.logging.loggerI18N] [com.arjuna.ats.internal.jta.transaction.arjunacore.enliststarterror] [com.arjuna.ats.internal.jta.transaction.arjunacore.enliststarterror] TransactionImple.enlistResource - XAResource.start returned: XAException.XAER_RMERR for < 131075, 27, 25, 1-7f000101:b0e1:4748910a:1a7f000101:b0e1:4748910a:31 >
| 2007-11-24 22:01:18,165 ERROR [STDERR] javax.transaction.SystemException: TransactionImple.enlistResource - XAResource.start [com.arjuna.ats.internal.jta.transaction.arjunacore.couldnotregister] [com.arjuna.ats.internal.jta.transaction.arjunacore.couldnotregister] could not register transaction: < 131075, 27, 25, 1-7f000101:b0e1:4748910a:1a7f000101:b0e1:4748910a:31 >
| 2007-11-24 22:01:18,166 ERROR [STDERR] at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.enlistResource(TransactionImple.java:747)
| 2007-11-24 22:01:18,166 ERROR [STDERR] at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.enlistResource(TransactionImple.java:446)
| 2007-11-24 22:01:18,166 ERROR [STDERR] at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener$TransactionSynchronization.enlist(TxConnectionManager.java:773)
| 2007-11-24 22:01:18,166 ERROR [STDERR] at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener.enlist(TxConnectionManager.java:564)
| ...
In my log file, the dumped XML says attribute LocalTransactions = true which is obviously the reason for my troubles:
2007-11-24 22:01:08,829 DEBUG [org.jboss.deployment.XSLSubDeployer] transformed into doc: <server>
| <mbean code='org.jboss.resource.connectionmanager.TxConnectionManager' display-name='ConnectionManager for ConnectionFactory jdo/jpox' name='jboss.jca:service=TxCM,name=jdo/jpox'>
| <attribute name='TrackConnectionByTx'>true</attribute>
| <attribute name='LocalTransactions'>true</attribute>
| <depends optional-attribute-name='ManagedConnectionPool'>
| <mbean code='org.jboss.resource.connectionmanager.JBossManagedConnectionPool' display-name='Connection Pool for DataSource jdo/jpox' name='jboss.jca:service=ManagedConnectionPool,name=jdo/jpox'>
| <depends optional-attribute-name='ManagedConnectionFactoryName'>
| <mbean code='org.jboss.resource.connectionmanager.RARDeployment' display-name='ManagedConnectionFactory for ConnectionFactory jdo/jpox' name='jboss.jca:service=ManagedConnectionFactory,name=jdo/jpox'>
| <attribute name='ManagedConnectionFactoryProperties'>
| <properties>
| <config-property name='ConnectionFactoryName' type='java.lang.String'>java:/jfire/datasource/jfire.nightlabs.org/xa</config-property>
| <config-property name='ConnectionFactory2Name' type='java.lang.String'>java:/jfire/datasource/jfire.nightlabs.org/no-tx</config-property>
| <config-property name='AutoStartMechanism' type='java.lang.String'>XML</config-property>
| <config-property name='AutoStartMechanismXmlFile' type='java.lang.String'>/home/marco/temp/jpoxAutoStart.xml</config-property>
| <config-property name='AutoCreateSchema' type='boolean'>true</config-property>
| <config-property name='AutoCreateTables' type='boolean'>true</config-property>
| <config-property name='AutoCreateColumns' type='boolean'>true</config-property>
| <config-property name='ValidateColumns' type='boolean'>true</config-property>
| <config-property name='AutoCreateConstraints' type='boolean'>true</config-property>
| <config-property name='ValidateConstraints' type='boolean'>true</config-property>
| <config-property name='JdoCacheCollections' type='boolean'>true</config-property>
| <config-property name='NontransactionalRead' type='boolean'>true</config-property>
| <config-property name='DetachOnClose' type='boolean'>false</config-property>
| <config-property name='StringDefaultLength' type='int'>255</config-property>
| <config-property name='JdoCacheLevel2' type='boolean'>true</config-property>
| <config-property name='PersistenceByReachabilityAtCommit' type='boolean'>false</config-property>
| </properties>
| </attribute>
| <attribute name='RARName'>jpox-jca.rar</attribute>
| <attribute name='ConnectionDefinition'>javax.resource.cci.ConnectionFactory</attribute>
| <depends optional-attribute-name='OldRarDeployment'>jboss.jca:service=RARDeployment,name='jpox-jca.rar'</depends>
| </mbean>
| </depends>
| <attribute name='PoolJndiName'>jdo/jpox</attribute>
| <attribute name='MinSize'>0</attribute>
| <attribute name='MaxSize'>100</attribute>
| <attribute name='BlockingTimeoutMillis'>30000</attribute>
| <attribute name='IdleTimeoutMinutes'>15</attribute>
| <attribute name='BackGroundValidation'>False</attribute>
| <attribute name='BackGroundValidationMinutes'>10</attribute>
| <attribute name='PreFill'>False</attribute>
| <attribute name='UseFastFail'>False</attribute>
| <attribute name='Criteria'>ByNothing</attribute>
| </mbean>
| </depends>
| <attribute name='JndiName'>jdo/jpox</attribute>
| <depends optional-attribute-name='CachedConnectionManager'>jboss.jca:service=CachedConnectionManager</depends>
| <depends optional-attribute-name='TransactionManagerService'>jboss:service=TransactionManager</depends>
| </mbean>
| <mbean code='org.jboss.resource.connectionmanager.ConnectionFactoryBindingService' display-name='Binding for ConnectionFactory jdo/jpox' name='jboss.jca:service=ConnectionFactoryBinding,name=jdo/jpox'>
| <attribute name='JndiName'>jdo/jpox</attribute>
| <attribute name='UseJavaContext'>true</attribute>
| <depends optional-attribute-name='ConnectionManager'>jboss.jca:service=TxCM,name=jdo/jpox</depends>
| </mbean>
| </server>
Since I didn't write the above XML (instead I'm having a ra.xml inside the RAR and multiple *-ds.xml files [2 examples here]), I assume it is autogenerated by JBoss. Could anyone please tell me, how I can force the "LocalTransactions" attribute to be "false"?
Best regards, Marco :-)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107593#4107593
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107593
18 years, 5 months