Skip to Main Content

Application Development Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

OHS failed to load css file due to URL too long

Cuong PhamMar 31 2013 — edited Apr 8 2013
Hi everyone.
I hate weblogic and webcenter rendered URL, it is so long and so unfriendly. I have a webcenter portal with two applications and both of them run on clustered managed servers.
To load balance between managed server, I use OHS with mod_wl. My portal application has web root /portal, so that I have to use URL_rewrite method to change / to /portal. My url rewrite rule like that:
RewriteRule ^/$       /portal/ [R]
Almost things work fine, but my application has been lost css file, I tried to track back problem on Oracle WebCache and Http Server. Finally, I found the problem on OHS when it tried to load URL, this error log message:
[OHS] [ERROR:32] [OHS-9999] [core.c] [host_id: cnth-webportal02] [host_addr: 10.0.11.12] [pid: 2032] [tid: 6] [user: oracle] [VirtualHost: main] (78)File name too long:  Cannot map GET /portal/resourceproxy/~.portletId~3D~252Foracle~252Fadf~252Fportlet~252FscopedMD~252Fs8bba98ff_4cbb_40b8_beee_296c916a23ed~252Fportlets~252FDsVbQppl_aac156d0_7228_4d64_8d64_540747b24374~26clientId~3D376889213~26resourceId~3Dwsrp-url~25253Dhttp~2525253A~2525252F~2525252Fcnth-webap01~2525253A7005~2525252Fdsvbqpplportlet~2525252Fportlets~2525252Fresources~2525252Fadf~2525252Fstyles~2525252Fcache~2525252Fportal-desktop-p3hck1-en-ltr-gecko-prtl.css~252526wsrp-resourceID~25253D~252526wsrp-preferOperation~25253Dfalse~252526wsrp-requiresRewrite~25253Dtrue~252526wsrp-resourceState~25253D~252526wsrp-resourceCacheability~25253D~26baseUrl~3Dhttp~253A~252F~252F10.0.11.12~252Fportal~252Ffaces~252Fvi~252Fvim~252Fvipages_trangchu~252Fvanbanquyphamphapluat~252FPage21a40ab3_13db990577d__7ffe~253F_adf.ctrl-state~253Da6u2s5q4o_4~2526_afrWindowId~253Dq4kb7nftg_835~2526_afrLoop~253D95429295792500~2526_afrWindowMode~253D0~26locale~3Den~26checksum~3Da2e2f3fca8c0242727c089582d5766a64621549b/portal-desktop-p3hck1-en-ltr-gecko-prtl.css HTTP/1.1 to file, referer: http://10.0.11.12/portal/adfportlet?_adfp_request_id=1364703594900&_adfp_icr=1
I've google for it but cannot found useful solution yet. Have you ever face to it ? How to solve it ?

PS:
Does this problem relate to mod_rewrite ? If true, how to direct root / to /portal without that module ?
I see that portal project have to have an web root name that cannot be /. So with out rewrite module, my users cannot use http://portal-host/ to entry my portal.
I have another issue with OHS, that is my servlet cannot work with OHS. My servlet (used to provide link to download file) work perfectly on managed servers but not on OHS load balancer. I am wondering that it is URL to long, too.
Please help me
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 6 2013
Added on Mar 31 2013
1 comment
505 views