[JBoss ESB Development] - JBESB_4_10_CP build fail
by jmarquesb
jmarquesb [https://community.jboss.org/people/jmarquesb] created the discussion
"JBESB_4_10_CP build fail"
To view the discussion, visit: https://community.jboss.org/message/722410#722410
--------------------------------------------------------------
Hi all,
I´m new doing build of this project and I need some help. I´ve downloaded the source from trunk and when I´m doing ant dist I get this error:
[java] org.jboss.esb.rosetta.internal.compile:
[java] [javac] Compiling 824 source files to /jboss/JBESB_4_10_CP/product/build/classes/rosetta
[java] [javac] /jboss/JBESB_4_10_CP/product/rosetta/src/org/jboss/soa/esb/actions/routing/http/AbstractHttpMethodFactory.java:102: cannot find symbol
[java] [javac] symbol : method getParams()
[java] [javac] location: interface org.apache.commons.httpclient.HttpMethod
[java] [javac] HttpMethodParams params = method.getParams();
[java] [javac] ^
[java] [javac] /jboss/JBESB_4_10_CP/product/rosetta/src/org/jboss/soa/esb/actions/routing/http/HttpRouter.java:218: getResponseContentLength() has protected access in org.apache.commons.httpclient.HttpMethodBase
[java] [javac] response.setLength(method.getResponseContentLength());
[java] [javac] ^
[java] [javac] /jboss/JBESB_4_10_CP/product/rosetta/src/org/jboss/soa/esb/actions/routing/http/HttpRouter.java:218: setLength(java.lang.Long) in org.jboss.soa.esb.http.HttpResponse cannot be applied to (int)
[java] [javac] response.setLength(method.getResponseContentLength());
[java] [javac] ^
[java] [javac] /jboss/JBESB_4_10_CP/product/rosetta/src/org/jboss/soa/esb/actions/routing/http/POSTHttpMethodFactory.java:86: cannot find symbol
[java] [javac] symbol : method setRequestEntity(org.apache.commons.httpclient.methods.RequestEntity)
[java] [javac] location: class org.apache.commons.httpclient.methods.PostMethod
[java] [javac] method.setRequestEntity(entity);
[java] [javac] ^
[java] [javac] /jboss/JBESB_4_10_CP/product/rosetta/src/org/jboss/soa/esb/actions/routing/http/POSTHttpMethodFactory.java:104: cannot find symbol
[java] [javac] symbol : method setRequestEntity(org.apache.commons.httpclient.methods.RequestEntity)
[java] [javac] location: class org.apache.commons.httpclient.methods.PostMethod
[java] [javac] method.setRequestEntity(entity);
[java] [javac] ^
[java] [javac] /jboss/JBESB_4_10_CP/product/rosetta/src/org/jboss/soa/esb/http/ESBMultiThreadedHttpConnectionManager.java:74: cannot find symbol
[java] [javac] symbol : method getConnectionWithTimeout(org.apache.commons.httpclient.HostConfiguration,long)
[java] [javac] location: class org.apache.commons.httpclient.MultiThreadedHttpConnectionManager
[java] [javac] return super.getConnectionWithTimeout(getHostConfiguration(hostConfiguration), timeout) ;
[java] [javac] ^
[java] [javac] /jboss/JBESB_4_10_CP/product/rosetta/src/org/jboss/soa/esb/http/ESBMultiThreadedHttpConnectionManager.java:70: method does not override or implement a method from a supertype
[java] [javac] @Override
[java] [javac] ^
[java] [javac] /jboss/JBESB_4_10_CP/product/rosetta/src/org/jboss/soa/esb/http/ESBMultiThreadedHttpConnectionManager.java:80: cannot find symbol
[java] [javac] symbol : method getConnectionsInPool(org.apache.commons.httpclient.HostConfiguration)
[java] [javac] location: class org.apache.commons.httpclient.MultiThreadedHttpConnectionManager
[java] [javac] return super.getConnectionsInPool(getHostConfiguration(hostConfiguration));
[java] [javac] ^
[java] [javac] /jboss/JBESB_4_10_CP/product/rosetta/src/org/jboss/soa/esb/http/ESBMultiThreadedHttpConnectionManager.java:77: method does not override or implement a method from a supertype
[java] [javac] @Override
[java] [javac] ^
[java] [javac] /jboss/JBESB_4_10_CP/product/rosetta/src/org/jboss/soa/esb/http/configurators/AuthBASIC.java:82: cannot find symbol
[java] [javac] symbol : method setCredentials(org.apache.commons.httpclient.auth.AuthScope,org.apache.commons.httpclient.Credentials)
[java] [javac] location: class org.apache.commons.httpclient.HttpState
[java] [javac] httpClient.getState().setCredentials(authScope, creds);
[java] [javac] ^
[java] [javac] /jboss/JBESB_4_10_CP/product/rosetta/src/org/jboss/soa/esb/http/configurators/AuthNTLM.java:90: cannot find symbol
[java] [javac] symbol : method setCredentials(org.apache.commons.httpclient.auth.AuthScope,org.apache.commons.httpclient.Credentials)
[java] [javac] location: class org.apache.commons.httpclient.HttpState
[java] [javac] httpClient.getState().setCredentials(authScope, creds);
[java] [javac] ^
[java] [javac] /jboss/JBESB_4_10_CP/product/rosetta/src/org/jboss/soa/esb/http/configurators/Connection.java:70: cannot find symbol
[java] [javac] symbol : method setParams(org.jboss.soa.esb.http.configurators.Connection.ESBHttpConnectionManagerParams)
[java] [javac] location: interface org.apache.commons.httpclient.HttpConnectionManager
[java] [javac] connectionManager.setParams(new ESBHttpConnectionManagerParams(maxTotalConnections, maxConnectionsPerHost)) ;
[java] [javac] ^
[java] [javac] /jboss/JBESB_4_10_CP/product/rosetta/src/org/jboss/soa/esb/http/configurators/HttpProtocol.java:128: cannot find symbol
[java] [javac] symbol : method setProxyHost(org.apache.commons.httpclient.ProxyHost)
[java] [javac] location: class org.apache.commons.httpclient.HostConfiguration
[java] [javac] httpClient.getHostConfiguration().setProxyHost(proxyHost);
[java] [javac] ^
[java] [javac] /jboss/JBESB_4_10_CP/product/rosetta/src/org/jboss/soa/esb/http/configurators/HttpProtocol.java:142: cannot find symbol
[java] [javac] symbol : method setProxyHost(org.apache.commons.httpclient.ProxyHost)
[java] [javac] location: class org.apache.commons.httpclient.HostConfiguration
[java] [javac] httpClient.getHostConfiguration().setProxyHost(proxyHost);
[java] [javac] ^
[java] [javac] Note: Some input files use or override a deprecated API.
[java] [javac] Note: Recompile with -Xlint:deprecation for details.
[java] [javac] Note: Some input files use unchecked or unsafe operations.
[java] [javac] Note: Recompile with -Xlint:unchecked for details.
[java] [javac] 14 errors
[java]
[java] BUILD FAILED
[java] /jboss/JBESB_4_10_CP/product/build.xml:248: The following error occurred while executing this line:
[java] /jboss/JBESB_4_10_CP/product/rosetta/build.xml:151: Compile failed; see the compiler error output for details.
[java]
[java] Total time: 58 seconds
The environment is Oracle Linux 6 x86_64 with jdk 1.6.0_31, any idea?
Regards,
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/722410#722410]
Start a new discussion in JBoss ESB Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 1 month
[JBoss AS Development Deployment Framework] - Jboss application deploys and works for a while then throws exception
by Robert Brown
Robert Brown [https://community.jboss.org/people/brownrobertl] created the discussion
"Jboss application deploys and works for a while then throws exception"
To view the discussion, visit: https://community.jboss.org/message/722288#722288
--------------------------------------------------------------
Hi Jboss community,
i'm new to JBOSS so please be gentile with me. I have an application that
1. deploys properly into JBOSS 5.1
2. uses quartz to wake up and run every 2 hours where it connects to a database and reads some tables
3. After the 4th or 5th run, I get the following errors
2012-03-07 15:39:23,657 INFO [com.cox.procera.InterfaceTopology] (QuartzScheduler_Worker-3) (ga) database : gainesville
2012-03-07 15:39:23,695 INFO [org.hibernate.cfg.AnnotationConfiguration] (QuartzScheduler_Worker-3) Mapping package com.proceranetworks.psm.source.
2012-03-07 15:39:23,695 INFO [org.hibernate.cfg.AnnotationBinder] (QuartzScheduler_Worker-3) Binding entity from annotated class: com.cox.procera.me
2012-03-07 15:39:23,695 INFO [org.hibernate.cfg.annotations.EntityBinder] (QuartzScheduler_Worker-3) Bind entity com.cox.procera.model.Interface onaces
2012-03-07 15:39:23,697 INFO [org.hibernate.cfg.AnnotationBinder] (QuartzScheduler_Worker-3) Binding entity from annotated class: com.cox.procera.m
2012-03-07 15:39:23,697 INFO [org.hibernate.cfg.annotations.EntityBinder] (QuartzScheduler_Worker-3) Bind entity com.cox.procera.model.Modem on tab
2012-03-07 15:39:23,698 INFO [org.hibernate.cfg.AnnotationBinder] (QuartzScheduler_Worker-3) Binding entity from annotated class: com.cox.procera.m
2012-03-07 15:39:23,698 INFO [org.hibernate.cfg.annotations.EntityBinder] (QuartzScheduler_Worker-3) Bind entity com.cox.procera.model.Lock on tabl
2012-03-07 15:39:23,699 INFO [org.hibernate.cfg.AnnotationBinder] (QuartzScheduler_Worker-3) Binding entity from annotated class: com.cox.procera.meCache
2012-03-07 15:39:23,699 INFO [org.hibernate.cfg.annotations.EntityBinder] (QuartzScheduler_Worker-3) Bind entity com.cox.procera.model.InterfaceCacnterfaceCache
2012-03-07 15:39:23,700 INFO [org.hibernate.cfg.AnnotationBinder] (QuartzScheduler_Worker-3) Binding entity from annotated class: com.cox.procera.m
2012-03-07 15:39:23,700 INFO [org.hibernate.cfg.annotations.EntityBinder] (QuartzScheduler_Worker-3) Bind entity com.cox.procera.model.PSM on table
2012-03-07 15:39:23,701 INFO [org.hibernate.cfg.AnnotationBinder] (QuartzScheduler_Worker-3) Binding entity from annotated class: com.cox.procera.mhe
2012-03-07 15:39:23,701 INFO [org.hibernate.cfg.annotations.EntityBinder] (QuartzScheduler_Worker-3) Bind entity com.cox.procera.model.ModemCache oCache
2012-03-07 15:39:23,703 INFO [org.hibernate.cfg.AnnotationBinder] (QuartzScheduler_Worker-3) Binding entity from annotated class: com.cox.procera.m
2012-03-07 15:39:23,703 INFO [org.hibernate.cfg.annotations.EntityBinder] (QuartzScheduler_Worker-3) Bind entity com.cox.procera.model.Market on ta
2012-03-07 15:39:23,704 INFO [org.hibernate.cfg.AnnotationBinder] (QuartzScheduler_Worker-3) Binding entity from annotated class: com.cox.procera.m
2012-03-07 15:39:23,704 INFO [org.hibernate.cfg.annotations.EntityBinder] (QuartzScheduler_Worker-3) Bind entity com.cox.procera.model.LogInfo on t
2012-03-07 15:39:23,705 INFO [org.hibernate.cfg.AnnotationBinder] (QuartzScheduler_Worker-3) Binding entity from annotated class: com.cox.procera.m
2012-03-07 15:39:23,705 INFO [org.hibernate.cfg.annotations.EntityBinder] (QuartzScheduler_Worker-3) Bind entity com.cox.procera.model.NewDLB on ta
2012-03-07 15:39:23,706 INFO [org.hibernate.cfg.AnnotationBinder] (QuartzScheduler_Worker-3) Binding entity from annotated class: com.cox.procera.m
2012-03-07 15:39:23,706 INFO [org.hibernate.cfg.annotations.EntityBinder] (QuartzScheduler_Worker-3) Bind entity com.cox.procera.model.DLB on tablence
2012-03-07 15:39:23,715 INFO [org.hibernate.cfg.search.HibernateSearchEventListenerRegister] (QuartzScheduler_Worker-3) Unable to find org.hibernatt.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled.
2012-03-07 15:39:23,718 WARN [org.hibernate.mapping.RootClass] (QuartzScheduler_Worker-3) composite-id class does not override equals(): com.cox.prompoundKey
2012-03-07 15:39:23,718 WARN [org.hibernate.mapping.RootClass] (QuartzScheduler_Worker-3) composite-id class does not override hashCode(): com.cox..CompoundKey
2012-03-07 15:39:23,718 INFO [org.hibernate.util.NamingHelper] (QuartzScheduler_Worker-3) JNDI InitialContext properties:{}
2012-03-07 15:39:23,718 INFO [org.hibernate.connection.DatasourceConnectionProvider] (QuartzScheduler_Worker-3) Using datasource: java:/MySqlGaines
2012-03-07 15:39:23,719 INFO [org.hibernate.cfg.SettingsFactory] (QuartzScheduler_Worker-3) RDBMS: MySQL, version: 5.0.77-log
2012-03-07 15:39:23,719 INFO [org.hibernate.cfg.SettingsFactory] (QuartzScheduler_Worker-3) JDBC driver: MySQL-AB JDBC Driver, version: mysql-conne.4 ( $Date: 2006-10-19 17:47:48 +0200 (Thu, 19 Oct 2006) $, $Revision: 5908 $ )
2012-03-07 15:39:23,719 INFO [org.hibernate.dialect.Dialect] (QuartzScheduler_Worker-3) Using dialect: org.hibernate.dialect.MySQLDialect
2012-03-07 15:39:23,719 INFO [org.hibernate.engine.jdbc.JdbcSupportLoader] (QuartzScheduler_Worker-3) Disabling contextual LOB creation as JDBC driJDBC version [3] less than 4
2012-03-07 15:39:23,719 INFO [org.hibernate.transaction.TransactionFactoryFactory] (QuartzScheduler_Worker-3) Transaction strategy: org.hibernate.tBCTransactionFactory
2012-03-07 15:39:23,719 INFO [org.hibernate.transaction.TransactionManagerLookupFactory] (QuartzScheduler_Worker-3) No TransactionManagerLookup conTA environment, use of read-write or transactional second-level cache is not recommended)
2012-03-07 15:39:23,719 INFO [org.hibernate.cfg.SettingsFactory] (QuartzScheduler_Worker-3) Automatic flush during beforeCompletion(): disabled
2012-03-07 15:39:23,719 INFO [org.hibernate.cfg.SettingsFactory] (QuartzScheduler_Worker-3) Automatic session close at end of transaction: disabled
2012-03-07 15:39:23,719 INFO [org.hibernate.cfg.SettingsFactory] (QuartzScheduler_Worker-3) JDBC batch size: 15
2012-03-07 15:39:23,719 INFO [org.hibernate.cfg.SettingsFactory] (QuartzScheduler_Worker-3) JDBC batch updates for versioned data: disabled
2012-03-07 15:39:23,719 INFO [org.hibernate.cfg.SettingsFactory] (QuartzScheduler_Worker-3) Scrollable result sets: enabled
2012-03-07 15:39:23,719 INFO [org.hibernate.cfg.SettingsFactory] (QuartzScheduler_Worker-3) JDBC3 getGeneratedKeys(): enabled
2012-03-07 15:39:23,719 INFO [org.hibernate.cfg.SettingsFactory] (QuartzScheduler_Worker-3) Connection release mode: after_transaction
2012-03-07 15:39:23,719 INFO [org.hibernate.cfg.SettingsFactory] (QuartzScheduler_Worker-3) Maximum outer join fetch depth: 3
2012-03-07 15:39:23,719 INFO [org.hibernate.cfg.SettingsFactory] (QuartzScheduler_Worker-3) Default batch fetch size: 1
2012-03-07 15:39:23,719 INFO [org.hibernate.cfg.SettingsFactory] (QuartzScheduler_Worker-3) Generate SQL with comments: enabled
2012-03-07 15:39:23,719 INFO [org.hibernate.cfg.SettingsFactory] (QuartzScheduler_Worker-3) Order SQL updates by primary key: disabled
2012-03-07 15:39:23,719 INFO [org.hibernate.cfg.SettingsFactory] (QuartzScheduler_Worker-3) Order SQL inserts for batching: disabled
2012-03-07 15:39:23,719 INFO [org.hibernate.cfg.SettingsFactory] (QuartzScheduler_Worker-3) Query translator: org.hibernate.hql.ast.ASTQueryTransla
2012-03-07 15:39:23,720 INFO [org.hibernate.hql.ast.ASTQueryTranslatorFactory] (QuartzScheduler_Worker-3) Using ASTQueryTranslatorFactory
2012-03-07 15:39:23,720 INFO [org.hibernate.cfg.SettingsFactory] (QuartzScheduler_Worker-3) Query language substitutions: {}
2012-03-07 15:39:23,720 INFO [org.hibernate.cfg.SettingsFactory] (QuartzScheduler_Worker-3) JPA-QL strict compliance: enabled
2012-03-07 15:39:23,720 INFO [org.hibernate.cfg.SettingsFactory] (QuartzScheduler_Worker-3) Second-level cache: enabled
2012-03-07 15:39:23,720 INFO [org.hibernate.cfg.SettingsFactory] (QuartzScheduler_Worker-3) Query cache: disabled
2012-03-07 15:39:23,720 INFO [org.hibernate.cfg.SettingsFactory] (QuartzScheduler_Worker-3) Cache region factory : org.hibernate.cache.impl.NoCachiry
2012-03-07 15:39:23,720 INFO [org.hibernate.cfg.SettingsFactory] (QuartzScheduler_Worker-3) Optimize cache for minimal puts: disabled
2012-03-07 15:39:23,720 INFO [org.hibernate.cfg.SettingsFactory] (QuartzScheduler_Worker-3) Structured second-level cache entries: disabled
2012-03-07 15:39:23,720 INFO [org.hibernate.cfg.SettingsFactory] (QuartzScheduler_Worker-3) Statistics: enabled
2012-03-07 15:39:23,720 INFO [org.hibernate.cfg.SettingsFactory] (QuartzScheduler_Worker-3) Deleted entity synthetic identifier rollback: disabled
2012-03-07 15:39:23,720 INFO [org.hibernate.cfg.SettingsFactory] (QuartzScheduler_Worker-3) Default entity-mode: pojo
2012-03-07 15:39:23,720 INFO [org.hibernate.cfg.SettingsFactory] (QuartzScheduler_Worker-3) Named query checking : enabled
2012-03-07 15:39:23,724 INFO [org.hibernate.impl.SessionFactoryImpl] (QuartzScheduler_Worker-3) building session factory
2012-03-07 15:39:23,726 ERROR [com.cox.procera.InterfaceTopology] (QuartzScheduler_Worker-3) [PersistenceUnit: gainesville] Unable to build EntityMa
2012-03-07 15:39:23,728 ERROR [STDERR] (QuartzScheduler_Worker-3) javax.persistence.PersistenceException: [PersistenceUnit: gainesville] Unable to bnagerFactory
2012-03-07 15:39:23,728 ERROR [STDERR] (QuartzScheduler_Worker-3) at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configu78)
2012-03-07 15:39:23,728 ERROR [STDERR] (QuartzScheduler_Worker-3) at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(Hiberna.java:127)
2012-03-07 15:39:23,728 ERROR [STDERR] (QuartzScheduler_Worker-3) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java
2012-03-07 15:39:23,728 ERROR [STDERR] (QuartzScheduler_Worker-3) at com.cox.procera.InterfaceTopology.executeInternal(InterfaceTopology.java:
2012-03-07 15:39:23,728 ERROR [STDERR] (QuartzScheduler_Worker-3) at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean
2012-03-07 15:39:23,728 ERROR [STDERR] (QuartzScheduler_Worker-3) at org.quartz.core.JobRunShell.run(JobRunShell.java:203)
2012-03-07 15:39:23,728 ERROR [STDERR] (QuartzScheduler_Worker-3) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:
2012-03-07 15:39:23,728 ERROR [STDERR] (QuartzScheduler_Worker-3) Caused by: org.hibernate.MappingException: could not instantiate id generator [entcox.procera.model.InterfaceCache]
2012-03-07 15:39:23,728 ERROR [STDERR] (QuartzScheduler_Worker-3) at org.hibernate.id.IdentifierGeneratorFactory.create(IdentifierGeneratorFac)
2012-03-07 15:39:23,728 ERROR [STDERR] (QuartzScheduler_Worker-3) at org.hibernate.mapping.SimpleValue.createIdentifierGenerator(SimpleValue.j
2012-03-07 15:39:23,728 ERROR [STDERR] (QuartzScheduler_Worker-3) at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:229)
2012-03-07 15:39:23,728 ERROR [STDERR] (QuartzScheduler_Worker-3) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:13
2012-03-07 15:39:23,728 ERROR [STDERR] (QuartzScheduler_Worker-3) at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationCjava:867)
2012-03-07 15:39:23,728 ERROR [STDERR] (QuartzScheduler_Worker-3) at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configu70)
2012-03-07 15:39:23,728 ERROR [STDERR] (QuartzScheduler_Worker-3) ... 6 more
2012-03-07 15:39:23,729 ERROR [STDERR] (QuartzScheduler_Worker-3) Caused by: org.hibernate.MappingException: Dialect does not support sequences
2012-03-07 15:39:23,729 ERROR [STDERR] (QuartzScheduler_Worker-3) at org.hibernate.dialect.Dialect.getSequenceNextValString(Dialect.java:628)
2012-03-07 15:39:23,729 ERROR [STDERR] (QuartzScheduler_Worker-3) at org.hibernate.id.SequenceGenerator.configure(SequenceGenerator.java:88)
2012-03-07 15:39:23,729 ERROR [STDERR] (QuartzScheduler_Worker-3) at org.hibernate.id.SequenceHiLoGenerator.configure(SequenceHiLoGenerator.ja
2012-03-07 15:39:23,729 ERROR [STDERR] (QuartzScheduler_Worker-3) at org.hibernate.id.IdentifierGeneratorFactory.create(IdentifierGeneratorFac)
2012-03-07 15:39:23,729 ERROR [STDERR] (QuartzScheduler_Worker-3) ... 11 more
2012-03-07 15:39:23,729 INFO [com.cox.procera.InterfaceTopology] (QuartzScheduler_Worker-3) end of this cycle, now release the lock by this server:
2012-03-07 15:39:23,729 ERROR [com.cox.procera.InterfaceTopology] (QuartzScheduler_Worker-3) caught Exception At END: Transaction already active
2012-03-07 15:39:23,729 ERROR [STDERR] (QuartzScheduler_Worker-3) java.lang.IllegalStateException: Transaction already active
2012-03-07 15:39:23,729 ERROR [STDERR] (QuartzScheduler_Worker-3) at org.hibernate.ejb.TransactionImpl.begin(TransactionImpl.java:35)
2012-03-07 15:39:23,729 ERROR [STDERR] (QuartzScheduler_Worker-3) at com.cox.procera.InterfaceTopology.executeInternal(InterfaceTopology.java:
2012-03-07 15:39:23,729 ERROR [STDERR] (QuartzScheduler_Worker-3) at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean
2012-03-07 15:39:23,729 ERROR [STDERR] (QuartzScheduler_Worker-3) at org.quartz.core.JobRunShell.run(JobRunShell.java:203)
2012-03-07 15:39:23,729 ERROR [STDERR] (QuartzScheduler_Worker-3) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:
2012-03-07 15:39:23,733 INFO [org.hibernate.impl.SessionFactoryImpl] (QuartzScheduler_Worker-3) closing
I've included a snippet of my persistence.xml and genoracle-ds.xml
persistence.xml
<persistence-unit name="gainesville" transaction-type="RESOURCE_LOCAL">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<class>com.cox.procera.model.Interface</class>
<class>com.cox.procera.model.Modem</class>
<properties>
<property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver" />
<property name="hibernate.connection.url"
value="jdbc:mysql://databasecredentials" />
<property name="hibernate.connection.username"
value="user" />
<property name="hibernate.connection.password"
value="password" />
<property name="hibernate.max_fetch_depth"
value="3" />
<property name="hibernate.show_sql"
value="false" />
<property name="hibernate.format_sql"
value="true" />
<property name="hibernate.generate_statistics"
value="true" />
<property name="hibernate.connection.pool_size"
value="10" />
<property name="hibernate.connection.release_mode"
value="after_transaction" />
<property name="hibernate.use_sql_comments"
value="true" />
<property name="hibernate.hbm2ddl.auto" value="validate"/>
<property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>
</properties>
<non-jta-data-source>java:/MySqlGainesvilleDS</non-jta-data-source>
</persistence-unit>
genoracle.xml
<local-tx-datasource>
<jndi-name>MySqlGainesvilleDS</jndi-name>
<connection-url>jdbc:mysql://databaseip</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>user</user-name>
<password>password</password>
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter</exception-sorter-class-name>
<metadata>
<type-mapping>mySQL</type-mapping>
</metadata>
</local-tx-datasource>
any guidance is greatly appreciated.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/722288#722288]
Start a new discussion in JBoss AS Development Deployment Framework at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 1 month
[JBoss AS 7 Development] - Externalize MDB Properties Jboss 7.1
by rathm1
rathm1 [https://community.jboss.org/people/rathm1] created the discussion
"Externalize MDB Properties Jboss 7.1"
To view the discussion, visit: https://community.jboss.org/message/721230#721230
--------------------------------------------------------------
I have the MQ Resource Adapter working successfully but now have the issue that the inbound MDB it is not configurable outside of our EAR.
In Jboss6.1.0 we had defined system properties in the jboss-service.xml and referred to these in the jboss.xml as ${some_property} (jboss.xml was where we had our incoming mdb configured previously).
In Jboss 7.1, I have configured the system properties inside the standalone.xml but using the same ${some_property} reference doesn't seem to work, it takes the value literally as ${some_property} thus breaking the MDB configuration.
Our Incoming MDB is now configured as the following with hard coded values in the ejb-jar.xml.
<message-driven>
<ejb-name>ReplyMDB</ejb-name>
<activation-config>
<activation-config-property>
<activation-config-property-name>destinationType</activation-config-property-name>
<activation-config-property-value>javax.jms.Queue</activation-config-property-value>
</activation-config-property>
<activation-config-property>
<activation-config-property-name>destination</activation-config-property-name>
<activation-config-property-value>REPLY_QUEUE</activation-config-property-value>
</activation-config-property>
<activation-config-property>
<activation-config-property-name>channel</activation-config-property-name>
<activation-config-property-value>CHANNEL</activation-config-property-value>
</activation-config-property>
<activation-config-property>
<activation-config-property-name>hostName</activation-config-property-name>
<activation-config-property-value>HOST</activation-config-property-value>
</activation-config-property>
<activation-config-property>
<activation-config-property-name>port</activation-config-property-name>
<activation-config-property-value>1111</activation-config-property-value>
</activation-config-property>
<activation-config-property>
<activation-config-property-name>queueManager</activation-config-property-name>
<activation-config-property-value>QUEUE_MNGR</activation-config-property-value>
</activation-config-property>
<activation-config-property>
<activation-config-property-name>useJNDI</activation-config-property-name>
<activation-config-property-value>false</activation-config-property-value>
</activation-config-property>
<activation-config-property>
<activation-config-property-name>transportType</activation-config-property-name>
<activation-config-property-value>CLIENT</activation-config-property-value>
</activation-config-property>
<activation-config-property>
<activation-config-property-name>username</activation-config-property-name>
<activation-config-property-value>username</activation-config-property-value>
</activation-config-property>
<activation-config-property>
<activation-config-property-name>password</activation-config-property-name>
<activation-config-property-value>password</activation-config-property-value>
</activation-config-property>
</activation-config>
</message-driven>
But we would like it to be more like:
<message-driven>
<ejb-name>ReplyMDB</ejb-name>
<activation-config>
<activation-config-property>
<activation-config-property-name>destinationType</activation-config-property-name>
<activation-config-property-value>javax.jms.Queue</activation-config-property-value>
</activation-config-property>
<activation-config-property>
<activation-config-property-name>destination</activation-config-property-name>
<activation-config-property-value>${reply_queue_name}</activation-config-property-value>
</activation-config-property>
<activation-config-property>
<activation-config-property-name>channel</activation-config-property-name>
<activation-config-property-value>${channel_name}</activation-config-property-value>
</activation-config-property>
<activation-config-property>
<activation-config-property-name>hostName</activation-config-property-name>
<activation-config-property-value>${host_name}</activation-config-property-value>
</activation-config-property>
<activation-config-property>
<activation-config-property-name>port</activation-config-property-name>
<activation-config-property-value>${port_number}</activation-config-property-value>
</activation-config-property>
<activation-config-property>
<activation-config-property-name>queueManager</activation-config-property-name>
<activation-config-property-value>${queue_manager}</activation-config-property-value>
</activation-config-property>
<activation-config-property>
<activation-config-property-name>useJNDI</activation-config-property-name>
<activation-config-property-value>false</activation-config-property-value>
</activation-config-property>
<activation-config-property>
<activation-config-property-name>transportType</activation-config-property-name>
<activation-config-property-value>CLIENT</activation-config-property-value>
</activation-config-property>
<activation-config-property>
<activation-config-property-name>username</activation-config-property-name>
<activation-config-property-value>${queue_username}</activation-config-property-value>
</activation-config-property>
<activation-config-property>
<activation-config-property-name>password</activation-config-property-name>
<activation-config-property-value>${queue_password}</activation-config-property-value>
</activation-config-property>
</activation-config>
</message-driven>
With the following in the standalone.xml:
<system-properties>
<property name="reply_queue_name" value="REPLY_QUEUE"/>
<property name="channel_name" value="CHANNEL"/>
<property name="host_name" value="HOST"/>
<property name="port_number" value="1111"/>
<property name="queue_manager" value="QUEUE_MNGR"/>
<property name="queue_username" value="username"/>
<property name="queue_password" value="password"/>
</system-properties>
Any suggestions for how to accomplish would be great.
Thanks.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/721230#721230]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 1 month
[JBoss AS 7 Development] - Re: Remote client access with database login module: user name and password are UUIDs
by Sebastian Bayerlein
Sebastian Bayerlein [https://community.jboss.org/people/sebbay] created the discussion
"Re: Remote client access with database login module: user name and password are UUIDs"
To view the discussion, visit: https://community.jboss.org/message/722027#722027
--------------------------------------------------------------
Hello,
I'm facing the same problem. In the client I use a LoginContext to pass the username/password to the context:
final Properties jndiProperties = new Properties();
jndiProperties.put(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming");
jndiProperties.put(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.remote.client.InitialContextFactory");
jndiProperties.put(Context.PROVIDER_URL, "remote://localhost:4447");
jndiProperties.put("jboss.naming.client.ejb.context", true);
jndiProperties.put("jboss.naming.client.connect.options.org.xnio.Options.SASL_POLICY_NOPLAINTEXT", "false");
InitialContext context = null;
try
{
Configuration.setConfiguration ( new LoginConfiguration ());
Class<?> cb = Class.forName ( "org.jboss.security.auth.callback.UsernamePasswordHandler" );
Constructor<?> c = cb.getConstructor ( new Class[] { String.class, char[].class });
LoginContext lc = new LoginContext ( "other", ( CallbackHandler ) c.newInstance ( new Object[] { "fapiuser", "guest".toCharArray() }));
lc.login();
context = new InitialContext(jndiProperties);
EJBObject ejbObject = (EJBObject) context.lookup("ejb:" + appName + "/" + moduleName + "/" + distinctName + "/" + beanName + "!" + viewClassName);
System.out.println("remote: " + ejbObject);
...
On server-side I use a custom login module:
public class CustomLoginModule extends UsernamePasswordLoginModule {
protected String getUsersPassword() throws LoginException
{
final String username = super.getUsername();
log.info( ">>> username: '" + username + "'" );
...
}
}
In JBoss logfile I also see the user name as a random UUID. Can somebody help me to solve this problem?
Regards,
Sebastian
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/722027#722027]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 1 month