CPU/memory utilization
by Shimol Shah
Hi,
I am very new to JBoss users mailing list and this is my first email to the
list. I would really appreciate if anybody can guide me in the right
direction.
I am looking for a way to programmtically find out the CPU/memory usage of
web applications running under the container. I looked for the solutions to
my problem but unfortunately I didn't find anything yet.
Any help is kindly appreciated.
Thanks,
Shimol.
19 years, 7 months
[EJB 3.0] - ObjectDeletedException: deleted entity passed to persist:
by barnaby33
I am getting this error when trying to remove an entity, that I just previously loaded(as in the line before).
Find find = new Find(inUserGrpFacility);
getExecMgr().executeEntityManaged(find);
System.out.println("usergroup exists="+ (find.getResult() != null));
getExecMgr().executeEntityManagedTx(new Remove(inUserGrpFacility));
The output of the print statement is: usergroup exists=true
Basically my find and remove calls are just custom command pattern wrappers on the entity manager find and remove methods. The UserGroupFacility class and its embedded key class are included below. Assuming that the find works, I am thinking that there is a bug because the remove is throwing the exception in the title of my message. I did a trace and there are no SQL delete statements being executed. Are there any known issues with removing entities with composite keys?
/**
* UserGrpFacility generated by hbm2java
*/
@Entity
@Table(name="USER_GRP_FACILITY"
,schema="SUPPORT"
,catalog="C_TOWER"
, uniqueConstraints = { }
)
public class UserGrpFacility implements java.io.Serializable {
// Fields
private UserGrpFacilityId id;
private Facility facility;
// Constructors
/** default constructor */
public UserGrpFacility() {
}
/** full constructor */
public UserGrpFacility(UserGrpFacilityId id, Facility facility) {
this.id = id;
this.facility = facility;
}
// Property accessors
@EmbeddedId
@AttributeOverrides( {
@AttributeOverride(name="userGrpGuid", column=@Column(name="USER_GRP_GUID", unique=false, nullable=false, insertable=true, updatable=true) ),
@AttributeOverride(name="facilityId", column=@Column(name="FACILITY_ID", unique=false, nullable=false, insertable=true, updatable=true, precision=18, scale=0) ) } )
public UserGrpFacilityId getId() {
return this.id;
}
public void setId(UserGrpFacilityId id) {
this.id = id;
}
@ManyToOne(
fetch=FetchType.EAGER)
@JoinColumn(name="FACILITY_ID", unique=false, nullable=false, insertable=false, updatable=false)
public Facility getFacility() {
return this.facility;
}
public void setFacility(Facility facility) {
this.facility = facility;
}
/**
* UserGrpFacilityId generated by hbm2java
*/
@Embeddable
public class UserGrpFacilityId implements java.io.Serializable {
// Fields
private byte[] userGrpGuid;
private long facilityId;
// Constructors
/** default constructor */
public UserGrpFacilityId() {
}
/** full constructor */
public UserGrpFacilityId(byte[] userGrpGuid, long facilityId) {
this.userGrpGuid = userGrpGuid;
this.facilityId = facilityId;
}
// Property accessors
@Column(name="USER_GRP_GUID", unique=false, nullable=false, insertable=true, updatable=true)
public byte[] getUserGrpGuid() {
return this.userGrpGuid;
}
public void setUserGrpGuid(byte[] userGrpGuid) {
this.userGrpGuid = userGrpGuid;
}
@Column(name="FACILITY_ID", unique=false, nullable=false, insertable=true, updatable=true, precision=18, scale=0)
public long getFacilityId() {
return this.facilityId;
}
public void setFacilityId(long facilityId) {
this.facilityId = facilityId;
}
public boolean equals(Object other) {
if ( (this == other ) ) return true;
if ( (other == null ) ) return false;
if ( !(other instanceof UserGrpFacilityId) ) return false;
UserGrpFacilityId castOther = ( UserGrpFacilityId ) other;
return ( (this.getUserGrpGuid()==castOther.getUserGrpGuid()) || ( this.getUserGrpGuid()!=null && castOther.getUserGrpGuid()!=null && Arrays.equals(this.getUserGrpGuid(), castOther.getUserGrpGuid()) ) )
&& (this.getFacilityId()==castOther.getFacilityId());
}
public int hashCode() {
int result = 17;
result = 37 * result + ( getUserGrpGuid() == null ? 0 : Arrays.hashCode(this.getUserGrpGuid()) );
result = 37 * result + (int) this.getFacilityId();
return result;
}
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970457#3970457
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970457
19 years, 7 months
[JBossWS] - WS Security - wsu:Timestamp/@wsu:Id incorrectly implemented
by mariovvl
When calling the HelloService from the 'simple sign' example of jbossws-samples-1.0.3.GA\wssecurity, a WSSecurityException is thrown indicating the Timestamp element is missing an Id. This error only occurs when the webservice client is generated by JDeveloper since it does not generate a wsu:id. When creating a client using jboss' wsse client configuration, the wsu:id does get generated in the soap message and the call succeeds without any problems.
According to http://www.oasis-open.org/committees/download.php/16790/wss-v1.1-spec-os-... this id should be optional:
anonymous wrote : /wsu:Timestamp/@wsu:Id
| 1863 This optional attribute specifies an XML Schema ID that can be used to reference this
| 1864 element (the timestamp). This is used, for example, to reference the timestamp in a XML
| 1865 Signature.
|
However looking at the source for org.jboss.ws.wsse.element.Timestamp, id is being handled as required.
| if (id == null || id.length() == 0)
| throw new WSSecurityException("Invalid message, Timestamp is missing an id");
|
So my question is: Is this a bug in JBossws' implementation of the WS Security spec or am I looking at the wrong spec/version?
Thanks,
Mario
| ERROR [org.jboss.ws.wsse.WSSecurityDispatcher] Internal error occured handling inbound message:
| org.jboss.ws.wsse.WSSecurityException: Invalid message, Timestamp is missing an id
| at org.jboss.ws.wsse.element.Timestamp.<init>(Timestamp.java:66)
| at org.jboss.ws.wsse.element.SecurityHeader.<init>(SecurityHeader.java:85)
| at org.jboss.ws.wsse.SecurityDecoder.decode(SecurityDecoder.java:182)
| at org.jboss.ws.wsse.WSSecurityDispatcher.handleInbound(WSSecurityDispatcher.java:143)
| at org.jboss.ws.wsse.WSSecurityHandler.handleInboundSecurity(WSSecurityHandler.java:68)
| at org.jboss.ws.wsse.WSSecurityHandlerInbound.handleRequest(WSSecurityHandlerInbound.java:42)
| at org.jboss.ws.handler.HandlerWrapper.handleRequest(HandlerWrapper.java:121)
| at org.jboss.ws.handler.HandlerChainBaseImpl.handleRequest(HandlerChainBaseImpl.java:245)
| at org.jboss.ws.handler.ServerHandlerChain.handleRequest(ServerHandlerChain.java:53)
| at org.jboss.ws.server.ServiceEndpointInvoker.callRequestHandlerChain(ServiceEndpointInvoker.java:224)
| at org.jboss.ws.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:97)
| at org.jboss.ws.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:209)
| at org.jboss.ws.server.ServiceEndpointManager.processSOAPRequest(ServiceEndpointManager.java:355)
| at org.jboss.ws.server.StandardEndpointServlet.doPost(StandardEndpointServlet.java:115)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
| at org.jboss.ws.server.StandardEndpointServlet.service(StandardEndpointServlet.java:76)
| 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.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:595)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970455#3970455
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970455
19 years, 7 months
[JBoss Messaging] - Re: Closing Consumer Causes Hang
by toddjtidwell
Sure, here ya go... My objects are the jms.test package stuff.
| Full thread dump Java HotSpot(TM) Client VM (1.5.0_07-b03 mixed mode, sharing):
|
| "Thread-4" prio=6 tid=0x0301dc30 nid=0x148 in Object.wait() [0x034ef000..0x034efa68]
| at java.lang.Object.wait(Native Method)
| - waiting on <0x22b99a38> (a org.jboss.messaging.util.Future)
| at java.lang.Object.wait(Unknown Source)
| at org.jboss.messaging.util.Future.getResult(Future.java:51)
| - locked <0x22b99a38> (a org.jboss.messaging.util.Future)
| at org.jboss.jms.client.remoting.MessageCallbackHandler.waitForOnMessageToComplete(MessageCallbackHandler.java:357)
| at org.jboss.jms.client.remoting.MessageCallbackHandler.close(MessageCallbackHandler.java:312)
| at org.jboss.jms.client.container.ConsumerAspect.handleClosing(ConsumerAspect.java:116)
| at org.jboss.aop.advice.org.jboss.jms.client.container.ConsumerAspect24.invoke(ConsumerAspect24.java)
| at org.jboss.jms.client.delegate.ClientConsumerDelegate$closing_4945873952494833124.invokeNext(ClientConsumerDelegate$closing_4945873952494833124.java)
| at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:134)
| at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:117)
| at org.jboss.jms.client.delegate.ClientConsumerDelegate$closing_4945873952494833124.invokeNext(ClientConsumerDelegate$closing_4945873952494833124.java)
| at org.jboss.jms.client.container.ExceptionInterceptor.invoke(ExceptionInterceptor.java:69)
| at org.jboss.jms.client.delegate.ClientConsumerDelegate$closing_4945873952494833124.invokeNext(ClientConsumerDelegate$closing_4945873952494833124.java)
| at org.jboss.jms.client.container.ClientLogInterceptor.invoke(ClientLogInterceptor.java:107)
| at org.jboss.jms.client.delegate.ClientConsumerDelegate$closing_4945873952494833124.invokeNext(ClientConsumerDelegate$closing_4945873952494833124.java)
| at org.jboss.jms.client.delegate.ClientConsumerDelegate.closing(ClientConsumerDelegate.java)
| at org.jboss.jms.client.JBossMessageConsumer.close(JBossMessageConsumer.java:96)
| at messaging.DestinationHandler.disconnect(DestinationHandler.java:233)
| at jms.test.TestConsumer.closeConnection(TestConsumer.java:58)
| at jms.test.TestConsumer.onMessage(TestConsumer.java:85)
| at org.jboss.jms.client.remoting.MessageCallbackHandler.callOnMessage(MessageCallbackHandler.java:87)
| at org.jboss.jms.client.remoting.MessageCallbackHandler$ListenerRunner.run(MessageCallbackHandler.java:712)
| at EDU.oswego.cs.dl.util.concurrent.QueuedExecutor$RunLoop.run(QueuedExecutor.java:89)
| at java.lang.Thread.run(Unknown Source)
|
| "SocketServerInvokerThread-10.1.3.102-0" prio=6 tid=0x00aabe48 nid=0xc78 runnable [0x034af000..0x034afae8]
| at java.net.SocketInputStream.socketRead0(Native Method)
| at java.net.SocketInputStream.read(Unknown Source)
| at java.io.BufferedInputStream.fill(Unknown Source)
| at java.io.BufferedInputStream.read(Unknown Source)
| - locked <0x22bf3d68> (a java.io.BufferedInputStream)
| at java.io.FilterInputStream.read(Unknown Source)
| at org.jboss.serial.io.JBossObjectInputStream.read(JBossObjectInputStream.java:193)
| at org.jboss.remoting.transport.socket.ServerThread.readVersion(ServerThread.java:497)
| at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:414)
| at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:534)
| at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:257)
|
| "DestroyJavaVM" prio=6 tid=0x00035038 nid=0xbdc waiting on condition [0x00000000..0x0007fae8]
|
| "Thread-3" prio=6 tid=0x0301cb28 nid=0x194 waiting on condition [0x0345f000..0x0345fb68]
| at java.lang.Thread.sleep(Native Method)
| at jms.test.PingThread.run(PingThread.java:33)
|
| "GC Daemon" daemon prio=2 tid=0x03014538 nid=0xc94 in Object.wait() [0x033df000..0x033dfbe8]
| at java.lang.Object.wait(Native Method)
| - waiting on <0x230ca078> (a sun.misc.GC$LatencyLock)
| at sun.misc.GC$Daemon.run(Unknown Source)
| - locked <0x230ca078> (a sun.misc.GC$LatencyLock)
|
| "RMI RenewClean-[10.1.3.102:1098]" daemon prio=6 tid=0x03001e18 nid=0xe48 in Object.wait() [0x0339f000..0x0339fce8]
| at java.lang.Object.wait(Native Method)
| - waiting on <0x2323caa8> (a java.lang.ref.ReferenceQueue$Lock)
| at java.lang.ref.ReferenceQueue.remove(Unknown Source)
| - locked <0x2323caa8> (a java.lang.ref.ReferenceQueue$Lock)
| at sun.rmi.transport.DGCClient$EndpointEntry$RenewCleanThread.run(Unknown Source)
| at java.lang.Thread.run(Unknown Source)
|
| "Thread-2" prio=6 tid=0x02dd0bf8 nid=0xff8 waiting on condition [0x0335f000..0x0335fd68]
| at java.lang.Thread.sleep(Native Method)
| at org.jboss.remoting.transport.socket.SocketServerInvoker$ServerSocketRefresh.run(SocketServerInvoker.java:590)
|
| "Timer-0" daemon prio=6 tid=0x02d770c8 nid=0x478 in Object.wait() [0x02edf000..0x02edf9e8]
| at java.lang.Object.wait(Native Method)
| - waiting on <0x231be7f8> (a java.util.TaskQueue)
| at java.util.TimerThread.mainLoop(Unknown Source)
| - locked <0x231be7f8> (a java.util.TaskQueue)
| at java.util.TimerThread.run(Unknown Source)
|
| "SocketServerInvoker#0-3416" prio=6 tid=0x00acf7d8 nid=0x408 runnable [0x02e9f000..0x02e9fa68]
| at java.net.PlainSocketImpl.socketAccept(Native Method)
| at java.net.PlainSocketImpl.accept(Unknown Source)
| - locked <0x231be8b8> (a java.net.SocksSocketImpl)
| at java.net.ServerSocket.implAccept(Unknown Source)
| at java.net.ServerSocket.accept(Unknown Source)
| at org.jboss.remoting.transport.socket.SocketServerInvoker.run(SocketServerInvoker.java:445)
| at java.lang.Thread.run(Unknown Source)
|
| "Low Memory Detector" daemon prio=6 tid=0x00a6f208 nid=0x59c runnable [0x00000000..0x00000000]
|
| "CompilerThread0" daemon prio=10 tid=0x00a6ddd0 nid=0x164 waiting on condition [0x00000000..0x02bcf6cc]
|
| "Signal Dispatcher" daemon prio=10 tid=0x00a6d120 nid=0x278 waiting on condition [0x00000000..0x00000000]
|
| "Finalizer" daemon prio=8 tid=0x00a67f78 nid=0x49c in Object.wait() [0x02b4f000..0x02b4fa68]
| at java.lang.Object.wait(Native Method)
| - waiting on <0x23068d88> (a java.lang.ref.ReferenceQueue$Lock)
| at java.lang.ref.ReferenceQueue.remove(Unknown Source)
| - locked <0x23068d88> (a java.lang.ref.ReferenceQueue$Lock)
| at java.lang.ref.ReferenceQueue.remove(Unknown Source)
| at java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source)
|
| "Reference Handler" daemon prio=10 tid=0x00a67aa0 nid=0x650 in Object.wait() [0x02b0f000..0x02b0fae8]
| at java.lang.Object.wait(Native Method)
| - waiting on <0x23068e08> (a java.lang.ref.Reference$Lock)
| at java.lang.Object.wait(Unknown Source)
| at java.lang.ref.Reference$ReferenceHandler.run(Unknown Source)
| - locked <0x23068e08> (a java.lang.ref.Reference$Lock)
|
| "VM Thread" prio=10 tid=0x00a65a60 nid=0x13c runnable
|
| "VM Periodic Task Thread" prio=10 tid=0x00a70420 nid=0x960 waiting on condition
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970451#3970451
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970451
19 years, 7 months
[JBossWS] - javaType cannot be null?
by Doug.Palmer
I have a document style web service with a problem. I'm obviously doing something wrong but I can't figure out what is wrong. Whenever the service is invoked I get a org.jboss.ws.WSException stating "javaType cannot be null". Why does this happen?
The service implements this interface:
package decs2.pi;
|
| public interface ProcessInitiator extends java.rmi.Remote
| {
| public javax.xml.soap.SOAPElement invoke(javax.xml.soap.SOAPElement msg) throws java.rmi.RemoteException;
| }
The wsdl description of the service is:
<definitions name='ProcessInitiatorService' targetNamespace='http://decs2/jaws' xmlns='http://schemas.xmlsoap.org/wsdl/' xmlns:decs2='http://decs2/jaws' xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/' xmlns:typeNS='http://decs2/jaws/types'>
| <types>
| <schema targetNamespace='http://decs2/jaws/types' xmlns='http://www.w3.org/2001/XMLSchema'>
| <element name='subtractProcessOp' type='typeNS:subtractProcessOpType'/>
| <complexType name='subtractProcessOpType'>
| <sequence>
| <element name='x' type='int'></element>
| <element name='y' type='int'></element>
| </sequence>
| </complexType>
| <element name='subtractProcessOpResponse' type='typeNS:subtractProcessOpResponseType'/>
| <complexType name='subtractProcessOpResponseType'>
| <sequence>
| <element name='result' type='int'></element>
| </sequence>
| </complexType>
| </schema>
| </types>
| <message name='INPUT'>
| <part element='typeNS:subtractProcessOp' name='parameters'/>
| </message>
| <message name='OUTPUT'>
| <part element='typeNS:subtractProcessOpResponse' name='result'/>
| </message>
| <portType name='ProcessInitiator'>
| <operation name='subtractProcessOp'>
| <input message='decs2:INPUT'/>
| <output message='decs2:OUTPUT'/>
| </operation>
| </portType>
| <binding name='ProcessInitiatorBinding' type='decs2:ProcessInitiator'>
| <soap:binding style='document' transport='http://schemas.xmlsoap.org/soap/http'/>
| <operation name='subtractProcessOp'>
| <soap:operation soapAction=''/>
| <input>
| <soap:body use='literal'/>
| </input>
| <output>
| <soap:body use='literal'/>
| </output>
| </operation>
| </binding>
| <service name='ProcessInitiatorService'>
| <port binding='decs2:ProcessInitiatorBinding' name='ProcessInitiatorPort'>
| <soap:address location='REPLACE_WITH_ACTUAL_URL'/>
| </port>
| </service>
| </definitions>
And the jaxrpc-mapping.xml is:
<java-wsdl-mapping version='1.1' xmlns='http://java.sun.com/xml/ns/j2ee' xmlns:decs2='http://decs2/jaws'>
| <package-mapping>
| <package-type>decs2</package-type>
| <namespaceURI>http://decs2/jaws/types</namespaceURI>
| </package-mapping>
|
| <java-xml-type-mapping>
| <java-type>javax.xml.soap.SOAPElement</java-type>
| <root-type-qname xmlns:typeNS='http://decs2/jaws/types'>typeNS:subtractProcessOpType</root-type-qname>
| <qname-scope>complexType</qname-scope>
| </java-xml-type-mapping>
|
| <java-xml-type-mapping>
| <java-type>javax.xml.soap.SOAPElement</java-type>
| <root-type-qname xmlns:typeNS='http://decs2/jaws/types'>typeNS:subtractProcessOpResponseType</root-type-qname>
| <qname-scope>complexType</qname-scope>
| </java-xml-type-mapping>
|
| <service-interface-mapping>
| <service-interface>decs2.ProcessInitiatorService</service-interface>
| <wsdl-service-name>decs2:ProcessInitiatorService</wsdl-service-name>
| <port-mapping>
| <port-name>ProcessInitiatorPort</port-name>
| <java-port-name>ProcessInitiatorPort</java-port-name>
| </port-mapping>
| </service-interface-mapping>
|
| <service-endpoint-interface-mapping>
| <service-endpoint-interface>decs2.pi.ProcessInitiator</service-endpoint-interface>
| <wsdl-port-type>decs2:ProcessInitiator</wsdl-port-type>
| <wsdl-binding>decs2:ProcessInitiatorBinding</wsdl-binding>
| <service-endpoint-method-mapping>
| <java-method-name>invoke</java-method-name>
| <wsdl-operation>subtractProcessOp</wsdl-operation>
| <wrapped-element/>
| <method-param-parts-mapping>
| <param-position>0</param-position>
| <param-type>javax.xml.soap.SOAPElement</param-type>
| <wsdl-message-mapping>
| <wsdl-message>decs2:INPUT</wsdl-message>
| <wsdl-message-part-name>parameters</wsdl-message-part-name>
| <parameter-mode>IN</parameter-mode>
| </wsdl-message-mapping>
| </method-param-parts-mapping>
| <wsdl-return-value-mapping>
| <method-return-value>javax.xml.soap.SOAPElement</method-return-value>
| <wsdl-message>decs2:OUTPUT</wsdl-message>
| <wsdl-message-part-name>result</wsdl-message-part-name>
| </wsdl-return-value-mapping>
| </service-endpoint-method-mapping>
| </service-endpoint-interface-mapping>
| </java-wsdl-mapping>
Any ideas?
Regards
Doug
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970449#3970449
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970449
19 years, 7 months
[JBoss Portal] - response.createRenderUrl() always returns
by tajh
My environment:
JBoss Portal 2.2.1 SP3, downloaded
JBoss AS 4.0.4
Oracle 10g
Windows XP SP2
jdk 1.5.0_07
I am attempting to construct a URL within a portlet for output that returns to the same portal page, but with an additional parameter added.
For some reason, within my portlet's doView(request, response) method, whenever I call response.createRenderUrl(), I always get a URL like the following:
anonymous wrote : /portal/index.html?ctrl:cmd=render&ctrl:window=marad.default.Feedback
where the relative path portion of the url is not what I expect. The actual URL for the page request that generates this behavior is:
anonymous wrote : http://localhost:8080/portal/portal/marad/
as I have not yet configured my portal app to be the default portal app. So
I am expecting the url to look similar, so that the URL generated would look something like the following:
anonymous wrote : /portal/portal/marad/default?param1=value1¶m2=value2&...
What is the proper way to construct a URL that returns to the same portal page, albeit with some attached parameters? Is it possible to do this without proprietary casting of the request and response to JBossRenderRequest and JBossRenderReponse? Even the following code inside my portlet:
JBossRenderRequest jbossRequest = (JBossRenderRequest)request;
| JBossRenderResponse jbossResponse = (JBossRenderResponse)response;
| PortalNodeURL pnUrl = jbossResponse.createRenderURL(jbossRequest.getPortalNode());
produced null for pnUrl. help!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970447#3970447
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970447
19 years, 7 months