[JBoss Portal] - in active Session Timeout problem in Jboss portal
by anil4376
Hi
Iam using Jboss portal 2.4 for developing my application.. in my application we have two kind of requests like
1. portlet request
2. servlet request (Ajax Call)
In jboss Application Server i configure portal service , so that iam getting portal container, and jboss also has tomcat container for handling servlet request..
when iam runing the load test on servlet request(Ajax call) for 1 hr , it is failing once 30 min of time is over this is happened because of timeout in portal..
can any body tel me the solution how can i set the time out value which is applicable for both servlet and portlet requests..
in portal.sar/portal-server.war/WEB-INF/web.xnl has session timeout of 30 min this is for portlet requests...
in jbossweb-tomcat55.sar\conf\web.xml has session time value of 30 min..
but session time should not happen for my application when it is accessing any one of the request for more than 30 min..
here one request is executing more than 30 min but the other guy was sittling idle so that , he is timeing out from the application..
waiting for your valueble reply.
Thanks in advance
Anil
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139601#4139601
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139601
16 years, 9 months
[JBoss Tools (users)] - Re: file extension .jsf ? instead of .jsp and .xhtml
by Antoine_h
To check better :
- I create a new file (simple new file), with .jsf extension
- I copied into it the exact whole content of a .xhtml file that works well.
=> the file is set as a JSP (the icon is jsp, the default editor is JBoss Tool JSP editor).
if I open it with "open with", and choose JBoss Tool HTML editor.
idem : no code completion, no code validation etc...
note : the icon of the editor window is "green with htm"... and not "blue with jsp"
so, it seems there is something that prevent the editor to run with this file as a jsf file.
for the time being, I keep on with .xhtml file, because I need to go on with my work.
but I think .jsf files should be better.
xhtml is a great standard... but it now means everything... so it means nothing...
I mean : if someone want to search in files... it may be usefull to filter on the jsf file from other types of files... with the .jsf.
If I can help with some testing ...
I will try again the .jsf.... as soon as it can be possible...
Thanks,
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139596#4139596
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139596
16 years, 9 months
[Management, JMX/JBoss] - Error while shutting down JBoss
by vishal_jboss
Hello members,
I am using JBoss eap 4.3 and am starting JBoss using
./run.sh -c default -b 0.0.0.0
The server starts without any issues, But when I try to shutdown JBoss I get the following error:
# ./shutdown.sh -S
Exception in thread "main" javax.naming.CommunicationException: Could not obtain connection to any of these urls: localhost:1099 [Root exception is javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused]]]
| at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1416)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:596)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:589)
| at javax.naming.InitialContext.lookup(InitialContext.java:351)
| at org.jboss.Shutdown.main(Shutdown.java:214)
| Caused by: javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused]]
| at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:269)
| at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1387)
| ... 4 more
| Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused]
| at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:243)
| ... 5 more
| Caused by: java.net.ConnectException: Connection refused
| at java.net.PlainSocketImpl.socketConnect(Native Method)
| at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
| at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
| at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
| at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
| at java.net.Socket.connect(Socket.java:520)
| at java.net.Socket.connect(Socket.java:470)
| at java.net.Socket.<init>(Socket.java:367)
| at java.net.Socket.<init>(Socket.java:267)
| at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:84)
| at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:77)
| at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:239)
| ... 5 more
Can somebody explain why is this happening?
Thank you
Vishal
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139587#4139587
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139587
16 years, 9 months
[JBoss Cache: Core Edition] - Re: basic question on starting a jboss cache
by radomehta
Thanks a lot bstansberry. Your post was very useful for me.
According to what u said , I have now configured my hibernate as:
<!-- JBoss Cache configuration file name -->
But when I run my application, I get the following error:
Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/cache/TransactionManagerLookup
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
at java.lang.Class.getConstructor0(Class.java:2671)
at java.lang.Class.newInstance0(Class.java:321)
at java.lang.Class.newInstance(Class.java:303)
at org.hibernate.cfg.SettingsFactory.createCacheProvider(SettingsFactory.java:375)
.....................
So in my configuration file I added another configuration:
Now I get the error:
Exception in thread "main" javax.persistence.PersistenceException: org.hibernate.HibernateException: Could not instantiate TransactionManagerLookup 'org.jboss.cache.transaction.GenericTransactionManagerLookup'
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:720)
at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:121)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:51)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:33)
at TestPersistence.main(TestPersistence.java:18)
Caused by: org.hibernate.HibernateException: Could not instantiate TransactionManagerLookup 'org.jboss.cache.transaction.GenericTransactionManagerLookup'
at org.hibernate.transaction.TransactionManagerLookupFactory.getTransactionManagerLookup(TransactionManagerLookupFactory.java:47)
at org.hibernate.cfg.SettingsFactory.createTransactionManagerLookup(SettingsFactory.java:422)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:140)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2073)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1298)
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:713)
... 4 more
What could be the problem?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139578#4139578
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139578
16 years, 9 months