26273

WebLogic 10.5.3 + Seam 2.2.1: Application does not start

Question:

we have a WAR packaged web application which works on a development machine. It consists of Java EE 5 + Seam 2.2.1 + Hibernate 3.3.1. It uses an Oracle 10g XE database and runs on the latest Tomcat 6 using JDK 1.6.0_24. The system is a 64bit Windows 7 Pro and uses Firefox 6.

Now, we tried to migrate the application to Oracle WebLogic 10.3.5. We followed the Seam manual for specifying the datasource, deploying the JSF lib and configuring the necessary xml-Files. In parallel to that, we verified that a newly seam-gen generated application using the same datasource and having the xml files configured as stated works fine.

But if we try our own application on WebLogic, allthough the deployment works fine, when trying to open the web application in the browser, it shows that endless redirection occured. We don't see any stacktrace or log error, even when configuring log4j in WebLogic. When analyzing the request with Firebug, we see the get request to "login.seam" and then 20 times a get request for "error.seam" (or "debug.seam when setting debug mode) with the response "302 Moved Temporarily".

I worked on that all week now, trying to compare all configurations and couldn't solve it - so I hope to get any ideas what could cause that problem and how to solve it!

Answer1:

I could pin down the problem to starting a transaction on the JTA persistence context. I still don't understand why I didn't see any log message or stacktrace and why this also happens on the debug/error page (that's why the endless redirect occured).

I ended up using RESOURCE_LOCAL so far, but I'm not sure if this is the right thing to do. The alternative is disabling the seam transaction setting, but then it didn't work together with the development build which still runs on Tomcat.

Recommend

  • Using same Jsession ID to login into other machine
  • persistence-unit, different hibernate.transaction.manager_lookup_class property
  • How do I create a common component in Weblogic?
  • overload virtual function with different parameters in c++
  • How can a javax.persistence.Column be defined as an Unsigned TINYINT?
  • Does derived class' member functions inherit virtualness from base class?
  • Amazon s3 – 403 Forbidden with Correct Bucket Policy
  • Difference between “&” and std::reference_wrapper?
  • Programmatically set PIN/Password used to unlock device
  • Is there any kind of jQuery.browser fallback?
  • Git and client/server code separation
  • OAuth2 flow for mobile app
  • Migrating from java 1.4 ,EJB 1 to Java 6 and EJB 3 [closed]
  • Is there an HTML code that can make my background picture transparent and my text non-transparent?
  • ASP.NET MVC2 Error: No parameterless constructor defined for this object
  • c++ search a vector for element first seen position
  • Is is safe to use HSQLDB for production? (JBoss AS5.1)
  • Is there a way to disable a specific event in kendo ui scheduler?
  • Retaining data after updating application
  • Is it possible to define rest argument in OCaml?
  • How do I retrieve the user information of a user authenticated with Apache's mod_ldap?
  • How to handle elastic beanstalk deployment so it uploads only changed files
  • Compiling dlib on OS X
  • Suppressing passwd when calling sqlplus from shell script
  • Security issues with PHP's Readfile method
  • Eliminate partial duplicate rows from result set
  • What and where is mdimport
  • Word Open XML Mail Merge
  • How do I alternate colors in Flat List (React Native)
  • Allowing both email and username for authentication
  • Is it possible to access block's scope in method?
  • Get one-time binding to work for ng-if
  • Sony Xperia Z Tablet not found by adb
  • Sending data from AppleScript to FileMaker records
  • Javascript convert timezone issue
  • Why is the timeout on a windows udp receive socket always 500ms longer than set by SO_RCVTIMEO?
  • How do you troubleshoot character encoding problems?
  • Do I've to free mysql result after storing it?
  • How do you join a server to an Active Directory (domain)?
  • Django query for large number of relationships