Stan Ca

Greenhorn
+ Follow
since Jul 13, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Stan Ca

Hello,

I am running Oracle Application Server 10.1.3.0.0, with several applications deployed to it. In specific, I have three web-applications (that serve as interface to an EJB server), and I want these accessed differently through the web browser. Since the Oracle HTTP Server is a modified Apache Server, I thought it'd be appropriate to post this in the Apache forum.

Anyway, the question is, how do I go about configuring the following setup?

Application1 has a webapp that is deployed with contextroot1. Now, I want this application accessible through the following URL:
http://<host> (but not through https://<host>, because that should end up at Application2!)
So, no context root.

Application2 has a webapp that is deployed with contextroot2. This should be accessible through the following URL:
https://<host> (but not through http://<host>, because that should end up at Application1!)
Again, no context root.

Application3 has a webapp that is deployed with contextroot3. This should be accessible through the following URL:
https://<host>/contextroot3 (but not through http://<host>/contextroot3!)

I'm guessing I'll need to configure some stuff in the httpd.conf file, but I'm unsure as to what exactly. If someone could give me an example, with the setup described above, I'd be very grateful.

Thanks!

Regards,
Stan
17 years ago
Apparently, it's a bug in the OC4J. Everything works fine, just as long as you don't use SSL. Ain't that great?

Regards,
Stan
17 years ago
Hello,

I've got 2 Linux (RHEL 3) servers with Oracle Application Server 10.1.3.0.0 installed. Both of these are part of a cluster -- node 1 is specified as administrative node, node 2 isn't. However, when I try to deploy to the "home" OC4J process of both through the Enterprise Manager, I get the following error... Same thing when I try to undeploy an application that is deployed to both instances. Funny thing is, despite the exception in the server output, the EM claims the application is (un)deployed successfully. And this seems to be correct, since I can access my application on both nodes seperately. Still, the undeploy does give some problems, as it doesn't seem to get undeployed completely on my non-administrative node (node2).

SEVERE: ClusterDeploymentFactory.getDeploymentManager Cannot connect to any of the OC4J process(es) in the cluster
oracle.oc4j.admin.deploy.spi.exceptions.DeploymentRuntimeException: Cannot connect to any of the OC4J process(es) in the cluster
at oracle.oc4j.admin.deploy.spi.ClusterHelper.getLocalClusterDomain(ClusterHelper.java:353)
at oracle.oc4j.admin.deploy.spi.ClusterDeploymentManager.<init>(ClusterDeploymentManager.java:119)
at oracle.oc4j.admin.deploy.spi.factories.ClusterDeploymentFactory.getDeploymentManager(ClusterDeploymentFactory.java:198)
at javax.enterprise.deploy.shared.factories.DeploymentFactoryManager.getDeploymentManager(DeploymentFactoryManager.java:112)
at oracle.sysman.ias.studio.j2ee.deploy.oc4j.OC4JDeploymentContextSupport._getManager(OC4JDeploymentContextSupport.java:235)
at oracle.sysman.ias.studio.j2ee.deploy.oc4j.OC4JDeploymentContextSupport.getConnectedDeploymentManager(OC4JDeploymentContextSupport.java:156)
at oracle.sysman.ias.studio.j2ee.deploy.oc4j.IASClusterDeploymentContextSupport.getConnectedDeploymentManager(IASClusterDeploymentContextSupport.java:128)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at oracle.sysman.ias.studio.jmx.JMXContextHandler.invoke(JMXContextHandler.java:147)
at $Proxy0.getConnectedDeploymentManager(Unknown Source)
at oracle.sysman.ias.studio.j2ee.deploy.DeployModel.<init>(DeployModel.java:169)
at oracle.sysman.ias.studio.j2ee.deploy.DeployPageUtil.createCachedDeployModel(DeployPageUtil.java:261)
at oracle.sysman.ias.studio.j2ee.deploy.UndeployPageHelper.checkSessionValidity(UndeployPageHelper.java:106)
at oracle.sysman.ias.studio.j2ee.shared.ui.PageHelperBase.initializeRequestHandling(PageHelperBase.java:196)
at oracle.sysman.ias.studio.j2ee.shared.ui.PageHelperBase.validate(PageHelperBase.java:378)
at oracle.sysman.ias.studio.sdk.AbstractController.validate(AbstractController.java:635)
at oracle.sysman.ias.studio.j2ee.deploy.DeployController.validate(DeployController.java:194)
at oracle.sysman.emSDK.svlt.PageHandler.handleRequest(PageHandler.java:371)
at oracle.sysman.emSDK.svlt.EMServlet.myDoGet(EMServlet.java:747)
at oracle.sysman.emSDK.svlt.EMServlet.doGet(EMServlet.java:283)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:719)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:299)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:187)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)

