[Installation, Configuration & Deployment] - EAR Deployment Classloader Issues
by kraythe
Greetings, I am having a problem with deploying an EAR to the current production release of JBoss. The problem is that I have two WARs that use the same libraries as the EJBs in the EAR. However, neither WAR is able to see the libraries that are deployed in the EAR. Multiple attempts to resolve this problem have been unsuccessful and the classpath errors continue. Ultimately I would like all of the libraries in the EAR only once and in a place where all WARs and EJBs can access them.
The EAR is structured in the following way:
anonymous wrote : myapp.ear
| * APP-INF
| * * classes
| * * * ehcache.xml
| * * * jndi.properties
| * * * myapp.hibernate.cfg.xml
| * lib
| * * commons-lang.jar
| * * mycom-common-utils.jar
| * * ... other jars
| * META-INF
| * * application.xml
| * * jboss-app.xml
| * * MANIFEST.MF
| * myapp-ejb.jar
| * myapp-web.war
| * myapp-ws-axis.war
The application.xml file contains the following contents:
anonymous wrote :
| <?xml version="1.0" encoding="UTF-8"?>
|
| <!DOCTYPE application PUBLIC '-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN' 'http://java.sun.com/dtd/application_1_3.dtd'>
|
|
| <display-name>myappServices</display-name>
|
| myapp-ejb.jar
|
|
|
| <web-uri>myapp-ws-axis.war</web-uri>
| <context-root>myappWebServices</context-root>
|
|
|
|
| <web-uri>myapp-web.war</web-uri>
| <context-root>myapp</context-root>
|
|
| <security-role>
| <role-name>myapp.USER</role-name>
| </security-role>
|
|
The jboss-app.xml contains:
anonymous wrote :
| <!DOCTYPE jboss-app PUBLIC "-//JBoss//DTD J2EE Application 1.4//EN"
| "http://www.jboss.org/j2ee/dtd/jboss-app_4_0.dtd">
|
| <jboss-app>
| <security-domain>java:/jaas/mycom-ldap</security-domain>
| <loader-repository>com.mycom.myapp:loader=mycom-myapp</loader-repository>
| <security-role>
| <role-name>myapp.user</role-name>
| <principal-name>myapp.USER</principal-name>
| </security-role>
| </jboss-app>
|
The MANIFEST.MF Contains
anonymous wrote :
| Manifest-Version: 1.0
| Ant-Version: Apache Ant 1.7.0
| Created-By: 1.6.0-b88-17-release (Apple Computer, Inc.)
|
Attempts were made to include the libs in the Class-Path attribute of the manifest with no change in the issues.
The myapp-web.war web-inf files are:
web.xml
anonymous wrote :
| <?xml version="1.0" encoding="ISO-8859-1"?>
|
| <!DOCTYPE web-app
| PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
| "http://java.sun.com/dtd/web-app_2_3.dtd">
|
| <web-app>
| <display-name>ICAT Producer Management</display-name>
|
| <listener-class>com.mycom.myapp.web.listener.myappSessionAttributeListener</listener-class>
|
|
| <listener-class>com.mycom.myapp.web.listener.myappContextAttributeListener</listener-class>
|
| <!-- Standard Action Servlet Configuration (with debugging) -->
|
| <servlet-name>action</servlet-name>
| <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
| <init-param>
| <param-name>config</param-name>
| <param-value>/WEB-INF/struts-config.xml</param-value>
| </init-param>
| <init-param>
| <param-name>debug</param-name>
| <param-value>4</param-value>
| </init-param>
| <init-param>
| <param-name>detail</param-name>
| <param-value>4</param-value>
| </init-param>
| <load-on-startup>1</load-on-startup>
|
|
|
| <servlet-name>Initialize</servlet-name>
| Put logic in here that needs to be run on startup
| <servlet-class>com.mycom.myapp.web.util.Initializer</servlet-class>
| <load-on-startup>1</load-on-startup>
|
|
| <!-- Standard Action Servlet Mapping -->
| <servlet-mapping>
| <servlet-name>action</servlet-name>
| <url-pattern>*.do</url-pattern>
| </servlet-mapping>
|
| <!-- After the user authenticates, send them to this page: -->
| <welcome-file-list>
| <welcome-file>/Main.do</welcome-file>
| </welcome-file-list>
|
| <security-constraint>
| <display-name>SecurityConstraint</display-name>
| <web-resource-collection>
| <web-resource-name>myapp Application</web-resource-name>
| <url-pattern>*.do</url-pattern>
| <url-pattern>*.jsp</url-pattern>
| <http-method>POST</http-method>
| <http-method>GET</http-method>
| </web-resource-collection>
| <auth-constraint>
| <role-name>myapp.USER</role-name>
| </auth-constraint>
| <user-data-constraint>
| <transport-guarantee>NONE</transport-guarantee>
| </user-data-constraint>
| </security-constraint>
|
| <login-config>
| <auth-method>FORM</auth-method>
| <realm-name>mycom-ldap</realm-name>
| <form-login-config>
| <form-login-page>/login.jsp</form-login-page>
| <form-error-page>/loginError.jsp</form-error-page>
| </form-login-config>
| </login-config>
|
| <security-role>
| <role-name>myapp.USER</role-name>
| </security-role>
| </web-app>
|
jboss-web.xml
anonymous wrote :
| <!DOCTYPE jboss-web
| PUBLIC "-//JBoss//DTD Web Application 2.3//EN"
| "http://www.jboss.org/j2ee/dtd/jboss-web_3_0.dtd">
| <jboss-web>
| <class-loading>
| <loader-repository>
| com.mycom.myapp:loader=mycom-myapp
| </loader-repository>
| </class-loading>
| </jboss-web>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4034699#4034699
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4034699
19 years
[JBoss Seam] - Can Seam do AJAX within AJAX?
by j99976
Hi all,
I'm currently evaluating technologies for the next version of our product, and I'm really liking the look of Seam, we use Hibernate for our current version, so it looks like a good direction for us to go in.
I'm wondering though if this is possible. We would like to create a very extreme AJAX frontend, where maybe even there will be just one page, ad we will use AJAX to navigate to the different menu and submenu items. This would mean that we would need to be able to render AJAX-enabled items within AJAX-rendered content. I hope this sounds clear enough.
I have done similar stuff, but using raw AJAX calls (in struts, it wasn't very nice), but I'm wondering if the AJAX technologies that Seam uses would allow this. Or does anyone know would the other AJAX frameworks (GWT, Echo2, etc) support this, is this even possible? Or are you stuck with serving individual pages that allow AJAX content, but if you want to navigate into these you need to break into a new full screen call via normal HTTP.
An example would be menu-submenu, or else a n ajax-rendered table that you can drilldown into.
I am very new to AJAX frameworks, so I do apologise if the question sounds daft.
As I am new to all this, would you recommend Seam as the best AJAX-enabled framework to use, for rapid development? We are looking for a framework that is very fast and non-error-prone to develop our frontends in, and that minimises coding.
Thank you in advance for any replies.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4034696#4034696
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4034696
19 years
[JBoss Seam] - binding UIData and Seam
by karthikjboss
Hi,
>From my h:dataTable in the view, I bind to the UIData declared in my Session bean using binding attribute.
<h:dataTable var="listing" value="#{searchListing}" width="100%" rowClasses="lowerborderDashed" binding="#{listingSearchAction.listData}">
I am getting the following exception:
Caused by: java.lang.IllegalStateException: No conversation context active
at org.jboss.seam.ScopeType.getContext(ScopeType.java:127)
at org.jboss.seam.Component.setOutjectedValue(Component.java:1474)
at org.jboss.seam.Component.outjectFields(Component.java:1410)
at org.jboss.seam.Component.outject(Component.java:1210)
at org.jboss.seam.interceptors.BijectionInterceptor.bijectNonreentrantComponent(BijectionInterceptor.java:87)
at org.jboss.seam.interceptors.BijectionInterceptor.bijectComponent(BijectionInterceptor.java:58)
at sun.reflect.GeneratedMethodAccessor5136.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
at org.jboss.seam.interceptors.OutcomeInterceptor.interceptOutcome(OutcomeInterceptor.java:21)
at sun.reflect.GeneratedMethodAccessor5137.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
at org.jboss.seam.interceptors.ConversationInterceptor.endOrBeginLongRunningConversation(ConversationInterceptor.java:52)
at sun.reflect.GeneratedMethodAccessor5135.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
at org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:27)
at sun.reflect.GeneratedMethodAccessor5134.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
I saw this in some other thread without a solution. Is this a bug or I m using the binding attribute wrongly.
Any solutions / work-around for this?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4034689#4034689
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4034689
19 years