[Tomcat, HTTPD, Servlets & JSP] - Session being stolen / assigned to wrong person
by javaspack
Problem configuration:
JBoss 4.2.1, Apache 2.0.59, mod_jk 1.2.25, java 1.6.02
We have a problem were our website will run great 99% of the time. Then it starts all sorts of weirdness (partial pages, text only, completely wrong pages)
Then the problem will just disappear with no intervention. It usually doesn't last more than 5 minutes.
We have tracked the problem down to requests not being handled properly. In looking through the individual requests being processed, we can see the JSESSIONID going from one user's IP to a different user. The wrong user then becomes the original user as though they had logged in.
The worst problem is that orders are being placed under the wrong account.
Originally believing it to be an Apache issue, we stripped out all the Virtual Host settings, removed load balancing and made it as basic as possible.
Finally, we reverted JBoss to 4.0.3SP1 about 2 weeks ago and the problem hasn't happened again. I don't think ever we made it 72 hours on JBoss 4.2.1.
So, this looks to us to be a Tomcat or JBoss issue. It looks like JBoss 4.2.1 uses either Tomcat 6.0.10 or 6.0.13.
I know JBoss is now at 4.2.2 and we are planning to try that next, but it doesn't look like it uses a different version of Tomcat, so we aren't very hopeful.
Anybody else experienced this or does anybody know of any changes between the versions that could cause this?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4130601#4130601
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4130601
18 years, 2 months
[Beginners Corner] - Re: The Interested Idea of Java Web Hosting
by Kevinul
"PeterJ" wrote : What do you mean by "provide shared web hosting to people"? Are you saying that you want to host web sites or web applications for numerous people, where each person has his or her own "web site"? Based on the description of cPanel, I think that is what you are asking. Personally, I do not know of any web hosting software written Java, maybe others can chime in.
|
Oh, really? Hopefully the marketing team of Sun M... can shead more light to people of the web hosting industry, and this could be nice.
Anyone know a project of this, or what it would be called technically?
"PeterJ" wrote : Also, as far as I know there are no automatic conversion tools to convert php code into JSPs.
|
I didn't mean that, sorry. I meant to migrate from coding from PHP to JSP, and able to code web applications of their own and yes their own web site.
I know JSP is Java and HTML, but hopefully I'll be able to understand Java, and able to code well with it and show the people what Java really can do (If it can do it, of course, I could be be wrong.).
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4130594#4130594
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4130594
18 years, 2 months
[JBossWS] - Webservice appears to deploy, but doesn't... Why not?
by IcemanAragorn
I have a webservice that appears to deploy, with jboss saying the following:
anonymous wrote : 16:20:00,006 INFO [EARDeployer] Init J2EE application: file:/C:/jboss-4.2.1.GA/server/default/deploy/ProjectName_EAR-0.0.1.ear
| 16:20:00,787 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
| 16:20:00,787 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=ProjectName_EAR-0.0.1.ear,jar=ProjectName-1.0-SNAPSHOT.jar,name=Import,service=EJB3 with dependencies:
| 16:20:00,837 INFO [EJBContainer] STARTED EJB: com.owfg.ProjectName.webservice.Import ejbName: Import
| 16:20:00,857 INFO [EJB3Deployer] Deployed: file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp24683ProjectName_EAR-0.0.1.ear-co
| ntents/lib/ProjectName-1.0-SNAPSHOT.jar
| 16:20:00,877 INFO [EARDeployer] Started J2EE application: file:/C:/jboss-4.2.1.GA/server/default/deploy/ProjectName_EAR-0.0.1.ear
However, comparing it to another webservice that was deployed, it's missing a few pieces (italicized):
anonymous wrote : 16:19:45,657 INFO [EARDeployer] Init J2EE application: file:/C:/jboss-4.2.1.GA/server/default/deploy/Project2_EAR-0.0.1.ear
| 16:19:49,362 WARN [MainDeployer] Found non-jar deployer for SNMPRelay-1.0-SNAPSHOT.jar: MBeanProxyExt[jboss.ejb3:service=EJB3Deployer]
| 16:19:57,693 INFO [TomcatDeployer] deploy, ctxPath=/Project2Service, warUrl=.../tmp/deploy/Project2_EAR-0.0.1.ear-Project2-1.0-SNAPSHOT.jar-ws24682.w
| ar/
| 16:19:58,204 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
| 16:19:58,224 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=Project2_EAR-0.0.1.ear,jar=Project2-1.0-SNAPSHOT.jar,name=Project2,service=
| EJB3 with dependencies:
| 16:19:58,574 INFO [EJBContainer] STARTED EJB: com.owfg.Project2.webservice.Project2ejbName: Project2
| 16:19:58,614 INFO [EJB3Deployer] Deployed: file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp24679Project2_EAR-0.0.1.ear-contents/lib/Project2-1.0
| -SNAPSHOT.jar
| 16:19:58,915 INFO [WSDLFilePublisher] WSDL published to: file:/C:/jboss-4.2.1.GA/server/default/data/wsdl/Project2_EAR-0.0.1.ear/Project2-1.0-SNAPSHO
| T.jar/Project2Service24680.wsdl
| 16:19:59,556 INFO [ServiceEndpointManager] WebService started: http://localhost:8080/Project2Service/Project2
| 16:19:59,576 INFO [EARDeployer] Started J2EE application: file:/C:/jboss-4.2.1.GA/server/default/deploy/Project2_EAR-0.0.1.ear
Both webservices are annotated as @WebService and @Stateless, but the one that isn't deploying properly is implementing ImportRemote and ImportLocal classes, which are just simple interfaces with @Remote or @Local respectively. For some reason recently jboss started complaining that there were no remote or local interfaces, so I added them. It's strange that it wasn't complaining in the past, and still doesn't complain about Project2 not having any.
Any ideas where I can find clues to figure out why it isn't deploying properly (or, if it is the base issue, why jboss suddenly starting asking for interfaces)?
Thanks so much.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4130592#4130592
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4130592
18 years, 2 months