On startup, I see the following:
Node 1:
06/07/31 10:30:09 [INFO] UDP - -socket information:
local_addr=192.168.200.73:35342, mcast_addr=225.1.2.3:45671, bind_addr=/192.168.200.73, ttl=32
sock: bound to 192.168.200.73:35342, receive buffer size=64000, send buffer size=32000
mcast_recv_sock: bound to 192.168.200.73:45671, send buffer size=131071, receive buffer size=80000
mcast_send_sock: bound to 192.168.200.73:35343, send buffer size=131071, receive buffer size=80000
Node 2:
06/07/31 10:28:38 [INFO] UDP - -socket information:
local_addr=192.168.200.74:35338, mcast_addr=225.1.2.3:45671, bind_addr=/192.168.200.74, ttl=32
sock: bound to 192.168.200.74:35338, receive buffer size=64000, send buffer size=32000
mcast_recv_sock: bound to 192.168.200.74:45671, send buffer size=131071, receive buffer size=80000
mcast_send_sock: bound to 192.168.200.74:35339, send buffer size=131071, receive buffer size=80000

In opmn.xml, this is defined on both nodes:
<notification-server interface="ipv4">
<port local="6100" remote="6200" request="6003"/>
<ssl enabled="true" wallet-file="$ORACLE_HOME/opmn/conf/ssl.wlt/default"/>
<topology>
<discover list="*225.1.2.3:4567"/>
</topology>
</notification-server>

In the application.xml of the home interface on both:
<cluster allow-colocation="false" write-quota="1">
<replication-policy trigger="onRequestEnd" scope="allAttributes"/>
<protocol>
<multicast ip="225.1.2.3" port="45671"/>
</protocol>
</cluster>


Any idea what the problem could be? Is this OAS related? Maybe something in the config of my cluster?
Or lies the problem in the Linux config? The /etc/hosts file?
Any suggestions are welcome. Thanks.

Regards,
Stan
17 years ago
Hello,

I recently installed the Standalone OC4j 10.1.3.0.0... I have a two EJB applications with a web-app running in this container (one in HTTP, the other in HTTPS). Both are set as default-web-app in their appropriate *-web-site.xml files.

Now, occassionally -- can't really figure out what triggers it -- I get this NullpointerException about OC4J not being able to update an access log.

The server is started with the following command:



This is the server output:



And this is what I find in the log.xml:



Anyone have any clue as to what might be the problem?

Regards,
Stan
[ July 17, 2006: Message edited by: Stan Ca ]
17 years ago
Okay, sorry, merely skimmed the contents of that name policy.
Never meant to be obtrusive (or offensive or whatever).

Anyway, changed the name again. Please review it to see whether it is "real" enough. Unfortunately, the name in the posts doesn't seem to get updated (though the topic starter name is correct). Need I create a new login?

EDIT: never mind, the display name in the posts did change too.
EDIT2: slightly changed name again; sorry for that.

[ July 13, 2006: Message edited by: Stan Ca ]
[ July 13, 2006: Message edited by: Stan Ca ]
17 years ago
Found it.

Some silly setting in the httpd.conf configuration file of the Apache server was the cause. Namely UseCanonicalName, which defaults to 'On' but should be 'Off' in this case.
17 years ago
Hello all,

First off, I'd like to say that I did search these forums for a solution to my problem, but none seemed similar to mine. Also, I'm using Oracle Application Server 10.1.3 (which uses a modified Apache HTTP server), and the problem might just as well lie there. Anyway, I though I'd ask here to see if anyone has a clue as to what might be the problem.

When users arrive at the web app, index.jsp is loaded, which is a page containing several frames. They enter their user name and password here, and press the "login" button. The data is posted to a page called LoginAction.jsp. This checks the request data, and then performs a sendRedirect. However, the page doesn't seem to be redirected (or cannot be found).

This is the redirect code in LoginAction.jsp:



As you can see, I do have a "return;" behind the sendRedirect(). Now, when I login with IE, I get an "Action canceled" page, stating IE was "unable to link the web page you requested". When I use Mozilla, nothing happens after pressing the button.

Now, when using a <jsp:forward>, it does work. You may call me lazy, but I used the sendRedirect throughout several web apps, and I would like to get this working.

Something else I should mention... We're behind a firewall here. The server is inside the LAN (obviously), and when I browse to it from within the LAN, it works just fine. When I use an outside line, and enter through the firewall to access the web app, the sendRedirect fails.

Reading over this post, it's probably not the code that's at fault, but some setting somewhere... On the http server or on the firewall...

Anyone have a clue?
Also, would you advise me to use <jsp:forward> instead of sendRedirect?

Thanks,

sca

[ July 13, 2006: Message edited by: ]

[ July 13, 2006: Message edited by: ]
[ July 13, 2006: Message edited by: ]
17 years ago