[Installation, Configuration & DEPLOYMENT] - upgarding from 4.0.3 to 4.2.3
by eranhauser
Hi,
I have a jsf application that used to work fine on jboss 4.0.3 and jsf 1.1 . I need to upgrade my application to jsf 1.2. I made all the necessary updates to jsf 1.2 but when I deploy on 4.2.3 (4.0.3 does not support jsf 1.2) I get the following error:
Exception sending context initialized event to listener instance of class org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! null
at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:212)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:195)
.
.
.
Caused by: java.lang.NullPointerException
at com.sun.faces.config.WebConfiguration.getInstance(WebConfiguration.java:123)
at com.sun.faces.renderkit.ResponseStateManagerImpl.init(ResponseStateManagerImpl.java:414)
at com.sun.faces.renderkit.ResponseStateManagerImpl.(ResponseStateManagerImpl.java:111)
Any idea what is wrong?
Thanks,
Eran
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4165547#4165547
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4165547
17 years, 9 months
Delivery Status Notification (Failure)
by postmaster@lists.jboss.org
This is an automatically generated Delivery Status Notification.
Unable to deliver message to the following recipients, because the message was forwarded more than the maximum allowed times. This could indicate a mail loop.
6mmmjqfkmsgg07ydgrbweaaaaa(a)technodom.kz
17 years, 9 months
Delivery Status Notification (Failure)
by postmaster@lists.jboss.org
This is an automatically generated Delivery Status Notification.
Unable to deliver message to the following recipients, because the message was forwarded more than the maximum allowed times. This could indicate a mail loop.
17(a)technodom.kz
17 years, 9 months
[JBoss Portal] - problems using dojo/dijit
by amouradi
Hello,
I was wondering if anyone succeeded using dojo dijits in their portlets. I have tried using elements with defined dojoType, and they are not being rendered correctly, it seems dojo is not parsing dijits on the page.
If I add them programmatically, that sort of works, but then still not rendered correctly. I am using this code to include css and dojo.js.
<style type="text/css">
| @import "<%=request.getContextPath()%>/scripts/dojo/dojo/resources/dojo.css";
| @import "<%=request.getContextPath()%>/scripts/dojo/dijit/tests/css/dijitTests.css";
| @import "<%=request.getContextPath()%>/scripts/dojo/dijit/themes/tundra/tundra.css";
| .dj_ie INPUT#setvaluetest { font-family: Courier; }
| </style>
| <div id="scripts_<portlet:namespace/>"> </div>
|
| <script type="text/javascript">
|
| function getJsFile_<portlet:namespace/>(jsFile) {
| return "<%=request.getContextPath()%>" + jsFile ;
| }
| //this creates separate namespace for dojo
| if (typeof dojo == "undefined") {
| /* Build script tag. */
| var script = document.createElement("script");
| script.src = getJsFile_<portlet:namespace/>("/scripts/dojo/dojo/dojo.js");
| script.type= "text/javascript";
| script.djConfig = "isDebug: true, parseOnLoad:true";
|
| /* Insert at the top of portlet scripts_<namespace>. */
| var scripts_<portlet:namespace/> = document.getElementById("scripts_<portlet:namespace/>");
| scripts_<portlet:namespace/>.insertBefore(script, scripts_<portlet:namespace/>.firstChild);
| }
|
| </script>
|
| <script type="text/javascript">
| dojo.require("dojo.parser");
| dojo.require("dojo.date");
| dojo.require("dijit.form.FilteringSelect");
| dojo.require("dijit.form.Form");
| dojo.require("dojo.data.ItemFileReadStore");
| ..... etc
Anyone had more luck than me? Please help, would really appreciate!
Thanks!
Ann
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4165543#4165543
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4165543
17 years, 9 months
[EJB 3.0] - Persisting POJO entities defined in a different jar
by nbhatia
I have an existing jar file containing POJO entities (no JPA annotations, no persistence.xml). I would like to persist there entities using a new EJB jar file which contains a persistence.xml and a mapping file. Is this possible? I tried it, but I am getting a InvalidMappingException:
| Caused by: org.hibernate.InvalidMappingException: Could not parse mapping document from resource mappings.xml
| at org.hibernate.cfg.Configuration.addResource(Configuration.java:569)
| at org.hibernate.ejb.Ejb3Configuration.addClassesToSessionFactory(Ejb3Configuration.java:910)
| ... 101 more
| Caused by: org.hibernate.AnnotationException: Unable to load class defined in XML: samples.estorejpa.domain.Customer
| at org.hibernate.cfg.AnnotationConfiguration.add(AnnotationConfiguration.java:592)
| at org.hibernate.cfg.AnnotationConfiguration.addInputStream(AnnotationConfiguration.java:674)
| at org.hibernate.cfg.Configuration.addResource(Configuration.java:566)
| ... 102 more
| Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: samples.estorejpa.domain.Customer
| at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212)
| at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:521)
| at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:415)
| at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
| at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
| at java.lang.Class.forName0(Native Method)
| at java.lang.Class.forName(Class.java:247)
| at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:112)
| at org.hibernate.reflection.java.JavaXFactory.classForName(JavaXFactory.java:153)
| at org.hibernate.cfg.AnnotationConfiguration.add(AnnotationConfiguration.java:589)
| ... 104 more
|
Here are the relevant files in my ear. estore-common-1.0.jar contains the POJO entities. estore-server-1.0.jar is the EJB jar that contains persistence.xml, mappings.xml and and a stateless session bean called OrderServiceBean. I was hoping that the POJO entity classes would be visible when parsing persistence.xml because they are in the classpath, but that does not seem to be true.
| estore-1.0.ear
| |---estore-common-1.0.jar
| |---estore-server-1.0.jar
| | |---mappings.xml
| | |---META-INF
| | | |---ejb-jar.xml
| | | |---jboss.xml
| | | `---persistence.xml
| | `---samples
| | `---estorejpa
| | `---service
| | |---OrderService.class
| | `---OrderServiceBean.class
| `---META-INF
| application.xml
|
Here's my persistence.xml:
| <persistence>
| <persistence-unit name="EstorePersistenceUnit">
| <jta-data-source>java:/estore</jta-data-source>
| <mapping-file>mappings.xml</mapping-file>
| <properties>
| <property name="jboss.entity.manager.factory.jndi.name" value="java:/persistence-units/EstorePersistenceUnit"/>
| </properties>
| </persistence-unit>
| </persistence>
|
Here's my mappings.xml:
| <entity-mappings>
| <description>eStore JPA Mappings</description>
| <package>samples.estorejpa.domain</package>
| <entity class="samples.estorejpa.domain.Customer" name="Customer">
| <table name="CUSTOMER"/>
| <attributes>
| <id name="id">
| <generated-value/>
| </id>
| <basic name="version"/>
| <basic name="name"/>
| </attributes>
| </entity>
| ...
| </entity-mappings>
|
Any help would be much appreciated.
Thanks.
Naresh
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4165541#4165541
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4165541
17 years, 9 months