[JBoss Portal] - Demo site down?
by northgorky
Greetings.
http://portal.demo.jboss.com/ seems to be completely down? Went down about 10minutes ago?
-Steve
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Servlet execution threw an exception
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
root cause
java.lang.NoClassDefFoundError
org.jboss.portal.core.aspects.server.UserInterceptor.invoke(UserInterceptor.java:223)
org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
org.jboss.portal.server.aspects.server.SignOutInterceptor.invoke(SignOutInterceptor.java:98)
org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
org.jboss.portal.core.impl.api.user.UserEventBridgeTriggerInterceptor.invoke(UserEventBridgeTriggerInterceptor.java:65)
org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
org.jboss.portal.core.aspects.server.TransactionInterceptor.org$jboss$portal$core$aspects$server$TransactionInterceptor$invoke$aop(TransactionInterceptor.java:49)
org.jboss.portal.core.aspects.server.TransactionInterceptor$invoke_N5143606530999904530.invokeNext(TransactionInterceptor$invoke_N5143606530999904530.java)
org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
org.jboss.aspects.tx.TxInterceptor$RequiresNew.invoke(TxInterceptor.java:253)
org.jboss.portal.core.aspects.server.TransactionInterceptor$invoke_N5143606530999904530.invokeNext(TransactionInterceptor$invoke_N5143606530999904530.java)
org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
org.jboss.aspects.tx.TxInterceptor$RequiresNew.invoke(TxInterceptor.java:262)
org.jboss.portal.core.aspects.server.TransactionInterceptor$invoke_N5143606530999904530.invokeNext(TransactionInterceptor$invoke_N5143606530999904530.java)
org.jboss.portal.core.aspects.server.TransactionInterceptor.invoke(TransactionInterceptor.java)
org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
org.jboss.portal.server.aspects.LockInterceptor$InternalLock.invoke(LockInterceptor.java:69)
org.jboss.portal.server.aspects.LockInterceptor.invoke(LockInterceptor.java:130)
org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:157)
org.jboss.portal.server.servlet.PortalServlet.service(PortalServlet.java:250)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
note The full stack trace of the root cause is available in the JBossWeb/2.0.1.GA logs.
JBossWeb/2.0.1.GA
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4138597#4138597
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4138597
18 years, 1 month
[JBoss Portal] - JSF Portlet and UnsupportedOperationException
by porcho
Hi there. I'm running JBP 2.6.4-GA on a Windows XP machine, and I'm trying to run a JSF Portlet I've developed using JSC. I've followed some instructions I found at http://forum.java.sun.com/thread.jspa?threadID=5214100, which involved removing some JARs containing libraries JBP already provides by default.
By the time the portlet's deployed, I get the following error message:
WARN [JAXWSDeployerHookPreJSE] Cannot load servlet class: org.apache.pluto.core.PortletServlet
I can create a new portlet instance, though, but I can't get the portlet to display on the assigned portal page. I get this error message instead:
ERROR
| Cause: java.lang.UnsupportedOperationException
| StackTrace:
|
| java.lang.UnsupportedOperationException
| at javax.faces.context.FacesContext.getELContext(FacesContext.java:137)
| at javax.faces.component.UIViewRoot.setLocale(UIViewRoot.java:888)
| at com.sun.faces.application.ViewHandlerImpl.createView(ViewHandlerImpl.java:380)
| at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.createView(ViewHandlerImpl.java:218)
| at com.sun.faces.portlet.ViewHandlerImpl.createView(ViewHandlerImpl.java:106)
| at com.sun.faces.portlet.LifecycleImpl.setViewId(LifecycleImpl.java:493)
| at com.sun.faces.portlet.LifecycleImpl.restore(LifecycleImpl.java:398)
| at com.sun.faces.portlet.LifecycleImpl.render(LifecycleImpl.java:239)
| at com.sun.faces.portlet.FacesPortlet.render(FacesPortlet.java:327)
How can I do to solve the problem? Thanks a lot!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4138595#4138595
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4138595
18 years, 1 month
[Security & JAAS/JBoss] - re: securing virtual directories
by adastar
We have a security realm that we use throughout our EAR.
| <application-policy name="mySecurityRealm">
|
| <authentication>
| <login-module code="com.myclass.MyLoginModule" flag="required">
| <module-option name="unauthenticated">guest</module-option>
| <module-option name="dsJndiName">java:/myDataSource</module-option>
| <module-option name="hashUserPassword">false</module-option>
| <module-option name="hashStorePassword">false</module-option>
| <module-option name="principalsQuery">
| ...commented out...</module-option>
|
| <module-option name="rolesQuery">
| ...commented out...</module-option>
| </login-module>
| </authentication>
|
| </application-policy>
|
I read the following:
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
Scroll down until you see "Realm" under "Nested Elements". It seems as though you can specify a JAAS Realm:
http://tomcat.apache.org/tomcat-5.5-doc/config/realm.html
So I did:
| <Host name="localhost"
| autoDeploy="false" deployOnStartup="false" deployXML="false"
| configClass="org.jboss.web.tomcat.security.config.JBossContextConfig"
| >
|
| <Realm className="org.apache.catalina.realm.JAASRealm"
| appName="mySecurityRealm"
| userClassNames="org.jboss.security.SimplePrincipal"
| roleClassNames="org.jboss.security.SimpleGroup"
| debug="99"/>
|
And I defined my virtual directory:
| <Context path="/Reports" docBase="Reports" debug="0" reloadable="true" />
|
But the security isn't working. So I defined the web.xml file under Reports/WEB-INF:
| <security-constraint>
| <web-resource-collection>
| <web-resource-name>xxx</web-resource-name>
| <url-pattern>/Reports/*</url-pattern>
| <http-method>POST</http-method>
| <http-method>GET</http-method>
| </web-resource-collection>
| <auth-constraint>
| <role-name>Roles</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>mySecurityRealm</realm-name>
| <form-login-config>
| <form-login-page>/login.jsp</form-login-page>
| <form-error-page>/loginerror.html</form-error-page>
| </form-login-config>
| </login-config>
| <security-role>
|
and even put in a jboss-web.xml file:
| <?xml version="1.0" encoding="UTF-8"?>
|
| <jboss-web>
| <security-domain>java:/jaas/mySecurityRealm</security-domain>
| </jboss-web>
|
Still no luck! Any ideas?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4138592#4138592
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4138592
18 years, 1 month
[JBossWS] - Re: wstools-config.xml
by jpramondon
Hi there,
I'm probably exhuming a pretty old post now, but I just wanted to make things clearer for me.
I've been reading a lot this week-end on JBossWS, WStools and a lot of surrounding topics and suffs.
>From what I understand, you suggest giving up using WSTools in the profit of annotations.
Here's where I'm a bit confused :
- I thought annotations where for JAX-WS
- I know I can (correct me if I'm wrong alright) do some JAX-RPC with JAX-WS, because the latter supports the former.
- but wasn't JAX-WS only to use with Java 6 ? Or in other words : may I use annotations to replace my use of WSTools even if I'm coding JAX-RPC style webservices with java 5 ?
Cheers,
J
"thomas.diesler(a)jboss.com" wrote : webservices.xml supports multiple service endpoints. You have to merge the wstools generated webservices.xml files manully.
|
| BTW, wscompile does not generate webservices.xml at all.
|
| Why not use JSR181 endpoints and get rid of all those offline tools generation issue all together?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4138588#4138588
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4138588
18 years, 1 month
[EJB 3.0] - Re: MappingException: Repeated column in mapping for entity
by lpmon
I had to hack to Hibernate core to make this work. I changed the line that throws the exception to just issue a warning and I can now read rows successfully. The proper class is returned based on the discriminator column value as expected.
This must be a bug as I definitely do no have duplicated column names. My class has a lot of transients. Maybe that is somehow tripping up the validation of the class.
However: when I try to insert a row using EJB3 I get an error. I have not fully researched this but it looks like Hibernate is adding an additional column to the insert statement it generates.
I get : Caused by: java.sql.SQLException: Parameter index out of range (14 > number of parameters, which is 13)
My table has 14 columns + primary key = 15 total. I dont think the Hibernate insert uses the primary key column. Guessing about that then it should insert 13 columns but appears to be adding another with some large integer value.
I am about to reembark on solving this problem.
Of note: someone in the Hibernate forum suggested removing the discriminator column. Seemed strange to me. How would one know what class to build when retrieving the column? Tried it anyway. Did not work.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4138580#4138580
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4138580
18 years, 1 month