-
1. Re: Seam 2.3.0.CR1 is out!
mobwerner Sep 5, 2012 10:23 AM (in response to manarh)Marek,
Will it be possible with this version of seam to run seam 2 and seam 3 applications on the same instance of a JBoss 7?
We have some legacy "seam 2 " apps running on 4.2.3 GA and our new projects are all developed with JAVA EE 6 api and SEAM 3 modules on Jboss 7.1.0CR1.
We would like to only have one application server, namely our Jboss 7 instance.
Thanks for reply, keep up the good work,
Werner
-
2. Re: Seam 2.3.0.CR1 is out!
manarh Sep 5, 2012 10:46 AM (in response to mobwerner)Werner Jacobs wrote:
Marek,
Will it be possible with this version of seam to run seam 2 and seam 3 applications on the same instance of a JBoss 7?
it should be fine as you won't mix Seam 2.3 components and Seam3 beans inside one application.
-
3. Re: Seam 2.3.0.CR1 is out!
mobwerner Sep 6, 2012 9:47 AM (in response to manarh)Thx for your reply, this was the answer I was hoping for. Keep up the good work.
-
4. Re: Seam 2.3.0.CR1 is out!
sdnakhla Sep 6, 2012 10:07 PM (in response to manarh)I was previously running Beta2 and have replaced the Seam libraries with those from CR1. Now, however, I'm getting this exception whenever I attempt to persist data using an EntityManager in my TestAction class:
@In attribute requires non-null value: testAction.entityManager
This code worked just fine under Beta2. Is there anything that has changed that I should take a look at? It looks like regardless of the class my EntityManager is not being injected properly. Here is the declaration in my components.xml:
<persistence:managed-persistence-context
name="entityManager" auto-create="true" persistence-unit-jndi-name="java:/ProjectXEntityManagerFactory" />
-
5. Re: Seam 2.3.0.CR1 is out!
manarh Sep 7, 2012 4:59 AM (in response to sdnakhla)I don't know for sure.
Can you show the content of components.xml? I would think only if you have the correct target namespace in components.xml, that URL was changed due changing storage place at jboss.org.
That migration covers seam23migration.txt, you can look into seam distribution or at https://anonsvn.jboss.org/repos/seam/branches/community/Seam_2_3/distribution/src/main/assembly/seam23migration.txt. That migration steps will be in Seam ref doc for final release too.
-
6. Re: Seam 2.3.0.CR1 is out!
sdnakhla Sep 7, 2012 9:18 AM (in response to manarh)I'll take a look at that as soon as I can. Was the namespace change something unique to CR1? Everything was working fine for me under Beta2.
-
7. Re: Seam 2.3.0.CR1 is out!
sdnakhla Sep 9, 2012 8:14 PM (in response to manarh)Marek --
I have changed the schema locations, per your suggestion, but still see the issue. Other components seem to load without issue. The only thing that seems to be failing is the creation of my EntityManager. I don't see anything in the logs that would explain what's going on, even when set to DEBUG loglevel. Here is the relevant portion of my components.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<components xmlns="http://jboss.com/schema/seam/components"
xmlns:core="http://jboss.com/schema/seam/core" xmlns:persistence="http://jboss.com/schema/seam/persistence"
xmlns:drools="http://jboss.com/schema/seam/drools" xmlns:bpm="http://jboss.com/schema/seam/bpm"
xmlns:security="http://jboss.com/schema/seam/security" xmlns:mail="http://jboss.com/schema/seam/mail"
xmlns:cache="http://jboss.com/schema/seam/cache" xmlns:framework="http://jboss.com/schema/seam/framework"
xmlns:web="http://jboss.com/schema/seam/web" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://jboss.com/schema/seam/core http://jboss.com/schema/seam/core-2.3.xsd
http://jboss.com/schema/seam/persistence http://jboss.com/schema/seam/persistence-2.3.xsd
http://jboss.com/schema/seam/drools http://jboss.com/schema/seam/drools-2.3.xsd
http://jboss.com/schema/seam/bpm http://jboss.com/schema/seam/bpm-2.3.xsd
http://jboss.com/schema/seam/security http://jboss.com/schema/seam/security-2.3.xsd
http://jboss.com/schema/seam/mail http://jboss.com/schema/seam/mail-2.3.xsd
http://jboss.com/schema/seam/cache http://jboss.com/schema/seam/cache-2.3.xsd
http://jboss.com/schema/seam/framework http://jboss.com/schema/seam/framework-2.3.xsd
http://jboss.com/schema/seam/web http://jboss.com/schema/seam/web-2.3.xsd
http://jboss.com/schema/seam/components http://jboss.com/schema/seam/components-2.3.xsd">
<core:init debug="true" jndi-pattern="@jndiPattern@" />
<core:manager concurrent-request-timeout="500"
conversation-timeout="120000" conversation-id-parameter="cid"
parent-conversation-id-parameter="pid" />
<!-- Web components -->
<web:rewrite-filter view-mapping="*.seam" />
<web:logging-filter url-pattern="*.seam" />
<web:hot-deploy-filter url-pattern="*.seam" />
<web:context-filter url-pattern="/srv/*" />
<web:cache-control-filter name="imageCacheControlFilter"
regex-url-pattern=".*(\.gif|\.png|\.jpg|\.jpeg)" value="max-age=86400" />
<web:cache-control-filter name="textCacheControlFilter"
regex-url-pattern=".*(\.css|\.js)" value="max-age=1400" />
<component class="org.jboss.seam.web.MultipartFilter">
<property name="createTempFiles">true</property>
<property name="maxRequestSize">26214400</property>
</component>
<factory name="appConfig" auto-create="true"
value="#{configurationLoader.configuration}" />
<!-- Object persistence -->
<persistence:managed-persistence-context
name="entityManager" auto-create="true" persistence-unit-jndi-name="java:/ProjectXEntityManagerFactory" />
-
8. Re: Seam 2.3.0.CR1 is out!
manarh Sep 10, 2012 4:36 AM (in response to sdnakhla)Steve,
there needs to be
http://jboss.org/schema/seam/*
instead of
http://jboss.com/schema/seam/*
Note the org instead of com in server domain.
-
9. Re: Seam 2.3.0.CR1 is out!
sdnakhla Sep 10, 2012 2:10 PM (in response to manarh)Marek --
You were absolutely correct. This resolved my issue and the application is now functioning as expected. Thanks for your help!