[JBoss Seam] - Class not found exception
by kumanan_jboss
I am trying to run one of the JBoss sample application (registration) in Weblogic 10. I am getting the following exception.
<Sep 11, 2007 3:34:35 PM IST> <BEA-101371> <There was a failure w
hen processing annotations for application C:\bea\user_projects\domains\parent_n
etwork_sample\servers\AdminServer\tmp\_WL_user\_appsdir_jboss-seam-registration_
ear\gga6tp\jboss-seam-registration.war. Please make sure that the annotations ar
e valid. The error is javax.faces.webapp.FacesServlet>
<Sep 11, 2007 3:34:35 PM IST> <BEA-149265> <Failure occurred
in the execution of deployment request with ID '1189505071109' for task '0'. Err
or is: 'weblogic.application.ModuleException: Failed to load webapp: '/seam-regi
stration''
weblogic.application.ModuleException: Failed to load webapp: '/seam-registration
'
at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:308)
at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedM
oduleDriver.java:176)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(Modu
leListenerInvoker.java:93)
at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(Depl
oymentCallbackFlow.java:360)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineD
river.java:26)
Truncated. see log file for complete stacktrace
java.lang.ClassNotFoundException: javax.faces.webapp.FacesServlet
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(Generic
ClassLoader.java:286)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClass
Loader.java:259)
at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAw
areClassLoader.java:54)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
Truncated. see log file for complete stacktrace
>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4082941#4082941
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4082941
18 years, 7 months
[JBoss Seam] - [NamespaceScanner] Cannot load package
by martin.krajci
Hi All,
I'm using Jboss 4.2.1.GA, Seam 1.2.1.GA and sun faces. During the deployment I have the warning in the console:
11:57:57,642 WARN [NamespaceScanner] Cannot load package Dinfo for org.jboss.se
am.core
11:57:57,652 WARN [NamespaceScanner] Cannot load package Dinfo for org.jboss.se
am.drools
11:57:57,662 WARN [NamespaceScanner] Cannot load package Dinfo for org.jboss.se
am.framework
11:57:57,662 WARN [NamespaceScanner] Cannot load package Dinfo for org.jboss.se
am.jms
11:57:57,672 WARN [NamespaceScanner] Cannot load package Dinfo for org.jboss.se
am.mail
11:57:57,682 WARN [NamespaceScanner] Cannot load package Dinfo for org.jboss.se
am.security
11:57:57,682 WARN [NamespaceScanner] Cannot load package Dinfo for org.jboss.se
am.theme
11:57:57,692 WARN [NamespaceScanner] Cannot load package Dinfo for org.jboss.se
am.web
My problem is that when I declare something in components.xml it is not read. The only components that are read are core components. But security, framework, spring, mail are alwas missing.
<?xml version="1.0" encoding="UTF-8"?>
| <components xmlns="http://jboss.com/products/seam/components"
| xmlns:core="http://jboss.com/products/seam/core"
| xmlns:security="http://jboss.com/products/seam/security"
| xmlns:framework="http://jboss.com/products/seam/framework"
| xmlns:mail="http://jboss.com/products/seam/mail"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation=
| "http://jboss.com/products/seam/core http://jboss.com/products/seam/core-1.2.xsd
| http://jboss.com/products/seam/components http://jboss.com/products/seam/components-1.2.xsd
| http://jboss.com/products/seam/security http://jboss.com/products/seam/security-1.2.xsd
| http://jboss.com/products/seam/framework http://jboss.com/products/seam/framework-1.2.xsd
| http://jboss.com/products/seam/mail http://jboss.com/products/seam/mail-1.2.xsd">
|
| <core:init jndi-pattern="@jndiPattern@"/>
| <core:ejb installed="@embeddedEjb@"/>
| <core:dispatcher />
|
| <component name="org.jboss.seam.core.manager">
| <!-- half second wait for conversation lock on concurrent requests -->
| <property name="concurrentRequestTimeout">500</property>
| <!-- 20 minutes conversation timeout -->
| <property name="conversationTimeout">1200000</property>
| <property name="conversationIdParameter">cid</property>
| <property name="conversationIsLongRunningParameter">clr</property>
| </component>
|
| <security:identity authenticate-method="#{authenticator.authenticate}"/>
|
| <event type="org.jboss.seam.notLoggedIn">
| <action expression="#{redirect.captureCurrentView}"/>
| </event>
|
| <event type="org.jboss.seam.postAuthenticate">
| <action expression="#{redirect.returnToCapturedView}"/>
| </event>
|
| <!--
| <mail:mail-session host="mailcz.systinet.com" debug="true"/>
| <mail:mail-session host="localhost" port="2525" username="test" password="test" />
| <mail:mail-session session-jndi-name="java:/CechieMailService" debug="true"/>
| -->
|
| </components>
In case on security the identity is unknown in JSF.
In case of spring the applicationContext.xml is not loaded.
<spring:context-loader context-locations="/WEB-INF/applicationContext.xml"/>
In case of mail the mail-session is not loaded in any case.
But in case of core components everyting works fine.
My components.xml is located in ear/war/WEB-INF and jboss-seam.jar in ear.
My application.xml
<?xml version="1.0" encoding="utf-8"?>
| <application>
| <display-name>CechieApplication</display-name>
| <module>
| <web>
| <web-uri>cechie.war</web-uri>
| <context-root>/cechie</context-root>
| </web>
| </module>
| <module>
| <ejb>cechie.jar</ejb>
| </module>
| <module>
| <java>jboss-seam.jar</java>
| </module>
| <module>
| <java>commons-lang-2.1.jar</java>
| </module>
| </application>
I suspect that warnings have something to do with it, but I have no idea what.
Can you please help me.
Thanx
Martin
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4082936#4082936
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4082936
18 years, 7 months
[Beginners Corner] - problem with jboss-3.2.5/tomcat and java 1.5
by matpil
Hi all!
I've a problem to compile a jsp on my tomcat (under jboss-3.2.5) since I change my JDK (from 1.4.2 to 1.5).
in particular I read this error:
| 2007-09-11 12:17:02,134 ERROR [org.jboss.web.localhost.Engine] StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
| org.apache.jasper.JasperException: Unable to compile class for JSP
|
| Generated servlet error:
| Note: Recompile with -Xlint:unchecked for details.
| 1 error
|
| at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
| at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332)
| at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:412)
| at org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
| at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
| at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
| at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
| at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
| at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
| at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
| at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
| at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
| at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
| at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:72)
| at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
| at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:275)
| at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
| at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
| at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
| at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
| at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
| at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
| at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
| at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
| at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
| at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
| at java.lang.Thread.run(Thread.java:595)
|
This is a blocking error and it obligates me to go back to java 1.4.2
Someone can help me?
Cheers,
Matpil
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4082935#4082935
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4082935
18 years, 7 months
[Beginners Corner] - problem with jboss-3.2.5/tomcat and java 1.5
by matpil
Hi all!
I've a problem to compile a jsp on my tomcat (under jboss-3.2.5) since I change my JDK (from 1.4.2 to 1.5).
in particular I read this error:
| 2007-09-11 12:17:02,134 ERROR [org.jboss.web.localhost.Engine] StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
| org.apache.jasper.JasperException: Unable to compile class for JSP
|
| Generated servlet error:
| Note: Recompile with -Xlint:unchecked for details.
| 1 error
|
| at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
| at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332)
| at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:412)
| at org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
| at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
| at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
| at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
| at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
| at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
| at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
| at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
| at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
| at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
| at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:72)
| at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
| at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:275)
| at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
| at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
| at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
| at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
| at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
| at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
| at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
| at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
| at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
| at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
| at java.lang.Thread.run(Thread.java:595)
|
This is a blocking error and it obligates me to go back to java 1.4.2
Someone can help me?
Cheers,
Matpil
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4082934#4082934
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4082934
18 years, 7 months
[JBoss Seam] - Re: JPA Sample with Glassfish / Seam 2.0.0
by peterarmistead
Thanks. Can you say anything to the runtime problem:
11:25:56,760 ERROR [SeamPhaseListener] uncaught exception
java.lang.IllegalStateException: Could not start transaction
at org.jboss.seam.jsf.SeamPhaseListener.begin(SeamPhaseListener.java:571)
I have tested with Seam 1.2.1GA and 2.0.0 Beta1. The JPA example in 1.2.1 works fine with the exception of the popup windows (e.g. How does the hotel booking wizard work?). These always show a "resource not found" window.
In 2.0.0 Beta1 I get the same uncaught exception, although at a different point in the application to the CVS.2007-09-08_10-34-45 version. From some error reports in JIRA I gather that this exception has occurred sporadically but has no specific fix in place. Do you think anything is likely to happen in this area before release of 2.0.0?
Thanks,
Peter
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4082932#4082932
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4082932
18 years, 7 months
[JBoss Seam] - Re: Custom JSF Converter???
by nebukadnezzar
"pete.muir(a)jboss.org" wrote : Try using @Converter.
doesn't work...
.page.xml:
| ...
| <param name="category" value="#{appointmentList.appointment.category}" converter="#{appointmentCategoryConverter}" />
| ...
.xhtml
| ...
| <h:selectOneMenu id="category" value="#{appointmentList.appointment.category}" >
| <s:selectItems value="#{appointmentCategoryList.resultList}" var="c" label="#{c.name}" noSelectionLabel="" />
| <s:convertEntity/>
| </h:selectOneMenu>
| ...
.java
| @Converter
| @Name("appointmentCategoryConverter")
| @Stateless
| public class AppointmentCategoryConverterBean implements javax.faces.convert.Converter, AppointmentCategoryConverter {
|
| @PersistenceContext
| private EntityManager entityManager;
|
| public Object getAsObject(FacesContext arg0, UIComponent arg1, String str)
| throws ConverterException {
| try {
| long id = Long.parseLong(str);
|
| return entityManager.createQuery("Select ac from AppointmentCategory where ac.id = :id")
| .setParameter("id", id)
| .getSingleResult();
|
| } catch (Exception e) {
| throw new ConverterException(e);
| }
|
| }
|
| public String getAsString(FacesContext arg0, UIComponent arg1, Object obj)
| throws ConverterException {
| try {
| return Long.toString(((AppointmentCategory)obj).getId());
| } catch (Exception e) {
| throw new ConverterException(e);
| }
| }
| }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4082929#4082929
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4082929
18 years, 7 months