[JBoss Seam] - Exception about Seam taglibrary
by gregory.pierceï¼ jboss.com
Anyone ever see this exception about the Seam taglibrary? My application is deploying properly, but when I visit it, I'm getting this exception. I am deployed in AS 4.0.5 with the EJB3 profile (though I'm sure that has nothing to do with it). Having looked at the documentation Chapter 11 for how to deploy these applications, I know that all the pieces are in place. Anyone know what might be causing this?
anonymous wrote :
| 20:52:37,686 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
| org.apache.jasper.JasperException: The absolute uri: http://jboss.com/products/seam/taglib cannot be resolved in either web.xml or the jar files deployed with this application
| at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50)
| at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
| at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:114)
| at org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(TagLibraryInfoImpl.java:316)
| at org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:147)
| at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:423)
| at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:492)
| at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1556)
| at org.apache.jasper.compiler.Parser.parse(Parser.java:126)
| at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
| at org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
| at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:155)
| at org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
| at org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
| at org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
| at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
| at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305)
| at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
| at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| at java.lang.Thread.run(Thread.java:613)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3983975#3983975
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3983975
19Â years, 6Â months
[Beginners Corner] - Re: Tutorial on JBossIDE EJB3.0 Tools
by defenestrator
I followed the steps up to the deployment portion. Since JbossIDE 2.0.0.Beta2 doesn't seem to support deploying the ejb3 project to the server, I manually copy the authors-beans.ejb3 and authors.war directly into the deploy directory. But I get the following error on my 4.0.5.GA server below. Btw, I did change @Id (generate = GeneratorType.AUTO) to @Id @GeneratedValue(strategy=GenerationType.AUTO) for Article.java and Author.java to fix the compilation errors, but I don't think that's the problem here.
17:32:49,924 WARN [ServiceController] Ignoring request to stop nonexistent service: jboss.j2ee:jar=authors-beans.ejb3,name=AuthorsBean,service=EJB3
17:32:49,924 WARN [ServiceController] Ignoring request to destroy nonexistent service: jboss.j2ee:jar=authors-beans.ejb3,name=AuthorsBean,service=EJB3
17:32:49,939 WARN [ServiceController] Problem starting service jboss.j2ee:service=EJB3,module=authors-beans.ejb3
java.lang.RuntimeException: Illegal @PersistenceUnit on private javax.persistence.EntityManager org.jboss.ejb3demo.AuthorsBean.manager :There is no default persistence unit in this deployment.
at org.jboss.injection.PersistenceContextHandler.handleFieldAnnotations(PersistenceContextHandler.java:182)
at org.jboss.injection.InjectionUtil.processFieldAnnotations(InjectionUtil.java:136)
at org.jboss.injection.InjectionUtil.processAnnotations(InjectionUtil.java:173)
at org.jboss.ejb3.EJBContainer.processMetadata(EJBContainer.java:270)
at org.jboss.ejb3.SessionContainer.processMetadata(SessionContainer.java:116)
at org.jboss.ejb3.Ejb3Deployment.processEJBContainerMetadata(Ejb3Deployment.java:273)
at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:322)
at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:91)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy37.start(Unknown Source)
at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:449)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
at org.jboss.ws.integration.jboss.DeployerInterceptor.start(DeployerInterceptor.java:92)
at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy38.start(Unknown Source)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy6.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3983973#3983973
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3983973
19Â years, 6Â months
[EJB 3.0] - Wrong query generated
by monkeyden
For some reason, the resulting query from this entity has the ACTUAL DB field names for a couple of the non-pk fields (see SEQ_NUMBER, LAST_UPDATE). Can anyone give a hint as to what might be the problem? Thanks.
Query
select streetwatc0_.userKey as userKey1292_, streetwatc0_.locationId as locationId1292_, streetwatc0_.areaId as areaId1292_, streetwatc0_.addressStandardized as addressS4_1292_, streetwatc0_.SEQ_NUMBER as SEQ5_1292_, streetwatc0_.LAST_UPDATE as LAST6_1292_, streetwatc0_.ADDRESS as ADDRESS1292_
| from DWL_STREET_WATCH_LIST streetwatc0_
| where streetwatc0_.userKey=?
Client code
Query query = em.createQuery("from StreetWatchEntity where userKey = :userKey");
| query.setParameter("userKey", userKey);
| entities = query.getResultList();
Entity
package com.company.project.entity;
|
| import java.util.Date;
|
| import javax.persistence.Column;
| import javax.persistence.Entity;
| import javax.persistence.Id;
| import javax.persistence.IdClass;
| import javax.persistence.NamedQuery;
| import javax.persistence.Table;
|
| import org.jboss.seam.annotations.Name;
|
| @NamedQuery(
| name="orderedStreets",
| query="from StreetWatchEntity order by seqNumber"
| )
|
| @Entity
| @Name("streetWatchEntity")
| @Table(name = "STREET_WATCH_LIST")
| @IdClass(StreetWatchPK.class)
| public class StreetWatchEntity implements java.io.Serializable {
| private static final long serialVersionUID = 4855048029589330487L;
|
| public StreetWatchEntity(){}
|
| public StreetWatchEntity(Long userKey, Long locationId, String address, String addressStandardized, Date lastUpdate, Long seqNumber, Long areaId) {
| this.userKey = userKey;
| this.locationId = locationId;
| this.address = address;
| this.addressStandardized = addressStandardized;
| this.lastUpdate = lastUpdate;
| this.seqNumber = seqNumber;
| this.areaId = areaId;
| }
|
| /**
| * Retrieves the UserKey from the entity
| */
| @Id
| @Column(name = "USER_KEY", length = 22, nullable = false)
| public Long getUserKey() {
| return this.userKey;
| }
|
| /**
| * Sets the UserKey of the entity
| */
| public void setUserKey(Long userKey) {
| this.userKey = userKey;
| }
|
| /**
| * Retrieves the LocationId from the entity
| */
| @Id
| @Column(name = "LOCATION_ID", length = 19, nullable = false)
| public Long getLocationId() {
| return this.locationId;
| }
|
| /**
| * Sets the LocationId of the entity
| */
| public void setLocationId(Long locationId) {
| this.locationId = locationId;
| }
|
| /**
| * Retrieves the AddressStandardized from the entity
| */
| @Id
| @Column(name = "ADDRESS_STANDARDIZED", length = 128, nullable = false)
| public String getAddressStandardized() {
| return this.addressStandardized;
| }
|
| /**
| * Sets the AddressStandardized of the entity
| */
| public void setAddressStandardized(String addressStandardized) {
| this.addressStandardized = addressStandardized;
| }
|
| /**
| * Retrieves the AreaId from the entity
| */
| @Id
| @Column(name = "AREA_ID", length = 22, nullable = false)
| public Long getAreaId() {
| return this.areaId;
| }
|
| /**
| * Sets the AreaId of the entity
| */
| public void setAreaId(Long areaId) {
| this.areaId = areaId;
| }
|
| /**
| * Retrieves the Address from the entity
| */
| @Column(name = "ADDRESS", length = 128, nullable = true)
| public String getAddress() {
| return this.address;
| }
|
| /**
| * Sets the Address of the entity
| */
| public void setAddress(String address) {
| this.address = address;
| }
|
| /**
| * Retrieves the LastUpdate from the entity
| */
| @Column(name = "LAST_UPDATE", length = 7, nullable = true)
| public Date getLastUpdate() {
| return this.lastUpdate;
| }
|
| /**
| * Sets the LastUpdate of the entity
| */
| public void setLastUpdate(Date lastUpdate) {
| this.lastUpdate = lastUpdate;
| }
|
| /**
| * Retrieves the SeqNumber from the entity
| */
| @Column(name = "SEQ_NUMBER", length = 22, nullable = false)
| public Long getSeqNumber() {
| return this.seqNumber;
| }
|
| /**
| * Sets the SeqNumber of the entity
| */
| public void setSeqNumber(Long seqNumber) {
| this.seqNumber = seqNumber;
| }
|
| private String address = null;
|
| private String addressStandardized = null;
|
| private Long areaId = null;
|
| private Date lastUpdate = null;
|
| private Long locationId = null;
|
| private Long seqNumber = null;
|
| private Long userKey = null;
| }
PK Class
package com.company.project.entity;
|
| import java.io.Serializable;
|
| public class StreetWatchPK implements Serializable{
| private static final long serialVersionUID = 3355389391459690610L;
|
| private Long userKey = null;
|
| private Long locationId = null;
|
| private String addressStandardized = null;
|
| private Long areaId = null;
|
| /**
| * No-arg constructor
| */
| public StreetWatchPK( ) {}
|
| /**
| * All-fields constructor
| * @param userKey
| * @param locationId
| * @param addressStandardized
| * @param areaId
| */
| public StreetWatchPK(Long userKey, Long locationId, String addressStandardized, Long areaId) {
| this.userKey = userKey;
| this.locationId = locationId;
| this.addressStandardized = addressStandardized;
| this.areaId = areaId;
| }
|
| public boolean equals(Object obj) {
| if (obj == this)
| return true;
| if (!(obj instanceof StreetWatchPK))
| return false;
| StreetWatchPK pk = (StreetWatchPK) obj;
|
| //User Key
| if(locationId.longValue() != pk.getLocationId().longValue()){
| return false;
| }
| //Location Id
| if(userKey.longValue() != pk.getUserKey().longValue()){
| return false;
| }
| //Area Id
| if(areaId.longValue() != pk.getAreaId().longValue()){
| return false;
| }
| if (!addressStandardized.equals(pk.addressStandardized)){
| return false;
| }
| return true;
| }
|
| public int hashCode() {
| return addressStandardized.hashCode() +
| (int)areaId.longValue() +
| (int)locationId.longValue() +
| (int)userKey.longValue();
| }
|
| /**
| * @return the addressStandardized
| */
| public String getAddressStandardized() {
| return addressStandardized;
| }
|
| /**
| * @param addressStandardized the addressStandardized to set
| */
| public void setAddressStandardized(String addressStandardized) {
| this.addressStandardized = addressStandardized;
| }
|
| /**
| * @return the areaId
| */
| public Long getAreaId() {
| return areaId;
| }
|
| /**
| * @param areaId the areaId to set
| */
| public void setAreaId(Long areaId) {
| this.areaId = areaId;
| }
|
| /**
| * @return the locationId
| */
| public Long getLocationId() {
| return locationId;
| }
|
| /**
| * @param locationId the locationId to set
| */
| public void setLocationId(Long locationId) {
| this.locationId = locationId;
| }
|
| /**
| * @return the userKey
| */
| public Long getUserKey() {
| return userKey;
| }
|
| /**
| * @param userKey the userKey to set
| */
| public void setUserKey(Long userKey) {
| this.userKey = userKey;
| }
|
| }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3983967#3983967
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3983967
19Â years, 6Â months
[JBoss Seam] - Starting a pageflow using s:link with no action binding...
by shea.phillips
Hello,
I am wondering if it is possible to initiate a pageflow simply using s:link and providing only a pageflow name and a propagation attribute( ie. no action binding).
The doco indicates shows the example below:
anonymous wrote : If the link begins a conversation, you can even specify a pageflow to be used:
|
| <s:link action=?#{documentEditor.getDocument}? propagation=?begin?
| pageflow=?EditDocument?/>
I want to do the same, but without the action=... bit.
I currently am experimenting using the following <s:link>:
<s:link propagation="begin" pageflow="dummyFlow">Dummy Flow</s:link>
With the following pageflow:
<pageflow-definition
| name="dummyFlow">
|
| <start-state>
| <transition to="studyList"/>
| </start-state>
|
| <page name="studyList" view-id="/pages/study_list.xhtml" redirect="true">
| <transition name="pick" to="studyDetails"/>
| <transition name="addNewStudy" to="studyCreationForm"/>
| <transition name="done" to="done"/>
| </page>
| ...
|
The error I am getting when clicking the s:link-generate link is:
javax.servlet.ServletException: pageflow has not yet started
| javax.faces.webapp.FacesServlet.service(FacesServlet.java:121)
| org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:30)
|
Any thoughts appreciated.
Shea.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3983965#3983965
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3983965
19Â years, 6Â months