Request dispatcher and mvc2
is there any one who has implemented the mvc2 architecture for a ecommerce
website
precisely has anyone used servlets to fetch data from ejbs and used the
data to
populate the display object.
this display object is then forwarded to the jsp using
getRequestDispatcher.forward(jsp page).
any help is appreciated.
thanks.
Heres the specific question.
we are using weblogic 5.1 sp10 and the servlets call the session beans
and get the data.
this data is used to populate the display object which is forwarded to the
jsp page using the requestdispatchers forward method.
the jsp page then display the values which are set in the display object
> > when multiple users hit the same page the results are crazy with user A
> > seeing whole or part of data which user B
> > is expecting. we will try to use the local variable approach..
how can we solve the above problem?? we cant use HttpSession since its a
webfarm approach.
Cameron Purdy <[email protected]> wrote in message
news:[email protected]...
> Yes. Do you have any specific questions?
>
> Peace,
>
> --
> Cameron Purdy
> Tangosol, Inc.
> Clustering Weblogic? You're either using Coherence, or you should be!
> Download a Tangosol Coherence eval today at http://www.tangosol.com/
>
>
>
> "PD" <[email protected]> wrote in message
> news:[email protected]...
> > is there any one who has implemented the mvc2 architecture for a
ecommerce
> > website
> >
> > precisely has anyone used servlets to fetch data from ejbs and used the
> > data to
> > populate the display object.
> >
> > this display object is then forwarded to the jsp using
> > getRequestDispatcher.forward(jsp page).
> >
> > any help is appreciated.
> >
> >
>
>
Similar Messages
-
Request dispatcher and jsp pages called from servlets
Given the following webapp directory structure:
root/
jsp/
..all jsp files
web-inf/
classes/
/servlets
..all servlet files
/com
..all other java class files
I have the jsp directory coded as: jspdir = "/jsp/" (and have tried variations
on this theme)
I try to open a new jsp page with the following code in a servlet in the above
servlet directory:
RequestDispatcher rd;
rd = getServletContext().getRequestDispatcher(jspdir + myjsp.jsp);
rd.forward(req, res);
rd continues to return null.
The jsp pages are not registered in the web.xml file for this webapp, if that
makes any difference.
Does anyone have any suggestions?
[problem.txt]
I create a small sample and put these files into /jsp in my war context
it works fine, please send me the example code you are using and the
environment description of the deployed application
I attached my samples, that work
Filip
~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
[email protected]
www.filip.net
"Bill Blackmon" <[email protected]> wrote in message
news:[email protected]...
>
> Yes, I am able to access the jsp pages with the url listed.
>
> "Filip Hanik" <[email protected]> wrote:
> >The weblogic servlet engine, is by default mapping anything that ends
with
> >*.jsp to be a JSP.
> >so there shouldn't be a problem. You didn't answer my first question,
> >are you able to access your JSP through the browser?
> >http://localhost:7001/root/jsp/myjsp.jsp
> >
> >Filip
> >
> >--
> >~
> >Namaste - I bow to the divine in you
> >~
> >Filip Hanik
> >Software Architect
> >[email protected]
> >www.filip.net
> >"Bill Blackmon" <[email protected]> wrote in message
> >news:[email protected]...
> >>
> >> The code you are reading in the message here was pasted in and
> >> looks bad, so maybe that's what you are referring to? The dispatcher
code
> >is called
> >> in the service() method of the servlet.
> >> I have a suspicion that the jsp directory needs to be defined someplace
> >-
> >weblogic.properties
> >> or web.xml?, though I don't see this in any of the examples that come
> >with
> >the product.
> >>
> >>
> >>
> >> "Simon Ng" <[email protected]> wrote:
> >> >
> >> >Hello Bill,
> >> > Did you put a <BR>
> >> >return;
> >> ><BR>
> >> >statement right after the dispatcher.forward() statement? Well, I am
> >assuming
> >> >your
> >> >code is in the doPost() or doGet() methods.
> >> >
> >> >Simon
> >> >
> >> >
> >> >"Filip Hanik" <[email protected]> wrote:
> >> >>if you do http://localhost:7001/root/jsp/myjsp.jsp
> >> >>
> >> >>do you get a result?
> >> >>
> >> >>make sure you have the right character case on the filename.
> >> >>
> >> >>Filip
> >> >>
> >> >>--
> >> >>~
> >> >>Namaste - I bow to the divine in you
> >> >>~
> >> >>Filip Hanik
> >> >>Software Architect
> >> >>[email protected]
> >> >>www.filip.net
> >> >>"Bill Blackmon" <[email protected]> wrote in message
> >> >>news:[email protected]...
> >> >>>
> >> >>> Given the following webapp directory structure:
> >> >>> root/
> >> >>> jsp/
> >> >>> ..all jsp files
> >> >>> web-inf/
> >> >>> classes/
> >> >>> /servlets
> >> >>> ..all servlet files
> >> >>> /com
> >> >>> ..all other java class files
> >> >>>
> >> >>>
> >> >>> I have the jsp directory coded as: jspdir = "/jsp/" (and have tried
> >> >>variations
> >> >>> on this theme)
> >> >>> I try to open a new jsp page with the following code in a servlet
> >in
> >> >the
> >> >>above
> >> >>> servlet directory:
> >> >>> RequestDispatcher rd;
> >> >>> rd = getServletContext().getRequestDispatcher(jspdir + myjsp.jsp);
> >> >>> rd.forward(req, res);
> >> >>>
> >> >>> rd continues to return null.
> >> >>>
> >> >>> The jsp pages are not registered in the web.xml file for this
webapp,
> >> >>if
> >> >>that
> >> >>> makes any difference.
> >> >>>
> >> >>> Does anyone have any suggestions?
> >> >>>
> >> >>
> >> >>
> >> >
> >>
> >
> >
>
[filipInclude.jsp]
[filipForward.jsp]
[filip.jsp]
-
Query Strings in Request Dispatcher Paths (PLT.16.1.1)
I'm having trouble using query strings in a request dispatcher include to a servlet.
I'm spitting debug out, and it looks like I'm calling:
PortletRequestDispatcher rd = getPortletContext().getRequestDispatcher("/myServlet?myparam=myparamValue");
And myparam isn't being set for myServlet.
The same URL ("http://myhost:myport/myPortal/myServlet?mayparam=mayparamValue)
runs fine standalone....I'm not sure of the exact dates (either this month or the next). But
JSR168 will be supported in the service pack.
Subbu
T-Bone said the following on 11/18/2003 09:23 AM:
Subbu Allamaraju <[email protected]> wrote:
There is a known bug in WLS's servlet container that results in this
behavior. Please contact support if you need an expedited solution.Thanks, they said to wait for SP2 sometime end of November.
Can you tell me when it will be available?
Also, when will JSR-168 v1.0 be supported?
Subbu
T-Bone said the following on 10/26/2003 03:14 PM:
I'm having trouble using query strings in a request dispatcher includeto a servlet.
I'm spitting debug out, and it looks like I'm calling:
PortletRequestDispatcher rd = getPortletContext().getRequestDispatcher("/myServlet?myparam=myparamValue");
And myparam isn't being set for myServlet.
The same URL ("http://myhost:myport/myPortal/myServlet?mayparam=mayparamValue)
runs fine standalone.... -
Urgent, creating xml files dynamically, request dispatcher problem
hi all,
Problem 1:
There is a problem we are facing, while request dispatching.
The files CBECBC.XML & CBECBC_Envelop.XML,
both xml files. These files are created on request from the user, dynamically, and displayed on the browser,
by including them in a jsp page.
Here we face a problem when they are to be included into the jsp page.
The error is the following :
//////// Error ////////
Could not find request dispatcher for the url CBECBC.xml
Could not find request dispatcher for the url CBECBC_Envelop.xml
The created files are stored in the "d:\pstudio35\desks\bank\BankWeb\".
We are using " <jsp:include page="...."/> " (dynamic jsp include tag), to include the xml files.
Problem 2:
And could you just let me know how to include a xml file in a jsp file,
so that the xml file is displayed in the exact format of xml(with the tags).
I am using Pramati Studio 3.5
Its urgent!!!
Regards,
Deepa Datarproblem 2:
either translate all < en > into < and > or display the XML in a textarea -
Nested request dispatches when using RequestDispatcher in a Button action
Hi all,
I am new to JSF so I am probably missing something very simple, please help:
The test case is simple: I created one visual web page with one button and one normal JSP file(named test.jsp) using Netbeans 5.5 with visual web pack on Sun Application Server 9 PE. The code action for the button is as follows:
public String button1_action() throws Exception
ExternalContext context = FacesContext.getCurrentInstance().getExternalContext();
HttpServletRequest request = (HttpServletRequest) context.getRequest();
HttpServletResponse response = (HttpServletResponse) context.getResponse();
RequestDispatcher dispatcher = request.getRequestDispatcher("test.jsp");
dispatcher.forward(request,response);
return null;
}Once the JSF page is loaded and the button is clicked, this exception occurs:
ApplicationDispatcher[WebApplication1] Servlet.service() for servlet Faces Servlet threw exception
javax.servlet.ServletException: WEB2651: Exceeded maximum depth for nested request dispatches: 20
at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:837)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:697)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:532)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:465)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:353)
at webapplication1.Page1.button1_action(Page1.java:242)
Can anyone provide any advice on how to resolve this issue?Hi Rachel,
As per the Servlet2.3 Javadoc:
The pathname must begin with a "/" and is interpreted as relative to the current context root.
If you make that change and include the complete path, then it would work fine.
Ex:
If your context looks like http://my.company.com/webapp1/ and if you were to have your forwardPortlet.jsp in a directory like:
webapp1
|
|-> htdocs
|
|-> forwardPortlet.jsp
then, your code would look like;
RequestDiscpatcher d = request.getRequestDispatcher("/htdocs/forwardPortlet.jsp");
HTH,
thanks,
harsha -
The forward code we have is like
public void forward(String url, HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException
RequestDispatcher dispatcher = getServletConfig().getServletContext().getRequestDispatcher(url);
dispatcher.forward(request, response);
My question is:
As per the documents
The pathname must begin with a "/" and is interpreted as relative to the current
context root.
if my URL is "http://www.abcz.com/<somepage>
request dispatcher is null? and on one server (say A) that is a problem but other
server(say B) when given the full URL behaves ok.
on server A I am getting a null pointer exception , which on tracing happens to
be the request dispatcher is null.(If http://www.abcz.com/<somepage> is URL) but
no null pointer exception if url is "/<somepage>"
On B its behaving fine when given the "http://www.abcz.com/<somepage> " as URL
to the method.
Both server A and B are running wl6. Is the difference in service pack cause of
the problem?
Internally does wl6 parses the URL to find a relative URL?
Any help will be greatly appreciated.
Thanks
Rumpa
And the reason for that is, RequestDispatcher is per application
scope. And RequestDispatcher comes from the ServletContext which is
the current application scope. So it has to be relative url. If you
need to forward to an absolute url, you can use sendRedirect instead.
Bhaskar
"Matt Krevs" <[email protected]> wrote in message news:<[email protected]>...
> as far as i know, you should always specify relative urls when using request
> dispatchers
>
> eg
>
> if the entire url is
> http://myserver/theurl
> you would code as follows
>
> RequestDispatcher dispatcher =
> getServletConfig().getServletContext().getRequestDispatcher("/theurl");
> dispatcher.forward(request, response);
>
> You definitely should not use complete URLs when calling
> getRequestDispatcher()
>
> what happens on the server that returns a null dispatcher if you manually
> type the address into the browser? Does weblogic find the resource? If not
> then you have something specified differently in your server that doesn
> work.
>
>
> "RUMPA GIRI" <[email protected]> wrote in message
> news:[email protected]...
> >
> > The forward code we have is like
> > /**********************************************/
> >
> > public void forward(String url, HttpServletRequest request,
> > HttpServletResponse response)
> > throws ServletException, IOException
> > {
> > RequestDispatcher dispatcher =
> getServletConfig().getServletContext().getRequestDispatcher(url);
> > dispatcher.forward(request, response);
> > }
> > /***********************************************/
> >
> > My question is:
> > As per the documents
> > The pathname must begin with a "/" and is interpreted as relative to the
> current
> > context root.
> > if my URL is "http://www.abcz.com/<somepage>
> > request dispatcher is null? and on one server (say A) that is a problem
> but other
> > server(say B) when given the full URL behaves ok.
> > on server A I am getting a null pointer exception , which on tracing
> happens to
> > be the request dispatcher is null.(If http://www.abcz.com/<somepage> is
> URL) but
> > no null pointer exception if url is "/<somepage>"
> > On B its behaving fine when given the "http://www.abcz.com/<somepage> " as
> URL
> > to the method.
> > Both server A and B are running wl6. Is the difference in service pack
> cause of
> > the problem?
> >
> > Internally does wl6 parses the URL to find a relative URL?
> >
> > Any help will be greatly appreciated.
> > Thanks
> > Rumpa
> >
> >
-
WAS 640 ABAP dispatcher and workprocess donu00B4t start
Hello,
after installing the central and database instance of Web Application Server 640 i cannot start the system with the SAP MMC console.
while the message_server and the igs_wd are running
the dispatcher and workprocess don´t start.
following the dev trace file i get this error message:
trc file: "dev_disp", trc level: 1, release: "640"
Tue Mar 15 12:43:30 2005
kernel runs with dp version 128(ext=102) (@(#) DPLIB-INT-VERSION-128)
length of sys_adm_ext is 312 bytes
systemid 560 (PC with Windows NT)
relno 6400
patchlevel 0
patchno 21
intno 20020600
make: multithreaded, ASCII
pid 3848
Tue Mar 15 12:43:31 2005
***LOG Q00=> DpSapEnvInit, DPStart (01 3848)
shared lib "dw_xml.dll" version 21 successfully loaded
shared lib "dw_xtc.dll" version 21 successfully loaded
shared lib "dw_stl.dll" version 21 successfully loaded
shared lib "dw_gui.dll" version 21 successfully loaded
Tue Mar 15 12:43:33 2005
WARNING => DpNetCheck: NiHostToAddr(www.doesnotexist0192.qqq.nxst) took 2 seconds
Tue Mar 15 12:43:39 2005
WARNING => DpNetCheck: NiAddrToHost(1.0.0.0) took 6 seconds
***LOG GZZ=> 2 possible network problems detected - check tracefile and adjust the DNS settings
MtxInit: -2 0 0
DpSysAdmExtInit: ABAP is active
DpSysAdmExtInit: JAVA is not active
DpShMCreate: sizeof(wp_adm) 6624 (828)
DpShMCreate: sizeof(tm_adm) 2219848 (11044)
DpShMCreate: sizeof(wp_ca_adm) 18000 (60)
DpShMCreate: sizeof(appc_ca_adm) 6000 (60)
DpShMCreate: sizeof(comm_adm) 192000 (384)
DpShMCreate: sizeof(vmc_adm) 0 (320)
DpShMCreate: sizeof(wall_adm) (22440/34344/56/100)
DpShMCreate: SHM_DP_ADM_KEY (addr: 04E80040, size: 2505416)
DpShMCreate: allocated sys_adm at 04E80040
DpShMCreate: allocated wp_adm at 04E817A8
DpShMCreate: allocated tm_adm_list at 04E83188
DpShMCreate: allocated tm_adm at 04E831B0
DpShMCreate: allocated wp_ca_adm at 050A10F8
DpShMCreate: allocated appc_ca_adm at 050A5748
DpShMCreate: allocated comm_adm_list at 050A6EB8
DpShMCreate: allocated comm_adm at 050A6ED0
DpShMCreate: allocated vmc_adm_list at 050D5CD0
DpShMCreate: system runs without vmc_adm
DpShMCreate: allocated ca_info at 050D5CF8
DpShMCreate: allocated wall_adm at 050D5D00
MBUF state OFF
EmInit: MmSetImplementation( 2 ).
DpMsAttach, mscon ( jdcbw)
CCMS: Initalizing shared memory of size 40000000 for monitoring segment.
Tue Mar 15 12:43:43 2005
CCMS: start to initalize 3.X shared alert area (first segment).
DpMsgAdmin: Set release to 6400, patchlevel 0
MBUF state PREPARED
MBUF component UP
DpMBufHwIdSet: set Hardware-ID
***LOG Q1C=> DpMBufHwIdSet
DpMsgAdmin: Set patchno for this platform to 21
Release check o.K.
Tue Mar 15 12:44:20 2005
ERROR => W0 (pid 692) died
ERROR => W1 (pid 3652) died
my types changed after wp death/restart 0xbf --> 0xbe
ERROR => W2 (pid 2376) died
my types changed after wp death/restart 0xbe --> 0xbc
ERROR => W3 (pid 2216) died
my types changed after wp death/restart 0xbc --> 0xb8
ERROR => W4 (pid 2404) died
ERROR => W5 (pid 2192) died
my types changed after wp death/restart 0xb8 --> 0xb0
ERROR => W6 (pid 2428) died
my types changed after wp death/restart 0xb0 --> 0xa0
ERROR => W7 (pid 2440) died
my types changed after wp death/restart 0xa0 --> 0x80
DP_FATAL_ERROR => DpWPCheck: no more work processes
DISPATCHER EMERGENCY SHUTDOWN ***
increase tracelevel of WPs
killing W0-692 (SIGUSR2)
ERROR => DpWpKill(692, SIGUSR2) failed
killing W1-3652 (SIGUSR2)
ERROR => DpWpKill(3652, SIGUSR2) failed
killing W2-2376 (SIGUSR2)
ERROR => DpWpKill(2376, SIGUSR2) failed
killing W3-2216 (SIGUSR2)
ERROR => DpWpKill(2216, SIGUSR2) failed
killing W4-2404 (SIGUSR2)
ERROR => DpWpKill(2404, SIGUSR2) failed
killing W5-2192 (SIGUSR2)
ERROR => DpWpKill(2192, SIGUSR2) failed
killing W6-2428 (SIGUSR2)
ERROR => DpWpKill(2428, SIGUSR2) failed
killing W7-2440 (SIGUSR2)
ERROR => DpWpKill(2440, SIGUSR2) failed
NiWait: sleep (10000 msecs) ...
NiISelect: timeout 10000 ms
NiISelect: maximum fd=1621
NiISelect: read-mask is NULL
NiISelect: write-mask is NULL
Tue Mar 15 12:44:30 2005
NiISelect: TIMEOUT occured (10000 ms)
dump system status
Workprocess Table (long) Tue Mar 15 11:44:30 2005
========================
No Ty. Pid Status Cause Start Err Sem CPU Time Program Cl User Action Table
0 DIA 692 Ended no 1 0 0
1 DIA 3652 Ended no 1 0 0
2 UPD 2376 Ended no 1 0 0
3 ENQ 2216 Ended no 1 0 0
4 BTC 2404 Ended no 1 0 0
5 BTC 2192 Ended no 1 0 0
6 SPO 2428 Ended no 1 0 0
7 UP2 2440 Ended no 1 0 0
Dispatcher Queue Statistics Tue Mar 15 11:44:30 2005
===========================
+----
+----
+----
+----
+
Typ
now
high
max
writes
reads
+----
+----
+----
+----
+
NOWP
0
3
2000
10
10
+----
+----
+----
+----
+
DIA
5
5
2000
5
0
+----
+----
+----
+----
+
UPD
0
0
2000
0
0
+----
+----
+----
+----
+
ENQ
0
0
2000
0
0
+----
+----
+----
+----
+
BTC
0
0
2000
0
0
+----
+----
+----
+----
+
SPO
0
0
2000
0
0
+----
+----
+----
+----
+
UP2
0
0
2000
0
0
+----
+----
+----
+----
+
max_rq_id 13
wake_evt_udp_now 0
wake events total 9, udp 8 ( 88%), shm 1 ( 11%)
since last update total 9, udp 8 ( 88%), shm 1 ( 11%)
Dump of tm_adm structure: Tue Mar 15 11:44:30 2005
=========================
Term uid man user term lastop mod wp ta a/i (modes)
Workprocess Comm. Area Blocks Tue Mar 15 11:44:30 2005
=============================
Slots: 300, Used: 1, Max: 0
+----
+----
+
id
owner
pid
eyecatcher
+----
+----
+
0
DISPATCHER
-1
WPCAAD000
NiWait: sleep (5000 msecs) ...
NiISelect: timeout 5000 ms
NiISelect: maximum fd=1621
NiISelect: read-mask is NULL
NiISelect: write-mask is NULL
Tue Mar 15 12:44:35 2005
NiISelect: TIMEOUT occured (5000 ms)
Shutdown server ...
DpModState: buffer in state MBUF_PREPARED
NiBufSend starting
NiIWrite: write 110, 1 packs, MESG_IO, hdl 3, data complete
MsINiWrite: sent 110 bytes
MsIModState: change state to SHUTDOWN
DpModState: change server state from STARTING to SHUTDOWN
Switch off Shared memory profiling
ShmProtect( 57, 3 )
ShmProtect(SHM_PROFILE, SHM_PROT_RW
ShmProtect( 57, 1 )
ShmProtect(SHM_PROFILE, SHM_PROT_RD
DpWakeUpWps: wake up all wp's
Stop work processes...
Stop gateway
killing process (484) (SOFT_KILL)
Stop icman
killing process (1156) (SOFT_KILL)
Terminate gui connections
Process lives (PID:484 HANDLE:1592)
waiting for termination of gateway
NiWait: sleep (1000 msecs) ...
NiISelect: timeout 1000 ms
NiISelect: maximum fd=1621
NiISelect: read-mask is NULL
NiISelect: write-mask is NULL
Tue Mar 15 12:44:36 2005
NiISelect: TIMEOUT occured (1000 ms)
Process died (PID:484 HANDLE:1592)
Process died (PID:1156 HANDLE:1584)
DpHalt: cancel all lcom connections
MPI CancelAll 2 -> 0
MPI DeleteAll 2 -> 0
NiIMyHostName: hostname = 'jdcbw'
AdGetSelfIdentRecord: > <
AdCvtRecToExt: opcode 60 (AD_SELFIDENT), ser 0, ex 0, errno 0
AdCvtRecToExt: opcode 4 (AD_STARTSTOP), ser 0, ex 0, errno 0
DpConvertRequest: net size = 163 bytes
NiBufSend starting
NiIWrite: write 562, 1 packs, MESG_IO, hdl 3, data complete
MsINiWrite: sent 562 bytes
send msg (len 110+452) to name -, type 4, key -
detach from message server
***LOG Q0M=> DpMsDetach, ms_detach ()
NiBufSend starting
NiIWrite: write 110, 1 packs, MESG_IO, hdl 3, data complete
MsINiWrite: sent 110 bytes
MsIDetach: send logout to msg_server
MsIDetach: call exit function
DpMsShutdownHook called
NiSelClear: removed hdl 3 from selectset
MBUF state OFF
AdGetSelfIdentRecord: > <
AdCvtRecToExt: opcode 60 (AD_SELFIDENT), ser 0, ex 0, errno 0
AdCvtRecToExt: opcode 40 (AD_MSBUF), ser 0, ex 0, errno 0
AdCvtRecToExt: opcode 40 (AD_MSBUF), ser 0, ex 0, errno 0
blks_in_queue/wp_ca_blk_no/wp_max_no = 1/300/8
LOCK WP ca_blk 1
make DISP owner of wp_ca_blk 1
DpRqPutIntoQueue: put request into queue (reqtype 1, prio LOW, rq_id 19)
MBUF component DOWN
NiBufClose: clear extensions for hdl 3
NiBufSetStat: bufstat of hdl 3 changed from OK to OFF
NiICloseHandle: shutdown and close hdl 3 / socket 1600
MsIDetach: detach MS-system
EsCleanup ....
***LOG Q05=> DpHalt, DPStop ( 3848)
Good Bye .....
OK,
am i wrong or could be a problem with the listener or with the dns entries? it is a demo system, where the host is also a dns server.
where can i find this trace file?AT LAST,
i solved the problem.
i searched in the oss for
"ORA-12541: TNS:no listener"
and found the OSS NOTE 609332.
the reason was that the TNS Listener Service wasn´t started.
so i suggest, that you adjust the starting options for this listener service to "automatically".
cheers. -
Java Dispatcher and Server0 is getting stopped
Hi,
I have changed the password of admin/password/EC6 and jdbc/pool/EC6/Password by loggin into config tool and selecting Secure Store & restarted the java instance.
SDM is starting fine but dispatcher & server0 is getting stopped.
Pls. Find the contents of "std_server0.out"
stdout/stderr redirect
node name : server0
pid : 34028
system name : EC6
system nr. : 02
started at : Thu Jun 11 08:45:30 2009
Reserved 1610612736 (0x60000000) bytes before loading DLLs.
[Thr 64260] MtxInit: 10001 0 0
CompilerOracle: exclude com/sapportals/portal/pb/layout/taglib/ContainerTag addIviewResources
CompilerOracle: exclude com/sap/engine/services/keystore/impl/security/CodeBasedSecurityConnector getApplicationDomain
CompilerOracle: exclude com/sap/engine/services/rmi_p4/P4StubSkeletonGenerator generateStub
CompilerOracle: exclude com/sapportals/portal/prt/util/StringUtils escapeToJS
CompilerOracle: exclude com/sapportals/portal/prt/core/broker/PortalServiceItem startServices
CompilerOracle: exclude com/sap/engine/services/webservices/server/deploy/WSConfigurationHandler downloadFile
CompilerOracle: exclude com/sapportals/portal/prt/jndisupport/util/AbstractHierarchicalContext lookup
SAP J2EE Engine Version 7.00 PatchLevel is starting...
Loading: LogManager ... 578 ms.
Loading: PoolManager ... 16 ms.
Loading: ApplicationThreadManager ... 125 ms.
Loading: ThreadManager ... 31 ms.
Loading: IpVerificationManager ... 31 ms.
Loading: ClassLoaderManager ... 31 ms.
Loading: ClusterManager ... 328 ms.
Loading: LockingManager ... 94 ms.
Loading: ConfigurationManager ...
Loading: ConfigurationManager returned false!
Kernel not loaded. System halted.
stdout/stderr redirect
node name : server0
pid : 34028
system name : EC6
system nr. : 02
started at : Thu Jun 11 08:45:40 2009
Reserved 1610612736 (0x60000000) bytes before loading DLLs.
[Thr 60832] MtxInit: 10001 0 0
CompilerOracle: exclude com/sapportals/portal/pb/layout/taglib/ContainerTag addIviewResources
CompilerOracle: exclude com/sap/engine/services/keystore/impl/security/CodeBasedSecurityConnector getApplicationDomain
CompilerOracle: exclude com/sap/engine/services/rmi_p4/P4StubSkeletonGenerator generateStub
CompilerOracle: exclude com/sapportals/portal/prt/util/StringUtils escapeToJS
CompilerOracle: exclude com/sapportals/portal/prt/core/broker/PortalServiceItem startServices
CompilerOracle: exclude com/sap/engine/services/webservices/server/deploy/WSConfigurationHandler downloadFile
CompilerOracle: exclude com/sapportals/portal/prt/jndisupport/util/AbstractHierarchicalContext lookup
SAP J2EE Engine Version 7.00 PatchLevel is starting...
Loading: LogManager ... 563 ms.
Loading: PoolManager ... 16 ms.
Loading: ApplicationThreadManager ... 109 ms.
Loading: ThreadManager ... 31 ms.
Loading: IpVerificationManager ... 31 ms.
Loading: ClassLoaderManager ... 16 ms.
Loading: ClusterManager ... 375 ms.
Loading: LockingManager ... 94 ms.
Loading: ConfigurationManager ...
Loading: ConfigurationManager returned false!
Kernel not loaded. System halted.
Pls. find the content of In "dev_w0" file:
M Thu Jun 11 07:57:47 2009
M *** ERROR => SosIAnchorArrayCreatable: T15/M0 in state cancel [thxxtool2.c 947]
M
M Thu Jun 11 08:04:00 2009
M *** WARNING => ThSndDelUser: delete client/user 100/J2EE_ADMIN (T17) on server IGATESAP07_EC6_02
M
M Thu Jun 11 08:13:17 2009
M TskhLoop: waited 1 seconds for arrival of softcancel signalA
A Thu Jun 11 08:42:44 2009
A A GENER request remote generation: SAPLMLSR.
C
C Thu Jun 11 08:43:24 2009
C build_stmt: reallocating stmt buffer: 3584 -> 4591 characters
C build_stmt: reallocating stmt buffer: 256 -> 2000 characters
Please suggest me on this
Thanks,
SubbuHi Saurabh,
I have changed the password of SAPSR3DB as per the note and then java dispatcher and server0 has come up..
Could you please clarify whats the need again to change the passowrd of SAP<SID>DB and also pls. suggest me the procedure and the need to do the following:
Please note that once you have stopped the instance, please also remove the shared memory so that we can ensure that no more conflicts will be occurred
Thanks,
Subbu -
To all
The problem is that my request dispatching is not forwarding the request and I haven't got a clue why. I have a upload servlet which is working fine as it parses the request and the forwards you to the same jsp page or the next jsp page according to what values it extracts. However I have set up a bean to display the contentType() of each request which is sent to it from the jsp pages, however nothing is displayed when the request is forwarded from the upload servlet. this is what is happening .....
public class upload extends HttpServlet {
public void doPost( HttpServletRequest req, HttpServletResponse res ) throws ServletException, IOException {
HttpServletRequest request = _req;
HttpServletResponse response = _res;
parseMultiForm pMF = new parseMultiForm( _req );
Hashtable values = new Hashtable();
String param;
while ( ( param = pMF.getNextParameter()) != null) {
String value = pMF.getParameter();
values.put(param, value);
if (values.containsKey("submit")) {
String url = (String) values.get("reload");
RequestDispatcher dispatcher = getServletContext().getRequestDispatcher("/" + url);
dispatcher.forward(request, response);
if (values.containsKey("continue")) {
String url = (String) values.get("next");
RequestDispatcher dispatcher = getServletContext().getRequestDispatcher("/" + url);
dispatcher.forward(request, response);
The above servlet forwards the request to a jsp which does the following....
<jsp:useBean id="info" scope="session" class="InfoBean" />
<jsp:setProperty name="info" property="request" value="<%= request %>" />
However infoBean does not receive anything when the request is forwarded from the servlet??
Can anyone see anything obviously wrong?? is it to do with the JSP asking for the <%= request> and not receiving it because the request dispatcher has altered it in some way?
Thanks in advance anyone
Andy.I have exactly the same problem. I can�t make the servlet pass the request object to the target jsp.
Try not changing the request nor the response. Unfortunatelly due to the kind of job i do inside my servlet there's no way i can't touch the request. So if you can make it work with mi advice please let me know. -
Passing Attribute in Request Dispatcher
Hi,
I am using servlet#1 to pass the value of an Attribute to servlet#2
servlet #1 code
ServletContext sc = getServletContext();
request.setAttribute("name",value);
RequestDispatcher rd = sc.getRequestDispatcher(url);
rd.forward(request, response);
servlet #2 code
ServletContext sc = getServletContext();
String string = (String) sc.getAttribute("name");
when I run servlet #1 request dispatcher forwards request and response to servlet #2 but the Attribute value is not passed along
what am I missing ?
thanks VERY much for your response in advance and past responses !!
RickHi rickdd,
In servlet #2 you should get the value from
servlet's Request object rather than ServletContext,
because parameter is set with Request Object not with
ServletContext.
So modifiy the code as given below...
/* Parameter is passed with servlet's Request Object.
* So Next line needs to be commented.
//ServletContext sc = getServletContext();
//Here get the value from servlet's Request Object
String string = request.getAttribute("name");
This will work.
Regards
Goodieguy -
Diff. between Web Dispatcher and ICM
hi gurus,
Please help to understand the Difference between Web Dispatcher and ICM in whereas ways like
When do we use which tool?
The architec differences between them?
Anything more that would help me to understand better!
Thanks a lot in advance
Regards
SekharHi
At top level, Web dispatcher is like simple dispatcher which handles all the internet related requests like Http, Https, Smtp.
ICM is Internet connection Manager which is used to administer the flow between SAP and outside world using HTTP, HTTPs, SMTP
Please read these
Web Dispatcher
http://help.sap.com/saphelp_47x200/helpdata/en/42/5cfd3b0e59774ee10000000a114084/content.htm
ICM
http://help.sap.com/saphelp_nw04/helpdata/en/0a/a7903febb15a7be10000000a11405a/content.htm -
Request dispatcher method--help needs
Hi,
I used request dispatcher method to redirect the from one servlet to another servlet.But when i use get method it is functioning well.
But when i use post method it is giving error...
I need to use post method...
How can it possible..
Thanks,
Babu Byou have code for request.RequestDispatcher.forward(""); method in both doPost and
doGet methods for the servlet. However your initial form is not set with method
to POST.
By default the method is GET and it will execute code in doGet and not code in
doPost() method. so in your first form use method as POST instead of keeping
it to default i.e no method specified.
let me know where are you using RequestDispatcher.
//rohit -
Request dispatcher vs redirect
if there is the request dispatcher already,
then what exactly is the point of having response.sendRedirect(url)
is there any situation in which one should use sendRedirect over using the
request dispatcher?
thanks
-Tao
Tao Ge
Software Engineer
[email protected]
(310) 883-1837
NextEngine, Inc.
401 Wilshire Blvd., Ninth Floor
Santa Monica, California 90401
This email is intended only for the use of the individual or entity to which
it is addressed and contains information that is privileged and
confidential. If the reader of this message is not the intended recipient
or the employee or agent responsible for delivering the message to the
intended recipient, you are hereby notified that any review, use, disclosure
or distribution of this communication is strictly prohibited. If you have
received this communication in error, please notify the sender immediately
by reply email and destroy all copies of the original message.
Thank you.
1. You cannot forward to a file thats not this server. But you can use
sendRedirect
2. By using sendRedirect you are also informing browser regarding change of the
location.
3. When you post data to server and use of browser relaod posts data back to
server in case of dispatcher.
Thanks,
Kumar.
"Tao Y. Ge" wrote:
> if there is the request dispatcher already,
> then what exactly is the point of having response.sendRedirect(url)
>
> is there any situation in which one should use sendRedirect over using the
> request dispatcher?
>
> thanks
>
> -Tao
>
> --
>
> Tao Ge
> Software Engineer
> [email protected]
> (310) 883-1837
>
> NextEngine, Inc.
> 401 Wilshire Blvd., Ninth Floor
> Santa Monica, California 90401
>
> ---
> This email is intended only for the use of the individual or entity to which
> it is addressed and contains information that is privileged and
> confidential. If the reader of this message is not the intended recipient
> or the employee or agent responsible for delivering the message to the
> intended recipient, you are hereby notified that any review, use, disclosure
> or distribution of this communication is strictly prohibited. If you have
> received this communication in error, please notify the sender immediately
> by reply email and destroy all copies of the original message.
> Thank you.
-
How to store the value of request message and use it in Response mapping
Hi All,
We have an requirement where we need to store the data coming in Request Mapping and use the stored value in Response Mapping. Can anybody help us in how to proceed?
Thanks
SujataHi!
In Mapping you may use the RFC Lookup function to store values in database table during request mapping and to read values from database table during response mapping.
You can also use an ABAP or Java Mapping "in front of your" message mapping to store/read the values.
You can also use an Adapter Module (if applicable for the adapter type you use) and/or a UDF to store the data e.g. in Dynmaic Configuration Header of Request Message and to read these data from Dynamic Configuration Header of Response Message. But this works only for synchronous scenarios (and it means overhead in your message traffic).
Hope these thinkings help you o find the most suitable way for your concrete scenario!
Regards,
Volker
Note:
These techniques help you to avoid using BPM.
Edited by: Volker Kolberg on Aug 27, 2009 11:18 AM -
How to get EBS Concurrent Request number (and more) into BIP Report Layout
hi,
I have been using BIP for 9 months but have several years experience of Reports 6i development (matrix, drill-thru etc). We are beginning to use BI Publisher with EBS and would like to be able to incorporate the Concurrent Request number into the report layout (preferably in the footer area). I have looked back over previous forum posts and have found mention of how to get the report parameters into the XML datastream and template, but nothing for the Concurrent Request number. I've also looked at the DevTools/Reports forum but cannot see anything similar there.
It would add a lot of value to generated output for end-users if this information (+ environment/instance name etc) can be put into the layout.
SeanHi
Create a data query in data template/reports as
select fnd_global.conc_request_id "REQUEST_ID" from dual
and this will pick up the request id and then u can use it in the RTF layout
Hope this helps..
Maybe you are looking for
-
Question about WLAN Site Surveys with 802.11n APs - 1142s
I do site surveys a little differently that everyone else nowadays, I believe. In the past, I used an autonomous 1230 or 1240, but now I use a lightweight 1142. I configure a port in a room to be on the AP VLAN and I connect my 1142 to the port and
-
I can no longer open pdf files since updating my OS
I can no longer open pdf's since updating to iOS 5.0.1 - how can this be corrected?
-
The title I want to see is being affected with icons (ex. the ones of my dock), in other parts it shows my background, i`ll try to give you a shot
-
Weird mapping problem : suggested approach?
I have a set of related processes activated by a top level process. One of the processes runs three mappings which pull data from SqlServer via three corresponding SqlServer views. The filters for the three mappings ask for rows greater than a partic
-
Using the pen tool, how best should I build or construct this image?
Hello, I'm trying to recreate a certain image with the pen tool. I have already tried using Live Trace using the "Simple Trace" setting. Live Trace did a pretty good job but not with enough accuracy or fidelity to the original image as I would like.