[JBoss Tools (users)] - Re: Cannot deploy a recently created Seam Web Project into J
by vitorsouzabr
"vitorsouzabr" wrote : It's in web.xml. This is the web.xml that was generated. Look under <!-- MyFaces -->
Sorry about the lame reply-to-myself, but just to update: I commented the StartupServletContextListener in web.xml and the application ran "fine".
The quotes in "fine" are there because although I could open the web page, the log shows some weird stuff:
Locking assertion failure. Backtrace:
| #0 /usr/lib/libxcb-xlib.so.0 [0x7f310767]
| #1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x31) [0x7f3108b1]
| #2 /usr/lib/libX11.so.6(_XReply+0xfd) [0x7d5341bd]
| #3 /usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/lib/i386/xawt/libmawt.so [0x7d624dce]
| #4 /usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/lib/i386/xawt/libmawt.so [0x7d60ed77]
| #5 /usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/lib/i386/xawt/libmawt.so [0x7d60eef3]
| #6 /usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/lib/i386/xawt/libmawt.so(Java_sun_awt_X11GraphicsEnvironment_initDisplay+0x26) [0x7d60f136]
| #7 [0xb233ebfa]
| #8 [0xb2338b3b]
| #9 [0xb2338b3b]
| #10 [0xb2336219]
| #11 /usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/lib/i386/client/libjvm.so [0xb77ed2bc]
| #12 /usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/lib/i386/client/libjvm.so [0xb7901ed8]
| #13 /usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/lib/i386/client/libjvm.so [0xb77ed0ef]
| #14 /usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/lib/i386/client/libjvm.so(JVM_DoPrivileged+0x32d) [0xb784ab9d]
| #15 /usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/lib/i386/libjava.so(Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedAction_2+0x3d) [0xb75e130d]
| #16 [0xb233e4ab]
| #17 [0xb2338a64]
| #18 [0xb2336219]
| #19 /usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/lib/i386/client/libjvm.so [0xb77ed2bc]
| Locking assertion failure. Backtrace:
| #0 /usr/lib/libxcb-xlib.so.0 [0x7f310767]
| #1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_lock+0x2e) [0x7f31081e]
| #2 /usr/lib/libX11.so.6 [0x7d533518]
| #3 /usr/lib/libX11.so.6(XGetVisualInfo+0x26) [0x7d52a0a6]
| #4 /usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/lib/i386/xawt/libmawt.so [0x7d60e0b9]
| #5 /usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/lib/i386/xawt/libmawt.so [0x7d60e303]
| #6 /usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/lib/i386/xawt/libmawt.so [0x7d60efa1]
| #7 /usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/lib/i386/xawt/libmawt.so(Java_sun_awt_X11GraphicsEnvironment_initDisplay+0x26) [0x7d60f136]
| #8 [0xb233ebfa]
| #9 [0xb2338b3b]
| #10 [0xb2338b3b]
| #11 [0xb2336219]
| #12 /usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/lib/i386/client/libjvm.so [0xb77ed2bc]
| #13 /usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/lib/i386/client/libjvm.so [0xb7901ed8]
| #14 /usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/lib/i386/client/libjvm.so [0xb77ed0ef]
| #15 /usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/lib/i386/client/libjvm.so(JVM_DoPrivileged+0x32d) [0xb784ab9d]
| #16 /usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/lib/i386/libjava.so(Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedAction_2+0x3d) [0xb75e130d]
| #17 [0xb233e4ab]
| #18 [0xb2338a64]
| #19 [0xb2336219]
Let me know if you want me to open a JIRA issue on any of this stuff. I will open one for the browser waiting for JBoss 4.2 x 5.0 thing...
Vitor
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4159213#4159213
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4159213
17 years, 10 months
[Installation, Configuration & DEPLOYMENT] - Pool managing
by lukasVVV
I have this problem. We have distributed application with thousands users. When we have some fatal problem with application or problems with connection then we'll see many selects : "SELECT 'X' FROM DUAL" this is probably caused by OracleValidConnectionChecker class. I search the code and have found no cycle which could cause so many select calling. Maybe problem is that all users are at the same time calling the select that I mentioned above? Then we loose all the connections and have no connections available! Is problem in application or could we solve the problem with better pool managing. This is ours oracle-ds.xml file
<?xml version="1.0" encoding="UTF-8"?>
<local-tx-datasource>
<jndi-name>OKnouzeDS</jndi-name>
<connection-url>jdbc:oracle:thin:@hndb:1521:ns01</connection-url>
<driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
<user-name>OKHNAPP</user-name>
OKHNAPP
<min-pool-size>5</min-pool-size>
<max-pool-size>20</max-pool-size>
<blocking-timeout-millis>10000</blocking-timeout-millis> <!-- doba na cekani getConnection -->
<idle-timeout-minutes>25</idle-timeout-minutes> <!-- doba necinnosti po ktere je connection odpojen z db -->
<!-- Uses the pingDatabase method to check a connection is still valid before handing it out from the pool -->
<valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker</valid-connection-checker-class-name>
<!-- Checks the Oracle error codes and messages for fatal errors -->
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
<!-- sql to call when connection is created-->
<new-connection-sql>
BEGIN
EXECUTE IMMEDIATE 'ALTER SESSION SET NLS_NUMERIC_CHARACTERS = ''.,''';
EXECUTE IMMEDIATE 'ALTER SESSION SET NLS_SORT = xczech';
END;
</new-connection-sql>
<check-valid-connection-sql>select 1 from dual;</check-valid-connection-sql>
<!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->
<type-mapping>Oracle9i</type-mapping>
</local-tx-datasource>
<local-tx-datasource>
<jndi-name>NskDS</jndi-name>
<connection-url>jdbc:oracle:thin:@ssp123:1521:ssp2</connection-url>
<driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
<user-name>NSSEHRAV</user-name>
Carcassonne
<min-pool-size>0</min-pool-size>
<max-pool-size>20</max-pool-size>
<blocking-timeout-millis>10000</blocking-timeout-millis> <!-- doba na cekani getConnection -->
<idle-timeout-minutes>25</idle-timeout-minutes> <!-- doba necinnosti po ktere je connection odpojen z db -->
<!-- Uses the pingDatabase method to check a connection is still valid before handing it out from the pool -->
<valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker</valid-connection-checker-class-name>
<!-- Checks the Oracle error codes and messages for fatal errors -->
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
<!-- sql to call when connection is created-->
<new-connection-sql>
BEGIN
EXECUTE IMMEDIATE 'ALTER SESSION SET NLS_NUMERIC_CHARACTERS = ''.,''';
EXECUTE IMMEDIATE 'ALTER SESSION SET NLS_SORT = xczech';
END;
</new-connection-sql>
<check-valid-connection-sql>select 1 from dual;</check-valid-connection-sql>
<!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->
<type-mapping>Oracle9i</type-mapping>
</local-tx-datasource>
Please give me some post or advice how to solve this problem !!! Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4159207#4159207
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4159207
17 years, 10 months
[Messaging, JMS & JBossMQ] - Issue when deploying JBossMQ behind a firewall
by michel.d
Hello,
After a long research about issues on JBossMQ when deploying the JBoss server behind a firewall, i decided to write a new topic, as my problem seems to be quite special.
We are using JBoss 4.0.5 GA in our application, and we use the JBossMQ service.
Our server is deployed on a computer behind a NAT router, but all ports redirections are set to allow external connections to our JBoss server.
We had of course no problem when running the soft on local network, but we encountered issues as soon as we tried to connect through the router.
We solved our firsts issues :
1. When connecting through the router via RMI, you have to specify the RMI server public address, by launching JBoss with the -Djava.rmi.server.hostname="you public address" argument.
2. As you want connections from anywhere to be possible on JBoss, add the -Djboss.bind.address=0.0.0.0 argument.
3. After that, we were able to obtain RMI connection, but it was impossible to connect to JMS, we had the following exception :
org.jboss.mq.SpyJMSException: Cannot authenticate user; - nested throwable: (java.net.ConnectException: Connection refused: connect)
We found that the JMS connection was provided by the UIL2 InvokationLayer, and that the ConnectAddress property in the corresponding MBean had to be set to the server's public address :
(MBean located in deploy/jms/uil2-service.xml)
<attribute name="ConnectAdress">you.public.address</attribute>
After this solution, I thought we could go on, as everything was working when testing on the local D-Link router.
But we tried then to test the application on Internet and we deployed it behind our NetGear router then tried to access the server from elsewhere : the JMS exception appears again. This problem is certainly caused by somethnig in the router configuration, but we didn't found what it could be, as we have the same ports redirections, and the same configuration on our JBoss server.
This problem is very annoying, so if anybody had a suggestion, he'd be welcome, thanks by advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4159203#4159203
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4159203
17 years, 10 months
[EJB 3.0] - JPQL query tool not running
by armen2010
https://jpaquerytool.dev.java.net/
Hello people, I want to use console for JPQL I found
https://jpaquerytool.dev.java.net/how-to.html
and install it, but then I added my-app.jar and persistence unit name, after run I have one warning -
"could not load persistance unit
check your database classpath"....
and
Message Stack:
No Persistence provider for EntityManager named TestPU: Provider named org.hibernate.ejb.HibernatePersistence threw unexpected exception at create EntityManagerFactory:
javax.persistence.PersistenceException
javax.persistence.PersistenceException: org.xml.sax.SAXParseException: XML document structures must start and end within the same entity.
at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:252)
at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:120)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:110)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:83)
at org.morgade.jpaquerytool.core.EntityFinder.(EntityFinder.java:33)
at org.morgade.jpaquerytool.gui.tasks.CreateEntityFinderTask.doInBackground(CreateEntityFinderTask.java:47)
at org.jdesktop.swingworker.SwingWorker$1.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at org.jdesktop.swingworker.SwingWorker.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.xml.sax.SAXParseException: XML document structures must start and end within the same entity.
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at org.hibernate.ejb.packaging.PersistenceXmlLoader.loadURL(PersistenceXmlLoader.java:70)
at org.hibernate.ejb.packaging.PersistenceXmlLoader.deploy(PersistenceXmlLoader.java:79)
at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:212)
... 12 more
Provider named oracle.toplink.essentials.PersistenceProvider threw unexpected exception at create EntityManagerFactory:
oracle.toplink.essentials.exceptions.PersistenceUnitLoadingException
Local Exception Stack:
Exception [TOPLINK-30005] (Oracle TopLink Essentials - 2.0 (Build b58g-fcs (09/07/2007))): oracle.toplink.essentials.exceptions.PersistenceUnitLoadingException
Exception Description: An exception was thrown while searching for persistence archives with ClassLoader: sun.misc.Launcher$AppClassLoader@11b86e7
Internal Exception: Exception [TOPLINK-30004] (Oracle TopLink Essentials - 2.0 (Build b58g-fcs (09/07/2007))): oracle.toplink.essentials.exceptions.PersistenceUnitLoadingException
Exception Description: An exception was thrown while processing persistence.xml from URL: file:/E:/projects/wn/wn-ejb/dist/wn-ejb.jar
Internal Exception:
(1. cvc-complex-type.2.4.a: Invalid content was found starting with element 'persistence'. One of '{"http://java.sun.com/xml/ns/persistence" ersistence-unit}' is expected.)
(2. XML document structures must start and end within the same entity.)
at oracle.toplink.essentials.exceptions.PersistenceUnitLoadingException.exceptionSearchingForPersistenceResources(PersistenceUnitLoadingException.java:143)
at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.createEntityManagerFactory(EntityManagerFactoryProvider.java:169)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:110)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:83)
at org.morgade.jpaquerytool.core.EntityFinder.(EntityFinder.java:33)
at org.morgade.jpaquerytool.gui.tasks.CreateEntityFinderTask.doInBackground(CreateEntityFinderTask.java:47)
at org.jdesktop.swingworker.SwingWorker$1.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at org.jdesktop.swingworker.SwingWorker.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: Exception [TOPLINK-30004] (Oracle TopLink Essentials - 2.0 (Build b58g-fcs (09/07/2007))): oracle.toplink.essentials.exceptions.PersistenceUnitLoadingException
Exception Description: An exception was thrown while processing persistence.xml from URL: file:/E:/projects/wn/wn-ejb/dist/wn-ejb.jar
Internal Exception:
(1. cvc-complex-type.2.4.a: Invalid content was found starting with element 'persistence'. One of '{"http://java.sun.com/xml/ns/persistence" ersistence-unit}' is expected.)
(2. XML document structures must start and end within the same entity.)
at oracle.toplink.essentials.exceptions.PersistenceUnitLoadingException.exceptionProcessingPersistenceXML(PersistenceUnitLoadingException.java:134)
at oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.processPersistenceXML(PersistenceUnitProcessor.java:161)
at oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.processPersistenceArchive(PersistenceUnitProcessor.java:99)
at oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.getPersistenceUnits(PersistenceUnitProcessor.java:89)
at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.initPersistenceUnits(JavaSECMPInitializer.java:236)
at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.initialize(JavaSECMPInitializer.java:255)
at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.createEntityManagerFactory(EntityManagerFactoryProvider.java:155)
... 11 more
Caused by:
(1. cvc-complex-type.2.4.a: Invalid content was found starting with element 'persistence'. One of '{"http://java.sun.com/xml/ns/persistence" ersistence-unit}' is expected.)
(2. XML document structures must start and end within the same entity.)
at oracle.toplink.essentials.internal.ejb.cmp3.xml.parser.XMLExceptionHandler.error(XMLExceptionHandler.java:52)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.processPersistenceXML(PersistenceUnitProcessor.java:151)
... 16 more
-----------
All this for all my persistance units!
If you know cause of this problem please help me, or
provide other JPQL or JPA query tool.
More Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4159201#4159201
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4159201
17 years, 10 months
[JBoss Messaging] - Re: I got some performance problem while sending a lot of me
by gary.c.chen
JBM version: JBM 1.4.0.SP3
Machine A setup :
CPU: 2 * Dual-Core AMD Opteron(tm) Processor 2220
Memory: 8,388,148K
Filesystem size used avail capacity Mounted on
/dev/dsk/c3t0d0s0 61G 16G 44G 27% /
/devices 0K 0K 0K 0% /devices
ctfs 0K 0K 0K 0% /system/contract
proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
swap 11G 860K 11G 1% /etc/svc/volatile
objfs 0K 0K 0K 0% /system/object
/usr/lib/libc/libc_hwcap2.so.1
61G 16G 44G 27% /lib/libc.so.1
fd 0K 0K 0K 0% /dev/fd
swap 11G 104K 11G 1% /tmp
swap 11G 28K 11G 1% /var/run
/dev/dsk/c3t2d0s0 67G 2.5G 64G 4% /opt/drutt
JBoss AS starting argument:
bash-3.00# pargs 25925
25925: /opt/drutt/local/java/bin/java -Dprogram.name=run.sh -server -verbose:gc -Xms10
argv[0]: /opt/drutt/local/java/bin/java
argv[1]: -Dprogram.name=run.sh
argv[2]: -server
argv[3]: -verbose:gc
argv[4]: -Xms1024m
argv[5]: -Xmx1024m
argv[6]: -Dsun.rmi.dgc.client.gcInterval=3600000
argv[7]: -Dsun.rmi.dgc.server.gcInterval=3600000
argv[8]: -Djava.endorsed.dirs=/export/home/drutt/jboss-4.2.2.GA-4Linux/lib/endorsed
argv[9]: -classpath
argv[10]: /export/home/drutt/jboss-4.2.2.GA-4Linux/bin/run.jar:/opt/drutt/local/java/lib/tools.jar
argv[11]: org.jboss.Main
argv[12]: -b
argv[13]: 150.236.80.206
argv[14]: -c
argv[15]: messaging
Network setup:
100M network
Machine B setup:
CPU: 1 * Intel Core 2 CPU T7200 2.0GHz
Memory: 3,538,284K
All JBM and JBoss AS config parameter using default value.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4159198#4159198
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4159198
17 years, 10 months