[JBoss Portal] - Re: portal.sar deployed but browser/tomcat returns nullpoint
by konstandinos
heya thomas
for what it's worth:
i've configured the datasource descriptor and uploaded it, along with the jdbc driver for postgresql (having already create a user and jbossportal database).
after restarting the jboss server, everything seems to work now. ie: the portal loads up as expected, i can log in, and navigate around the default portlets with no fuss.
however i've been tailing jboss's logfile and while viewing the portal's homepage i kept seeing this (repeated over and over every 5 seconds or so):
| 10:55:30,367 WARN [CacheLoaderInterceptor] The CacheLoader interface has changed since JBossCache 1.3.x
| 10:55:30,367 WARN [CacheLoaderInterceptor] Please see http://jira.jboss.com/jira/browse/JBCACHE-118
| 10:55:30,367 WARN [CacheLoaderInterceptor] CacheLoader.get() should return an empty Map if the node does exist but doesn't have any attributes.
| 10:55:30,368 WARN [CacheLoaderInterceptor] CacheLoader.get(Fqn) returned a null; assuming the node nodes not exist.
|
also, when i tried to log in (by clicking on the Login link on Portal's front page), i noticed this in the log file output:
| 10:56:40,279 ERROR [IOTools] Error while closing outstream
| ClientAbortException: java.net.SocketException: Broken pipe
| ...
|
... and this a bit below:
| 10:56:40,280 ERROR [Controller] Cound not send http response
| ClientAbortException: java.net.SocketException: Broken pipe
| ...
|
but yeah, i still manage to log in and browse around, edit my user profile, etc.
and all of this with the JEMS install.
i hope this information may be of use to you and your team. thanks for the tip earlier.
cheers,
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4085920#4085920
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4085920
18 years, 10 months
[JBoss Portal] - contetnt mixed mode storage
by k3nnymusic
I'm using jboss as 4.0.5GA and jboss portal 2.4.2 and when I change in xml to mixed storage file every my cms portlet instances have error
java.lang.NullPointerException
and I haven't got access to any content files.
If I try to open any files from my
\jboss-4.0.5.GA\server\default\deploy\jboss-portal.sar\portal-cms.sar\portal\cms\conf\default-content\default
for example by url:
http://localhost:8080/portal/content/default/images/support.gif
I have got the following error:
javax.servlet.ServletException: Unable to register cleanup Synchronization with TransactionManager
| org.jboss.portal.server.servlet.PortalServlet.process(PortalServlet.java:321)
| org.jboss.portal.server.servlet.PortalServlet.doGet(PortalServlet.java:173)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
I tryied to clean my workspace, tmp etc, and it doesn't work. I don't understand, when I have got mixed storage and write:
/content/default/images/support.gif
then it loads support.gif from filesystem or from database?
How can I define that?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4085915#4085915
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4085915
18 years, 10 months
[JBoss Seam] - Exception thrown from Authenticator.authenticate method
by terryb
Someone please help. I throw an exception from Authenticator.authenticate and would like to capture it in pages.xml file to redirect to a custom page. However it doesn't work as expected.
The exception thrown appears in logs but it doesn't redirect to the page specified in the pages.xml file. Seam treats my exception same as returning false from the authenticate method, meaning login failed and displays faces message.
Authenticator class:
public boolean authenticate() {
...
if ("locked".equalsIgnoreCase(organisationUser.getStatus())) {
FacesMessages.instance().addFromResourceBundle("mypackage.test", identity.getUsername());
throw new UserAccountLockedException("Your account is currently locked.");
}
...
return true;
}
pages.xml
[exception class="mypackage.UserAccountLockedException"]
[redirect view-id="/error.xhtml"]
[message] Account locked [/message]
[ /redirect]
[/exception]
[ and ] only to allow pasting xml here, they meant to bes < and >.
It doesn't redirect to /error.xml page. It just stays on login page and displayes my message from messages_en.properties file.
Do I need to do something else to make my exception entry in pages.xml to work???
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4085912#4085912
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4085912
18 years, 10 months