[JBoss Seam] - Migrating Seam application from Windows to Redhat
by supernovasoftware.com
I am about to launch a new version of my software and would really like to move from Windows 2000 to Redhat.
My application is based on Seam 2.0.1/EJB3, PostgreSQL 8.3, on JBAS 4.2.2, JRockit 6 R27.4 JRE.
Would someone please comment on their experience with Windows to Linux for this type of application.
My experience with Linux is minimal, but I have hired a Linux consultant to help me with the transition. He has no experience with JBoss and mainly sets up large clusters of Redhat boxes.
1. Once I have JBAS and PostgreSQL set up on the Linux box can I expect the same ear built on windows to work without problems?
2. Are there any pitfalls I should look out for?
3. Is there any documentation to ease the windows to Redhat transition?
4. Any other general advice?
5. How does performance compare for Windows vs Redhat for this type of application?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4127943#4127943
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4127943
18 years, 2 months
[JBoss Seam] - problem with https : tries to display the page and eventuall
by vlaugier
Hello,
I am trying to enforce for the first time some https redirection for some pages of my application.
The EAP is 4.2.0.GA_CP01 and the application is a seam 1.2.1 application
For the moment we only want the login page to be in https
Here is an extract of pages.xml
| <page view-id="/login.xhtml" scheme="https" />
|
| <page view-id="/home.xhtml" >
| <restrict>#{identity.loggedIn}</restrict>
| </page>
|
We have modify the server.xml as follow (cf http://docs.jboss.com/jbossas/guides/webguide/r2/en/html/ch9.https.sect.html)
| <Connector port="443" address="${jboss.bind.address}" maxThreads="100"
| minSpareThreads="5" maxSpareThreads="15" scheme="https"
| secure="true" clientAuth="false"
| keystoreFile="${jboss.server.home.dir}/conf/jboss.keystore"
| keystorePass="DeR6p3d" sslProtocol="TLS"/>
|
| [...]
|
| <Host name="bbppbiz" autoDeploy="false" deployOnStartup="false"
| deployXML="false">
| <Alias>www.bbppbiz.com</Alias>
| <Alias>bbppbiz.com</Alias>
|
| <Valve className="org.apache.catalina.valves.AccessLogValve"
| prefix="things" suffix=".log" pattern="common"
| directory="${jboss.server.home.dir}/log"/>
|
| <DefaultContext cookies="true" crossContext="true" override="true"/>
| </Host>
|
and put the keystore file, CSR file, and certification files (the three .cer provided by https://www.certificat.com a french certification company) in /opt/JBOSS/jboss-eap-4.2/jboss-as/server/default/conf/
| # ls -l /opt/JBOSS/jboss-eap-4.2/jboss-as/server/default/conf/
| total 308
| -rw-r--r-- 1 jboss jboss 1546 Feb 8 17:36 AC_CERTINOMIS_SSL.cer
| -rw-r--r-- 1 jboss jboss 1320 Feb 8 16:33 Certificat_Racine_Certplus_Primary_CA_Class_2.cer
| -rw-r--r-- 1 jboss jboss 1631 Feb 8 16:33 Certificat_SSL.cer
| -rw-r--r-- 1 jboss jboss 8682 Sep 13 23:07 jbossjta-properties.xml
| -rw-r--r-- 1 jboss jboss 1363 Feb 8 17:12 jboss.keystore
| -rw-r--r-- 1 jboss jboss 10985 Sep 13 23:07 jboss-log4j.xml
| -rw-r--r-- 1 jboss jboss 7606 Sep 13 23:07 jboss-minimal.xml
| -rw-r--r-- 1 jboss jboss 37281 Sep 13 23:07 jboss-service.xml
| -rw-r--r-- 1 jboss jboss 662 Feb 8 17:13 jboss_ssl.csr
| -rw-r--r-- 1 jboss jboss 194 Sep 13 23:07 jndi.properties
| -rw-r--r-- 1 jboss jboss 7019 Sep 13 23:07 login-config.xml
| drwxr-xr-x 2 jboss jboss 4096 Sep 13 23:08 props
| -rw-r--r-- 1 jboss jboss 116976 Sep 13 23:07 standardjbosscmp-jdbc.xml
| -rw-r--r-- 1 jboss jboss 70236 Sep 13 23:07 standardjboss.xml
| drwxr-xr-x 2 jboss jboss 4096 Sep 13 23:08 xmdesc
|
When I try to access the application in http (you can try, it is online) :
http://www.bbppbiz.com
the browser tries to connect for 30s and eventually make the redirection to https (https://bbppbiz.com/home.seam?cid=1) and print the following error message (in FF)
| The connection was interrupted
|
| The connection to bbppbiz.com was interrupted while the page was loading.
|
|
| * The site could be temporarily unavailable or too busy. Try again in a few
| moments.
|
| * If you are unable to load any pages, check your computer's network
| connection.
|
| * If your computer or network is protected by a firewall or proxy, make sure
| that Iceweasel is permitted to access the Web.
|
Also, it is not a problem of firewall, the port 443 is opened
I hope someone has a hint about this
regards
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4127937#4127937
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4127937
18 years, 2 months
[Microcontainer] - ClassLoaderMetaData not propagating (yet?) to classloader cr
by gcompienne
Sorry, last question for today.
I am doing further testing with the deployers and I have noticed that the ClassLoaderMetaData info does not seem to be used (or fully used?) yet by the subsystem that triggers the creation of the classloader.
In my describe stage I try to change the domain (to see a little what are the effects) and I can see that my classloader stage got the changes but for some reason the classloader that was created is still using the default domain.
Any idea what I could be doing wrong?
Here is the log I got:
| 2008-02-08 17:49:31,856 DEBUG [org.jboss.deployers.plugins.main.MainDeployerImpl] Add deployment: vfsfile:/C:/jboss5-beta3/jboss-5.0.0.Beta3/server/default/deploy/apptest.jar
| 2008-02-08 17:49:31,856 DEBUG [org.jboss.deployers.plugins.main.MainDeployerImpl] Scheduling deployment: vfsfile:/C:/jboss5-beta3/jboss-5.0.0.Beta3/server/default/deploy/apptest.jar parent=null
| 2008-02-08 17:49:31,856 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] Deploying vfsfile:/C:/jboss5-beta3/jboss-5.0.0.Beta3/server/default/deploy/apptest.jar
| 2008-02-08 17:49:31,856 DEBUG [protomcf.test.deployer.TestParserDeployer] TestDeployerParser parsing...
| 2008-02-08 17:49:31,856 DEBUG [protomcf.test.deployer.TestParserDeployer] TestDeployerParser returning: ParserMetaData(a)10009199[testapp.BaseTestServlet]
| 2008-02-08 17:49:31,856 DEBUG [protomcf.test.deployer.TestDescribeDeployer] TestDescribeDeployer deploy called...
| 2008-02-08 17:49:31,856 DEBUG [protomcf.test.deployer.TestDescribeDeployer] ** ClassLoaderMetaData = org.jboss.deployers.structure.spi.classloading.ClassLoaderMetaData@78e67f
| 2008-02-08 17:49:31,856 DEBUG [protomcf.test.deployer.TestDescribeDeployer] ** Name = vfsfile:/C:/jboss5-beta3/jboss-5.0.0.Beta3/server/default/deploy/apptest.jar
| 2008-02-08 17:49:31,856 DEBUG [protomcf.test.deployer.TestDescribeDeployer] ** Domain = <DEFAULT>
| 2008-02-08 17:49:31,856 DEBUG [protomcf.test.deployer.TestDescribeDeployer] ** Parent Domain = null
| 2008-02-08 17:49:31,856 DEBUG [protomcf.test.deployer.TestDescribeDeployer] ** isImportAll? true
| 2008-02-08 17:49:31,856 DEBUG [protomcf.test.deployer.TestDescribeDeployer] ** Export all = NON_EMPTY
| 2008-02-08 17:49:31,856 DEBUG [protomcf.test.deployer.TestDescribeDeployer] ClassLoaderFactory not present...
| 2008-02-08 17:49:31,856 DEBUG [protomcf.test.deployer.TestDescribeDeployer] ParserMetaData found: ParserMetaData(a)10009199[testapp.BaseTestServlet]
| 2008-02-08 17:49:31,856 DEBUG [protomcf.test.deployer.TestDescribeDeployer] ** ClassLoaderMetaData = org.jboss.deployers.structure.spi.classloading.ClassLoaderMetaData@78e67f
| 2008-02-08 17:49:31,856 DEBUG [protomcf.test.deployer.TestDescribeDeployer] ** Name = vfsfile:/C:/jboss5-beta3/jboss-5.0.0.Beta3/server/default/deploy/apptest.jar
| 2008-02-08 17:49:31,871 DEBUG [protomcf.test.deployer.TestDescribeDeployer] ** Domain = TestAppDomain
| 2008-02-08 17:49:31,871 DEBUG [protomcf.test.deployer.TestDescribeDeployer] ** Parent Domain = null
| 2008-02-08 17:49:31,871 DEBUG [protomcf.test.deployer.TestDescribeDeployer] ** isImportAll? false
| 2008-02-08 17:49:31,871 DEBUG [protomcf.test.deployer.TestDescribeDeployer] ** Export all = NON_EMPTY
| 2008-02-08 17:49:31,871 DEBUG [org.jboss.classloader.spi.base.BaseClassLoader] Created BaseClassLoader@164a659 with policy VFSClassLoaderPolicy@e523ed{domain=null roots=[JarEntryHandler(a)32044257[path=apptest.jar/WEB-INF/classes context=file:/C:/jboss5-beta3/jboss-5.0.0.Beta3/server/default/deploy/ real=jar:file:/C:/jboss5-beta3/jboss-5.0.0.Beta3/server/default/deploy/apptest.jar!/WEB-INF/classes/], MemoryContextHandler@26854149[path=classes context=vfsmemory://5c4o1s-a5nrui-fcf14ibf-1-fcf19nbz-1l real=vfsmemory://5c4o1s-a5nrui-fcf14ibf-1-fcf19nbz-1l/classes]] delegates=[] exported=[testapp]NON_EMPTY}
| 2008-02-08 17:49:31,871 DEBUG [org.jboss.classloader.spi.base.BaseClassLoaderDomain] ClassLoaderDomain@670479{<DEFAULT>} registerClassLoader BaseClassLoader@164a659{VFSClassLoaderPolicy@e523ed{domain=null roots=[JarEntryHandler(a)32044257[path=apptest.jar/WEB-INF/classes context=file:/C:/jboss5-beta3/jboss-5.0.0.Beta3/server/default/deploy/ real=jar:file:/C:/jboss5-beta3/jboss-5.0.0.Beta3/server/default/deploy/apptest.jar!/WEB-INF/classes/], MemoryContextHandler@26854149[path=classes context=vfsmemory://5c4o1s-a5nrui-fcf14ibf-1-fcf19nbz-1l real=vfsmemory://5c4o1s-a5nrui-fcf14ibf-1-fcf19nbz-1l/classes]] delegates=[] exported=[testapp]NON_EMPTY}}
| 2008-02-08 17:49:31,871 DEBUG [protomcf.test.deployer.TestClassloaderDeployer] ** ClassLoaderMetaData = org.jboss.deployers.structure.spi.classloading.ClassLoaderMetaData@78e67f
| 2008-02-08 17:49:31,871 DEBUG [protomcf.test.deployer.TestClassloaderDeployer] ** Name = vfsfile:/C:/jboss5-beta3/jboss-5.0.0.Beta3/server/default/deploy/apptest.jar
| 2008-02-08 17:49:31,871 DEBUG [protomcf.test.deployer.TestClassloaderDeployer] ** Domain = TestAppDomain
| 2008-02-08 17:49:31,871 DEBUG [protomcf.test.deployer.TestClassloaderDeployer] ** Parent Domain = null
| 2008-02-08 17:49:31,871 DEBUG [protomcf.test.deployer.TestClassloaderDeployer] ** isImportAll? false
| 2008-02-08 17:49:31,871 DEBUG [protomcf.test.deployer.TestClassloaderDeployer] ** Export all = NON_EMPTY
| 2008-02-08 17:49:31,871 DEBUG [protomcf.test.deployer.TestClassloaderDeployer] ClassLoaderFactory not present...
| 2008-02-08 17:49:31,871 DEBUG [protomcf.test.deployer.TestClassloaderDeployer] ClassLoader is BaseClassLoader@164a659
| 2008-02-08 17:49:31,871 DEBUG [protomcf.test.deployer.TestClassloaderDeployer] ** module = org.jboss.deployers.plugins.classloading.Module@1d2822f
| 2008-02-08 17:49:31,871 DEBUG [org.jboss.ejb3.deployers.Ejb3Deployer] ********* Ejb3Deployer Begin Unit: apptest.jar jar: apptest.jar
| 2008-02-08 17:49:31,871 DEBUG [org.jboss.ejb3.Ejb3Deployment] EJB3 deployment time took: 0
| 2008-02-08 17:49:31,871 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] Fully Deployed vfsfile:/C:/jboss5-beta3/jboss-5.0.0.Beta3/server/default/deploy/apptest.jar
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4127930#4127930
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4127930
18 years, 2 months