[JBoss AS 7 Development] - How to use MySQL assignment operator (:=) and variables in Hibernate NativeQuery
by Ondrej Zizka
Ondrej Zizka [https://community.jboss.org/people/ozizka] created the document:
"How to use MySQL assignment operator (:=) and variables in Hibernate NativeQuery"
To view the document, visit: https://community.jboss.org/docs/DOC-19002
--------------------------------------------------------------
Formerly, when using the assignment operator in Native Query, Hibernate threw an exception:
Caused by: org.hibernate.QueryException: Space is not allowed after parameter prefix ':' [ INSERT INTO poh_users_stats_daily (id_user, day, watch_patterns, watch_subjects, watch_merged) SELECT u.id_user, CURRENT_DATE() AS day, @a := (SELECT COUNT(*) FROM poh_users_vzory AS v WHERE v.id_user = u.id_user) AS hlid_vz, @b := (SELECT COUNT(*) FROM poh_users_sled_osoby AS ho WHERE ho.id_user = u.id_user) AS hlid_os, @a + @b AS soucet FROM isir_sled_users AS u LEFT OUTER JOIN poh_users_stats_daily AS s ON u.id_user = s.id_user AND `day` = CURRENT_DATE() WHERE s.id_user IS NULL]
at org.hibernate.engine.query.spi.ParameterParser.parse(ParameterParser.java:95) [hibernate-core-4.1.5.SP1.jar:4.1.5.SP1]
at org.hibernate.engine.query.spi.ParamLocationRecognizer.parseLocations(ParamLocationRecognizer.java:75) [hibernate-core-4.1.5.SP1.jar:4.1.5.SP1]
at org.hibernate.engine.query.spi.QueryPlanCache.buildParameterMetadata(QueryPlanCache.java:138) [hibernate-core-4.1.5.SP1.jar:4.1.5.SP1]
at org.hibernate.engine.query.spi.QueryPlanCache.getSQLParameterMetadata(QueryPlanCache.java:131) [hibernate-core-4.1.5.SP1.jar:4.1.5.SP1]
at org.hibernate.internal.AbstractSessionImpl.createSQLQuery(AbstractSessionImpl.java:209) [hibernate-core-4.1.5.SP1.jar:4.1.5.SP1]
at org.hibernate.internal.SessionImpl.createSQLQuery(SessionImpl.java:1742) [hibernate-core-4.1.5.SP1.jar:4.1.5.SP1]
at org.hibernate.ejb.AbstractEntityManagerImpl.createNativeQuery(AbstractEntityManagerImpl.java:730) [hibernate-entitymanager-4.1.5.SP1.jar:4.1.5.SP1]
Actually, this will still happen but as of 4.1.3, Hibernate supports excaping the colon char not to treat it as a parameter:
SELECT @a \\:= 1, @b \\:= 2, @a + @b
That works.
--------------------------------------------------------------
Comment by going to Community
[https://community.jboss.org/docs/DOC-19002]
Create a new document in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=102&c...]
12 years, 5 months
[JBoss AS 7 Development] - MySQL module, datasource and persistence.xml (for Hibernate) configuration bash script
by Ondrej Zizka
Ondrej Zizka [https://community.jboss.org/people/ozizka] modified the document:
"MySQL module, datasource and persistence.xml (for Hibernate) configuration bash script"
To view the document, visit: https://community.jboss.org/docs/DOC-19001
--------------------------------------------------------------
This is a bash script which will:
Ask you for AS 7 directory,
download MySQL JDBC driver,
create a module for it,
create myapp-ds.xml file using this module as a driver,
create persistence.xml file using that datasource.
What you need is to put the two files into your application's jar's META-INF/ and change the datasource's connection-url, user-name and password.
And then to add a driver to standalone.xml:
<driver name="mysql" module="com.mysql.jdbc">
<xa-datasource-class>com.mysql.jdbc.jdbc2.optional.MysqlXADataSource</xa-datasource-class>
</driver>
The script to save and then run:
if [ "$1" == "" ] ; then
echo " Usage: $0 <AS7 dir>"
exit 1
fi
AS_DIR=$1
mkdir -p $AS_DIR/modules/com/mysql/jdbc/main
cd $AS_DIR/modules/com/mysql/jdbc/main
wget http://cdn.mysql.com/Downloads/Connector-J/mysql-connector-java-5.1.21.zip
unzip mysql-connector-java-5.1.21.zip
rm mysql-connector-java-5.1.21.zip
cp mysql-connector-java-5.1.21/mysql-connector-java-5.1.21-bin.jar .
rm -rf mysql-connector-java-5.1.21/
cat <<EOF > module.xml
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.0" name="com.mysql.jdbc">
<resources>
<resource-root path="mysql-connector-java-5.1.21-bin.jar"/>
</resources>
<dependencies>
<module name="javax.api"/>
</dependencies>
</module>
EOF
cd -
cat <<EOF > myapp-ds.xml
<?xml version="1.0" encoding="UTF-8"?>
<datasources xmlns="http://www.jboss.org/ironjacamar/schema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.jboss.org/ironjacamar/schema http://docs.jboss.org/ironjacamar/schema/datasources_1_1.xsd">
<!-- JNDI at this location. We reference this in META-INF/persistence.xml -->
<datasource jndi-name="java:jboss/datasources/MyAppDS"
pool-name="myapp-ds-pool" enabled="true" use-java-context="true">
<connection-url>jdbc:mysql://localhost:3306/myapp?characterEncoding=UTF-8&characterSetResults=UTF-8&autoReconnect=true&zeroDateTimeBehavior=convertToNull</connection-url>
<driver>mysql</driver>
<security>
<user-name>myapp</user-name>
<password>myapp</password>
</security>
</datasource>
<!-- JBAS010411: <drivers/> in standalone -ds.xml deployments aren't supported.
==> Needs to go to standalone.xml.
<drivers>
<driver name="mysql" module="com.mysql.jdbc">
<xa-datasource-class>com.mysql.jdbc.jdbc2.optional.MysqlXADataSource</xa-datasource-class>
</driver>
</drivers>
-->
</datasources>
EOF
cat <<EOF > persistence.xml
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
<persistence-unit name="MyAppPU" transaction-type="JTA">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<jta-data-source>java:jboss/datasources/MyAppDS</jta-data-source> <!-- See <datasource jndi-name="..."> . -->
<shared-cache-mode>ENABLE_SELECTIVE</shared-cache-mode>
<properties>
<property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5Dialect"/>
<property name="hibernate.cache.provider_class" value="org.hibernate.cache.NoCacheProvider"/>
<property name="hibernate.show_sql" value="false"></property>
<property name="hibernate.cache.use_second_level_cache" value="true"/>
<property name="hibernate.cache.use_query_cache" value="true" />
<property name="hibernate.cache.use_minimal_puts" value="true"/>
</properties>
</persistence-unit>
</persistence>
EOF
--------------------------------------------------------------
Comment by going to Community
[https://community.jboss.org/docs/DOC-19001]
Create a new document in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=102&c...]
12 years, 5 months
[JBoss AS 7 Development] - MySQL module, datasource and persistence.xml (for Hibernate) configuration bash script
by Ondrej Zizka
Ondrej Zizka [https://community.jboss.org/people/ozizka] modified the document:
"MySQL module, datasource and persistence.xml (for Hibernate) configuration bash script"
To view the document, visit: https://community.jboss.org/docs/DOC-19001
--------------------------------------------------------------
This is a bash script which will:
Ask you for AS 7 directory,
download MySQL JDBC driver,
create a module for it,
create myapp-ds.xml file using this module as a driver,
create persistence.xml file using that datasource.
What you need is to put the two files into your application's jar's META-INF/ and change the datasource's connection-url, user-name and password.
if [ "$1" == "" ] ; then
echo " Usage: $0 <AS7 dir>"
exit 1
fi
AS_DIR=$1
mkdir -p $AS_DIR/modules/com/mysql/jdbc/main
cd $AS_DIR/modules/com/mysql/jdbc/main
wget http://cdn.mysql.com/Downloads/Connector-J/mysql-connector-java-5.1.21.zip
unzip mysql-connector-java-5.1.21.zip
rm mysql-connector-java-5.1.21.zip
cp mysql-connector-java-5.1.21/mysql-connector-java-5.1.21-bin.jar .
rm -rf mysql-connector-java-5.1.21/
cat <<EOF > module.xml
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.0" name="com.mysql.jdbc">
<resources>
<resource-root path="mysql-connector-java-5.1.21-bin.jar"/>
</resources>
<dependencies>
<module name="javax.api"/>
</dependencies>
</module>
EOF
cd -
cat <<EOF > myapp-ds.xml
<?xml version="1.0" encoding="UTF-8"?>
<datasources xmlns="http://www.jboss.org/ironjacamar/schema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.jboss.org/ironjacamar/schema http://docs.jboss.org/ironjacamar/schema/datasources_1_1.xsd">
<!-- JNDI at this location. We reference this in META-INF/persistence.xml -->
<datasource jndi-name="java:jboss/datasources/MyAppDS"
pool-name="myapp-ds-pool" enabled="true" use-java-context="true">
<connection-url>jdbc:mysql://localhost:3306/myapp?characterEncoding=UTF-8&characterSetResults=UTF-8&autoReconnect=true&zeroDateTimeBehavior=convertToNull</connection-url>
<driver>mysql</driver>
<security>
<user-name>myapp</user-name>
<password>myapp</password>
</security>
</datasource>
<drivers>
<driver name="mysql" module="com.mysql.jdbc">
<xa-datasource-class>com.mysql.jdbc.jdbc2.optional.MysqlXADataSource</xa-datasource-class>
</driver>
</drivers>
</datasources>
EOF
cat <<EOF > persistence.xml
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
<persistence-unit name="MyAppPU" transaction-type="JTA">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<jta-data-source>java:jboss/datasources/MyAppDS</jta-data-source> <!-- See <datasource jndi-name="..."> . -->
<shared-cache-mode>ENABLE_SELECTIVE</shared-cache-mode>
<properties>
<property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5Dialect"/>
<property name="hibernate.cache.provider_class" value="org.hibernate.cache.NoCacheProvider"/>
<property name="hibernate.show_sql" value="false"></property>
<property name="hibernate.cache.use_second_level_cache" value="true"/>
<property name="hibernate.cache.use_query_cache" value="true" />
<property name="hibernate.cache.use_minimal_puts" value="true"/>
</properties>
</persistence-unit>
</persistence>
EOF
--------------------------------------------------------------
Comment by going to Community
[https://community.jboss.org/docs/DOC-19001]
Create a new document in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=102&c...]
12 years, 5 months
[JBoss AS 7 Development] - MySQL Datasource configuration script
by Ondrej Zizka
Ondrej Zizka [https://community.jboss.org/people/ozizka] created the document:
"MySQL Datasource configuration script"
To view the document, visit: https://community.jboss.org/docs/DOC-19001
--------------------------------------------------------------
This is a bash script which will:
Ask you for AS 7 directory,
download MySQL JDBC driver,
create a module for it,
create myapp-ds.xml file using this module as a driver,
create persistence.xml file using that datasource.
What you need is to put the two files into your application's jar's META-INF/ .
if [ "$1" == "" ] ; then
echo " Usage: $0 <AS7 dir>"
exit 1
fi
AS_DIR=$1
mkdir -p $AS_DIR/modules/com/mysql/jdbc/main
cd $AS_DIR/modules/com/mysql/jdbc/main
wget http://cdn.mysql.com/Downloads/Connector-J/mysql-connector-java-5.1.21.zip
unzip mysql-connector-java-5.1.21.zip
rm mysql-connector-java-5.1.21.zip
cp mysql-connector-java-5.1.21/mysql-connector-java-5.1.21-bin.jar .
rm -rf mysql-connector-java-5.1.21/
cat <<EOF > module.xml
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.0" name="com.mysql.jdbc">
<resources>
<resource-root path="mysql-connector-java-5.1.21-bin.jar"/>
</resources>
<dependencies>
<module name="javax.api"/>
</dependencies>
</module>
EOF
cd -
cat <<EOF > myapp-ds.xml
<?xml version="1.0" encoding="UTF-8"?>
<datasources xmlns="http://www.jboss.org/ironjacamar/schema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.jboss.org/ironjacamar/schema http://docs.jboss.org/ironjacamar/schema/datasources_1_1.xsd">
<!-- JNDI at this location. We reference this in META-INF/persistence.xml -->
<datasource jndi-name="java:jboss/datasources/MyAppDS"
pool-name="myapp-ds-pool" enabled="true" use-java-context="true">
<connection-url>jdbc:mysql://localhost:3306/myapp?characterEncoding=UTF-8&characterSetResults=UTF-8&autoReconnect=true&zeroDateTimeBehavior=convertToNull</connection-url>
<driver>mysql</driver>
<security>
<user-name>myapp</user-name>
<password>myapp</password>
</security>
</datasource>
<drivers>
<driver name="mysql" module="com.mysql.jdbc">
<xa-datasource-class>com.mysql.jdbc.jdbc2.optional.MysqlXADataSource</xa-datasource-class>
</driver>
</drivers>
</datasources>
EOF
cat <<EOF > persistence.xml
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
<persistence-unit name="MyAppPU" transaction-type="JTA">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<jta-data-source>java:jboss/datasources/MyAppDS</jta-data-source> <!-- See <datasource jndi-name="..."> . -->
<shared-cache-mode>ENABLE_SELECTIVE</shared-cache-mode>
<properties>
<property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5Dialect"/>
<property name="hibernate.cache.provider_class" value="org.hibernate.cache.NoCacheProvider"/>
<property name="hibernate.show_sql" value="false"></property>
<property name="hibernate.cache.use_second_level_cache" value="true"/>
<property name="hibernate.cache.use_query_cache" value="true" />
<property name="hibernate.cache.use_minimal_puts" value="true"/>
</properties>
</persistence-unit>
</persistence>
EOF
--------------------------------------------------------------
Comment by going to Community
[https://community.jboss.org/docs/DOC-19001]
Create a new document in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=102&c...]
12 years, 5 months
[JBoss AS 7 Development] - Jboss-7.1.1.Final, Received fatal alert: handshake_failure
by PRAVEEN KONDAKA
PRAVEEN KONDAKA [https://community.jboss.org/people/pkondaka1] created the discussion
"Jboss-7.1.1.Final, Received fatal alert: handshake_failure"
To view the discussion, visit: https://community.jboss.org/message/750744#750744
--------------------------------------------------------------
Hello Folks,
I am struggling with upgrade to Jboss-7.1.1.Final from Jboss-6.0.0.Fianl. I am deploying my WAR and trying to make SOAP web service call from my JSP client, I am getting following error. It was working fine in JBoss-6.0.0
If I make regular HTTP it was working fine in JBoss-7.1.1. I believe something related to keystore or certs (server or client). Please help me to resolve this issue. I have tried couple of options with server cert and client certs, keystore, but no luck.
******
javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:174)
at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:136)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1720)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:954)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1138)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1165)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1149)
at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:434)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:166)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1014)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:230)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:250)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:159)
at org.apache.jsp.jsp.CORESoapClient_jsp._jspService(CORESoapClient_jsp.java:164)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)
at java.lang.Thread.run(Thread.java:662)
******
standalone.xml
------------------------
My https connector in <subsystem xmlns="urn:jboss:domain:web:1.1"
<connector name="myhttps" protocol="HTTP/1.1" scheme="https" socket-binding="myhttps" secure="true">
<ssl name="ssl" password="changeit" certificate-key-file="${jboss.server.config.dir}/keystore.jks" protocol="TLSv1" verify-client="want" ca-certificate-file="C:/Program Files/Java/jdk1.6.0_26/jre/lib/security/cacerts"/>
</connector>
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/750744#750744]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 5 months
[JBoss ESB Development] - Esb service and EJB3 Action or JBESB-2134 continuation...
by Maksym RMA
Maksym RMA [https://community.jboss.org/people/maksrma] created the discussion
"Esb service and EJB3 Action or JBESB-2134 continuation..."
To view the discussion, visit: https://community.jboss.org/message/750444#750444
--------------------------------------------------------------
Hi all
I have big project on ESB, that started sinse ESB 4.2
Now I migrate project to use ESB 4.10
So, my environment is:
JBoss 6.1 and ESB 4.10
All works file, but not EJBProcessor EJB3 actions.
My service file structure:
myservice.esb
-- META-INF
-- jboss-esb.xml
-- deployment.xml -- I am trying with dependency <depends>jboss.j2ee:module=upbsservice.jar,name=UpbsServiceBean,service=EJB3</depends> and without it (result same...)
-- ejb3-files.jar --- contains EJB3 Stateless Bean for action
I found JIRA
* https://issues.jboss.org/browse/JBESB-2134 JBESB-2134
With last comment in 2008: Mea culpa. I was not aware of the possibility of such a dependency specification. And task was closed. (I think it's wonderfull reaction on highest bug, as for me :^0 )
My jboss-esb.xml has action:
....
<action name="ejb-action" class=++"org.jboss.soa.esb.actions.EJBProcessor">++
+.... ejb3 = true, method, jndi-name.... same as in documentation.+
And exception with dependency:
DEPLOYMENTS IN ERROR:
Deployment "<UNKNOWN jboss.esb.vfs:///D:/jboss-6.1.0.Final/server/my-conf
/deploy/myproject/myservice.esb>" is in error due to the following reason(s): ** UNRESOL
VED Demands 'jboss.j2ee:module=ejb3-files.jar,name=MyEJBBean,service=EJB3
' **
And exception without dependency in deployment.xml:
...
Caused by: org.jboss.soa.esb.actions.ActionLifecycleException: Could not lookup MyEJBBean/remote...
After jndi tree after server start I can see my been. It was initialized after EJBProcessor asking for it.
Have anybody ideas how to possible use .esb service with EJB3 action inside esb file?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/750444#750444]
Start a new discussion in JBoss ESB Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 5 months
[JBoss AS 7 Development] - Re: AS7 Logging - org.jboss.logging.jul-to-slf4j-stub ?
by David Lloyd
David Lloyd [https://community.jboss.org/people/dmlloyd] created the discussion
"Re: AS7 Logging - org.jboss.logging.jul-to-slf4j-stub ?"
To view the discussion, visit: https://community.jboss.org/message/748240#748240
--------------------------------------------------------------
> rang s wrote:
>
> Looks like either something is missing or I am doing it wrongly.
>
> This is the scenario I am trying. I have a EJB jar file. It uses java util logging. Now I wish to use JUL-to-SLF4J stub and then wish to log the messages via log4j.
There's your first issue. You do not need to use JUL-to-SLF4J in order to log JUL messages in AS 7. Our stub version of this library actually does nothing and is only there to prevent errors in existing code.
> rang s wrote:
>
> ( I have specified this handled in logging.properties bundled in ejb jar, hope this is the right way) .
>
> I have tried adding log4j.properties in the ejb jar but the messages were not logged.
If you have both a logging.properties and a log4j.properties, I believe the log4j.properties will be ignored. You can only have one logging configuration file per deployment, and that configuration applies to all logging APIs, including slf4j, JUL, log4j, etc. AS automatically unifies all log frameworks.
> rang s wrote:
>
> ( SLF4J says that an application needs to have slf4j-log4j12-1.6.6.jar and log4j. The former I bundle with my ejb jar. The latter is provided by JBoss AS7. Hope this is fine)
You do not need any slf4j JARs as AS7 already provides them all. Any slf4j JAR you do provide should be ignored, though I'd leave them out just to be safe.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/748240#748240]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 5 months