|
IOTN :: Field Book :: ORACLE 
 |
weblogic cluster session share [ ¼¼¼Ç °øÀ¯ login.jsp login chk, weblogic.management.ManagementException: [Deployer:149188] ]
|
ÃÖ±æÈ£
[LIST]
|
2018-03-03 09:25:44, Á¶È¸ : 124,710 |

http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/12-ManageSessions--4478/session.htm
weblogic session share test
managed server#1,#2 ·Î±×ÀÎ ¼¼¼Ç À¯Áö
cat > index.jsp
<%@page contentType="text/html" pageEncoding="UTF-8"%> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>JSP Page</title> </head> <body> <h1>Login Page</h1> <center> <h2>Signup Details</h2> <form action="LoginCheck.jsp" method="post"> <br/>Username:<input type="text" name="username"> <br/>Password:<input type="password" name="password"> <br/><input type="submit" value="Submit"> </form> </center> </body> </html>
cat > LoginCheck.jsp
<%@page contentType="text/html" pageEncoding="UTF-8"%> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>JSP Page</title> </head> <body>
<% String username=request.getParameter("username");
String password=request.getParameter("password");
if((username.equals("test") && password.equals("test")))
{ session.setAttribute("username",username);
response.sendRedirect("Home.jsp"); }
else
response.sendRedirect("Error.jsp"); %> </body> </html>
cat > Home.jsp
<%@page contentType="text/html" pageEncoding="UTF-8" errorPage="Error.jsp"%> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>JSP Page</title> </head> <body> <br/><br/><br/><br/><br/> <center> <h2>
<% String a=session.getAttribute("username").toString(); out.println("Hello "+a); %> </h2> <br/> <br/> <br/><br/><br/><br/><br/> <a href="Logout.jsp">Logout</a> </center> </body> </html>
cat > Logout.jsp
<%@page contentType="text/html" pageEncoding="UTF-8"%> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>JSP Page</title> </head> <body>
<% session.removeAttribute("username");
session.removeAttribute("password");
session.invalidate(); %> <h1>Logout was done successfully.</h1> </body> </html>
cat > Error.jsp
<%@page contentType="text/html" pageEncoding="UTF-8"%> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>JSP Page</title> </head> <body> <h1>Some Error has occured,Please try again later...</h1> </body> </html>
. ./wls10301/wls10301/bin/setDomainEnv.sh
java weblogic.marathon.ddinit.WebInit login
vi login/WEB-INF/weblogic.xml
... ... ...
<context-root>/login</context-root>
<session-descriptor>
<persistent-store-type>replicated_if_clustered</persistent-store-type>
</session-descriptor>
</weblogic-web-app>
find login
login
login/index.jsp
login/LoginCheck.jsp
login/Home.jsp
login/Logout.jsp
login/Error.jsp
login/WEB-INF
login/WEB-INF/web.xml
login/WEB-INF/weblogic.xml
´Ù¸¥Á¡ nodemanager »ç¿ëÇØ¼ ¼ºñ½º ½ÃÀÛ
´ë»óÀ» AdminServer À¸·Î ÇØµµ °°Àº ¿¡·¯ È®ÀÎ
vi login/WEB-INF/weblogic.xml: <context-root>/login</context-root>
<<<<<<<<< µ¿±âÈ ¾ÈµÇ¸é ¹ß»ý, console-¹èÄ¡-sv_name-±¸¼º-ÀϹÝ-ÄÁÅØ½ºÆ® ·çÆ®:/login È®ÀÎ ÇÊ¿ä
console log
------------
weblogic.management.ManagementException: [Deployer:149188]No application named 'login' exists for operation start. Operation can not be performed until server is restarted.
managed log
------------
<Mar 3, 2018 7:41:23 AM KST> <Warning> <Munger> <BEA-2156203> <A version attribute was not found in element web-app in the deployment descriptor in /wls/10.3/login/WEB-INF/web.xml. A version attribute is required, but this version of the Weblogic Server will assume that the JEE5 is used. Future versions of the Weblogic Server will reject descriptors that do not specify the JEE version.>
Á¶Ä¡: restart all server [ WLS admin,managed server ]
source
Ãâó: http://mrbool.com/how-to-create-a-login-form-with-jsp/25685
error
Ãâó: Deploying application gives error: 'Weblogic.management.ManagementException: [Deployer:149188]No Application Named 'otp-service-1.0' (¹®¼ ID 2341643.1)
| 216.73.216.139
|
|
 |
Copyright 1999-2025 Zeroboard / skin by ÃÖ±æÈ£(gilho.kr@gmail.com)
|
|
|