weblogic

Verifying if request source comes from Internet or Intranet

扶醉桌前 提交于 2020-01-06 04:12:12
问题 I have application running on Internet which contains some admin module also. I don't want to let the user access my admin module on Internet. I want that request coming from intranet can access admin module. Is there any way to control this without developing a new application which serves admin component? 回答1: If you are using servlets, you could add a filter and analyze the client IP address (see this question). Be aware that there is no guarantee you will determine the correct address by

Invalidate Session at all Cluster Weblogic

半世苍凉 提交于 2020-01-06 02:56:05
问题 i try to save user session in a hashmap on every cluster. and when i need to invalidate it, i will take specified session id. and invalidate it where the session created with normal way to invalidate session. public class SessionListener implements HttpSessionListener { public HashMap<String, HttpSession> sessionHolder = new HashMap<String, HttpSession>(); @Override public void sessionCreated(HttpSessionEvent se) { sessionHolder.put(se.getSession().getId(), se.getSession()); } public void

Internet explorer 9 will not recognize doctype sent by servlet from weblogic server and renders in document mode IE7 - extra characters before start?

懵懂的女人 提交于 2020-01-05 13:13:30
问题 PROBLEM Internet Explorer 9 does not take the <!DOCTYPE html> into account in the same way when I have my page locally or on my server. I made a simple test page to highlight the problem: EDIT: updated simple test page with meta tag and css link <!DOCTYPE html> <html lang="en"> <head> <link rel="stylesheet" href="css/environmentinfo.css" /> <meta http-equiv="x-ua-compatible" content="IE=edge"/> </head> <body> <script> document.write(document.compatMode); document.write('<br/>'); document

Mismatch between between client and server - Soap

南楼画角 提交于 2020-01-05 12:28:13
问题 Server is running on Content-Type : Text/xml(soap 1.1) while client is trying to communicate using application/soap+xml(soap 1.2) . This is throwing following http error HTTP/1.1 415 Unsupported Media Type Date: Thu, 24 Jul 2014 15:35:02 GMT Content-Length: 0 X-Powered-By: Servlet/3.0 JSP/2.2 So is there any way to resolve this issue? The webservice is jax-ws webservice deployed on weblogic server configuration. We would like the issue to be resolved with changing the client code. How can we

Debug WebLogic app on Managed Server on Eclipse

不问归期 提交于 2020-01-05 08:42:32
问题 I'm trying to debug a J2EE web application currently running on WebLogic, using Eclipse. My configuration is the following: AdminServer on localhost:7001 for the WebLogic admin console MyAppServer on localhost:8001 where I've deployed my web application. Now i'd like to debug the app on Eclipse (I'm using Oracle WebLogic Pack for Eclipse). I've found a lot of references on the web, but none of them seems working. maybe because my app is on a managed server... For example, I've set the

Getting the jsp source code appended with the file content when I download files

女生的网名这么多〃 提交于 2020-01-05 08:09:21
问题 I am working on a File upload/download functionality, in Java using Struts2 framework, where we are uploading to and downloading from a remote server path. All seems to work fine when I check the functionality at my local machine with a local path as the destined path from where i am downloading and to which am uploading the files of any format. The development environment has JBoss server. But when I run the same over at the prod env, where the application is deployed in Weblogic server,

How to dynamically load server configurations depending on server/environment?

此生再无相见时 提交于 2020-01-04 14:31:39
问题 Currently I setup maven profiles to be able to deploy my project for different environments (dev, demo, staging, production, ...) and it works perfectly fine. But the issue is that for each module (web application) that I have, I need to copy/paste this configuration files ( they are all property files). This will be an overhead when I need to change an environment/server configuration (for example when a port number changes I need to redeploy all my EAR files). My question is, is there any

How to get username after login with FORM based authentication

社会主义新天地 提交于 2020-01-04 10:41:41
问题 I am following the link http://middlewaremagic.com/weblogic/?p=2034 to perform form based authentication. I have created a security realm then successfully delegate the authentication check to weblogic 10.3. Everything is fine, but I could not get username, HttpServletRequest->getRemoteUser() returns null. Do you have an idea how to get username after login? I am going to use username in every Managed bean to log user operations. EDIT: I have found my mistake that I invalidated the session

How to get username after login with FORM based authentication

你离开我真会死。 提交于 2020-01-04 10:39:14
问题 I am following the link http://middlewaremagic.com/weblogic/?p=2034 to perform form based authentication. I have created a security realm then successfully delegate the authentication check to weblogic 10.3. Everything is fine, but I could not get username, HttpServletRequest->getRemoteUser() returns null. Do you have an idea how to get username after login? I am going to use username in every Managed bean to log user operations. EDIT: I have found my mistake that I invalidated the session

Error 404--Not Found (while using apache and weblogic)

一世执手 提交于 2020-01-04 08:11:29
问题 I have an application deployed in weblogic, and am using apche server.Normally, when I enter the url for the application, it should display a jsp (1) kind of please wait then this one will redirect to another jsp (2). the problem is when I enter the url of the application, it displays jsp (1) "please wait" and while redirecting it gives the error (Error 404--Not Found). What do you think the problem is ? 回答1: A 404 simply means that the URL is invalid or that the resource actually isn't there