Re: deploy/integrate Alfresco Content management in JBoss portal
by samk@twinix.com
See Thread at: http://www.techienuggets.com/Detail?tx=21646 Posted on behalf of a User
How can i see content of alfresco in JBoss
In Response To:
Hi,
Can anybody please tell me
How to deploy/integrate Alfresco Content management in JBoss portal.
I want to integrate Alfresco Content Management( alfresco2.0 war or more version) with Jboss portal 4.2.1 (or more version).
And iam successfully integated Alfresco 2.0 with Jboss4.2.1GA.
thanks in advance.
somi.
18 years, 1 month
[JBossWS] - Single API called twice after certain time
by rashmi_yes
Hi,
My Client is calling an web service API in remote machine. This API will take around 7 minutes to execute. But before completing the execution, the same API is called again after 5 minutes. But actually, the client is not calling the same API again. It had been called automatically.
When the first call completes execution, it is trying to return the result but throwing the below error & the value is not returned. But the second call(which was called automatically) completes & returns successfully.
Could anybody help me on this problem
thrown error in first call:
java.io.IOException: stream is closed
at sun.net.httpserver.Request$WriteStream.write(Request.java:378)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65
)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
at sun.net.httpserver.ExchangeImpl.sendResponseHeaders(ExchangeImpl.java
:192)
at sun.net.httpserver.HttpExchangeImpl.sendResponseHeaders(HttpExchangeI
mpl.java:68)
at com.sun.xml.internal.ws.transport.http.server.ServerConnectionImpl.ge
tOutput(ServerConnectionImpl.java:116)
at com.sun.xml.internal.ws.util.SOAPConnectionUtil.send(SOAPConnectionUt
il.java:106)
at com.sun.xml.internal.ws.util.SOAPConnectionUtil.sendResponse(SOAPConn
ectionUtil.java:115)
at com.sun.xml.internal.ws.protocol.soap.server.SOAPMessageDispatcher.se
ndResponse(SOAPMessageDispatcher.java:382)
at com.sun.xml.internal.ws.protocol.soap.server.SOAPMessageDispatcher.re
ceive(SOAPMessageDispatcher.java:159)
at com.sun.xml.internal.ws.server.Tie.handle(Tie.java:90)
at com.sun.xml.internal.ws.transport.http.server.WSHttpHandler.process(W
SHttpHandler.java:173)
at com.sun.xml.internal.ws.transport.http.server.WSHttpHandler.handleExc
hange(WSHttpHandler.java:121)
at com.sun.xml.internal.ws.transport.http.server.WSHttpHandler.handle(WS
HttpHandler.java:97)
at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:65)
at sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:65)
at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:68)
at sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.
java:556)
at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:65)
at sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:528)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
utor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:907)
at java.lang.Thread.run(Thread.java:619)
javax.xml.ws.WebServiceException: java.lang.NullPointerException
at com.sun.xml.internal.ws.util.SOAPConnectionUtil.send(SOAPConnectionUt
il.java:109)
at com.sun.xml.internal.ws.util.SOAPConnectionUtil.sendResponse(SOAPConn
ectionUtil.java:115)
at com.sun.xml.internal.ws.protocol.soap.server.SOAPMessageDispatcher.se
ndResponse(SOAPMessageDispatcher.java:382)
at com.sun.xml.internal.ws.protocol.soap.server.SOAPMessageDispatcher.re
ceive(SOAPMessageDispatcher.java:159)
at com.sun.xml.internal.ws.server.Tie.handle(Tie.java:90)
at com.sun.xml.internal.ws.transport.http.server.WSHttpHandler.process(W
SHttpHandler.java:173)
at com.sun.xml.internal.ws.transport.http.server.WSHttpHandler.handleExc
hange(WSHttpHandler.java:121)
at com.sun.xml.internal.ws.transport.http.server.WSHttpHandler.handle(WS
HttpHandler.java:97)
at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:65)
at sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:65)
at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:68)
at sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.
java:556)
at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:65)
at sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:528)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
utor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:907)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException
at com.sun.xml.internal.messaging.saaj.soap.MessageImpl.writeTo(MessageI
mpl.java:1219)
at com.sun.xml.internal.ws.util.SOAPConnectionUtil.send(SOAPConnectionUt
il.java:106)
... 16 more
Mar 13, 2008 6:41:14 PM com.sun.xml.internal.ws.protocol.soap.server.SOAPMessage
Dispatcher receive
SEVERE: java.lang.NullPointerException
javax.xml.ws.WebServiceException: java.lang.NullPointerException
at com.sun.xml.internal.ws.util.SOAPConnectionUtil.send(SOAPConnectionUt
il.java:109)
at com.sun.xml.internal.ws.util.SOAPConnectionUtil.sendResponse(SOAPConn
ectionUtil.java:115)
at com.sun.xml.internal.ws.protocol.soap.server.SOAPMessageDispatcher.se
ndResponse(SOAPMessageDispatcher.java:382)
at com.sun.xml.internal.ws.protocol.soap.server.SOAPMessageDispatcher.re
ceive(SOAPMessageDispatcher.java:159)
at com.sun.xml.internal.ws.server.Tie.handle(Tie.java:90)
at com.sun.xml.internal.ws.transport.http.server.WSHttpHandler.process(W
SHttpHandler.java:173)
at com.sun.xml.internal.ws.transport.http.server.WSHttpHandler.handleExc
hange(WSHttpHandler.java:121)
at com.sun.xml.internal.ws.transport.http.server.WSHttpHandler.handle(WS
HttpHandler.java:97)
at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:65)
at sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:65)
at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:68)
at sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.
java:556)
at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:65)
at sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:528)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
utor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:907)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException
at com.sun.xml.internal.messaging.saaj.soap.MessageImpl.writeTo(MessageI
mpl.java:1219)
at com.sun.xml.internal.ws.util.SOAPConnectionUtil.send(SOAPConnectionUt
il.java:106)
... 16 more
Thanks,
Rashmi
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136604#4136604
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136604
18 years, 1 month
[JBoss Portal] - UserProfileModule.setProperty() not saved
by HerQpapa
Hi,
Accept my apologies beforehand if this question had been asked before. I searched the forums but I did not find anything on this subject.
I am using JBoss Portal 2.6.2-GA with MySQL backend.
I have a portlet where the logged in user can add/delete and assign roles.
Code snippet from my ServiceBean:
| private void addUser(){
| UserTransaction ut = (UserTransaction) (new InitialContext().lookup("java:comp/UserTransaction"));
| ut.begin();
| ((UserModule) (new InitialContext().lookup("java:/portal/UserModule")).createUser(userDetails.getUser(), userDetails.getConfirmPassword());
| ut.commit();
| }
|
| private void setUserProperties(){
| UserModule userModule = (UserModule) (new InitialContext())
| .lookup("java:/portal/UserModule");
| UserTransaction ut = (UserTransaction) (new InitialContext()
| .lookup("java:comp/UserTransaction"));
| ut.begin();
| User user = userModule.findUserByUserName(userDetails.getUser());
| ((MembershipModule)(new InitialContext()).lookup("java:portal/MembershipModule")).assignRoles(user, getRoleModule().findRolesByNames(new String[]{USERROLE_USER, USERROLE_LOUNGE}));
| if (userDetails.isInternalUser()){
| ((MembershipModule)(new InitialContext()).lookup("java:portal/MembershipModule")).assignRoles(user, getRoleModule().findRolesByNames(new String[]{USERROLE_INTERNAL}));
| }
|
| UserProfileModule profileModule = (UserProfileModule) (new InitialContext()).lookup("java:/portal/UserProfileModule");
| profileModule.setProperty(user, User.INFO_USER_ENABLED, true);
| profileModule.setProperty(user, User.INFO_USER_EMAIL_REAL, userDetails.getEmail());
| profileModule.setProperty(user, User.INFO_USER_NAME_FAMILY, userDetails.getFamilyName());
| profileModule.setProperty(user, User.INFO_USER_NAME_GIVEN, userDetails.getGivenName());
| ut.commit();
| }
|
| public RoleModule getRoleModule() {
| try {
| return (RoleModule) (new InitialContext())
| .lookup("java:/portal/RoleModule");
|
| } catch.....
| }
UserDetails userDetails is just a custom POJO.
User is created, but neither the roles nor the properties are assigned to.
Anybody with some suggestions why the roles and properties are not saved?
Thanks in advance!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136594#4136594
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136594
18 years, 1 month