Problem with sendRedirect using relative URL in WebLogic 5.1 with SP7 & 8
I patched to SP 7 (and also 8), and the request.sendRedirect() with relative
URL failed. The browser simply displayed "404 - Page not found".
This problem only happens in a cluster environment attached to a web server.
SP6 or earlier does not have such problem.
I noticed that the latest SP always formats the URL and returns it as a full
absolute URL to the browser. The problem is it uses the Weblogic Server host
URL where the request is processed (not the Web Server host URL) which is
not visible to the internet.
Is it possibly a bug in SP?
I patched to SP 7 (and also 8), and the request.sendRedirect() with relative
URL failed. The browser simply displayed "404 - Page not found".
This problem only happens in a cluster environment attached to a web server.
SP6 or earlier does not have such problem.
I noticed that the latest SP always formats the URL and returns it as a full
absolute URL to the browser. The problem is it uses the Weblogic Server host
URL where the request is processed (not the Web Server host URL) which is
not visible to the internet.
Is it possibly a bug in SP?
Similar Messages
-
Problem JDBC Connection using OCI Driver on Weblogic Portal on Linux
Hi Team,
I want a JDBC connection using OCI Driver in Weblogic Portal 8.1 sp4 on Linux. When I had tested using JDBC connection using Plain Java Code it is working. Also when I create the OCI Connection Weblogic Connection Pool it is working.
But My Requirement is to create the connection using Java Code in Portal Application
But When I create OCI connection in the code it is throwing NO SUITABLE DRIVER Found.
---------- Code in Plain Java Code ------------ Same code is used in Weblogic Portal Application --------------------------------
public static void main(String[] args) throws Exception{
Class.forName("oracle.jdbc.driver.OracleDriver");
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
String url="jdbc:oracle:oci8:@TESTDB";
Properties props = new Properties();
props.put("user","scott");
props.put("password","tiger");
conn=DriverManager.getConnection(url,props);
When I am using the same code in Weblogic Portal and Deployed on Weblogic Portal Server 8.1 SP4 it is throwing following error.
-------------- Exception on Server Log --------------------
java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getConnection(Ljava.lang.String;Ljava.util.Properties;Ljava.lang.ClassLoader;)Ljava.sql.Connection;(Unknown Source)
at java.sql.DriverManager.getConnection(Ljava.lang.String;Ljava.util.Properties;)Ljava.sql.Connection;(Unknown Source)
My Environment is
LINUX
Weblogic 8.1 SP4
Oracle 9i Client on Same Machine
Oracle 10g Server on Different Machine
My Environment Variables on the Linux Server also set properly as following
PATH=/apps/pmaaum/ant/apache-ant-1.6.5/bin:.:/apps/beahomedev/jdk142_05/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/apps/oracle/ora9i/product/9.2.0/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/apps/oracle/ora9i/bin
LD_LIBRARY_PATH=/usr/lib:/apps/oracle/ora9i/product/9.2.0/lib:/apps/oracle/ora9i/product/9.2.0/lib32:/apps/oracle/ora9i/product/9.2.0/rdbms/lib:/usr/openwin/lib:/apps/oracle/ora9i/product/9.2.0/jdbc/lib
JAVA_HOME=/apps/beahomedev/jdk142_05
JDBC_LIB=/apps/oracle/ora9i/product/9.2.0/jdbc/lib
CLASSPATH=:.:/apps/beahomedev/jdk142_05/lib/rt.jar:/apps/oracle/ora9i/product/9.2.0/jdbc/lib/classes12.jar
Please help me, Let me know if you required anything.
Thanks in Advance
Vishnu
Edited by: vishnuk on Oct 23, 2009 4:07 AM
Edited by: vishnuk on Oct 23, 2009 4:10 AMHi Vishnu
Looks like a classloader issue. BEA class loader is very tricky. Any jar added manually in classpath, will end up loading only those classes. Any imports that we have in any of those classes do not get loaded. Anyhow, coming to your point, add classes12.jar inside your portal web project Web-Inf/lib folder and see if that helps. Usually thats where we put all the JARs for 8.1 SPxx applications. If this still breaks, then remove the jar from web-inf/lib folder and add under your portal app App-Inf/lib folder. First try with app-inf/lib folder having this jar. If not then with web-inf/lib. Basically web-inf is specific to that web app only. If you have a different app having this jdbc code, then put under app-inf/lib folder. Make sure that you remove the classes12.jar that you added in classpath either in env variable or in setdomainenv.cmd file.
When weblogic uses native OCI Drivers, it refers to jars at this location: ....\beawlp814\weblogic81\server\ext\jdbc\oracle\10g or 9g. Try using one of these jars and see if that works. Most of the times I used these jars only for oracle specific native drivers.
Word of caution. Try to use Connection Pool and a DataSource created in weblogic console for your jdbc code. This Datasource can still use the Oracle drivers that you want (instead of BEA Weblogic wrapper oci drivers) located in above location. Use JNDI Lookup and get Datasource and then connection. This is more recommended approach with many advantages then using DriverManager approach..
Goud -
I use xml file to save configuration and saved /WEB-INF/config.xml
In my java class i can't use that file with relative url.
document=builder.parse(new File("/WEB-INF/config.xml"));Try something like this:
String thisPath = this.getClass().getResource("").getPath();
document=builder.parse(new File(thisPath + "/WEB-INF/config.xml")); -
Need help using GO URL to display table view (with sorting, pagination)
I'm trying to use the GO URL to get to a table view with the sorting and pagination functionality intact, but I don't want all the other links and input fields of a dashboard.
Is this possible?
I'm trying to consume table view report in an IFRAME within my web application using the GO URL, but without any luck.
For proof of concept, I'm trying to extend Sample Lite\KPI\Sample PKI which I can display as a dashboard in my IFRAME, but I would like the table view with the column sorting and pagination functionality intact without the dashboard links and fields up at the top.
I'm new to Oracle BI, specific explanation and step by step examples would help me tremendously.
I am on Oracle 11g v11.1.7.0 on RH linux.
The GO URL I am using:
http://myserver:port/analytics/saw.dll?Go&NQUser=username&NQPassword=password&Path=/shared/Sample%20Lite/KPIs/Sample%20KPI&ViewName=Table
Thanks.
BrianTABLES: bkpf.
TYPES: BEGIN OF ty_bkpf ,
belnr LIKE bkpf-belnr,
bukrs LIKE bkpf-bukrs,
gjahr LIKE bkpf-gjahr,
bldat LIKE bkpf-bldat,
waers LIKE bkpf-waers,
END OF ty_bkpf.
TYPES: BEGIN OF ty_bseg ,
buzei LIKE bseg-buzei,
shkzg LIKE bseg-shkzg,
END OF ty_bseg.
DATA: it_bkpf TYPE STANDARD TABLE OF ty_bkpf ,
it_bseg TYPE STANDARD TABLE OF ty_bseg .
DATA: ibinding TYPE salv_t_hierseq_binding.
DATA: xbinding TYPE salv_s_hierseq_binding.
DATA: gr_table TYPE REF TO cl_salv_hierseq_table.
SELECT-OPTIONS:
ndoc FOR bkpf-belnr,
empr FOR bkpf-bukrs,
anod FOR bkpf-gjahr.
START-OF-SELECTION.
PERFORM get_data.
PERFORM relat_tables.
PERFORM display_alv.
*& Form get_data
FORM get_data .
SELECT belnr bukrs gjahr bldat waers
INTO TABLE it_bkpf
FROM bkpf
WHERE belnr IN ndoc AND
bukrs IN empr AND
gjahr IN anod.
IF sy-subrc = 0.
SELECT buzei shkzg
FROM bseg
INTO TABLE it_bseg
FOR ALL ENTRIES IN it_bkpf
WHERE belnr = it_bkpf-belnr AND
bukrs = it_bkpf-bukrs AND
gjahr = it_bkpf-gjahr.
ENDIF.
ENDFORM." get_data
*& Form relat_tables
FORM relat_tables .
xbinding-master = 'BUKRS'.
xbinding-slave = 'BUKRS'.
APPEND xbinding TO ibinding.
ENDFORM. " relat_tables
*& Form display_alv
FORM display_alv .
cl_salv_hierseq_table=>factory(
EXPORTING
t_binding_level1_level2 = ibinding
IMPORTING
r_hierseq = gr_table
CHANGING
t_table_level1 = it_bkpf
t_table_level2 = it_bseg
gr_table->display( ).
ENDFORM. " display_alv -
Problem Sending Mail (using Mail 2.1.1) from Cafes with Wireless Internet
Hi,
I have a Comcast.net mail account and Cable Internet at home. Receiving and sending mail works perfectly.
When I take my MacBook into any cafe that has wireless internet -- and I've tried this in multiple cities -- I can receive mail fine, but when I try to send mail I get an error. The error message doesn't seem to have anything of use in it -- just "Cannot send the message with server smtp.comcast.net."
When I then take the MacBook home, it instantly sends all the emails with no problem.
Any ideas?
Thanks.Hello Ron.
> I know that some ISP's require authentication when using their servers from outside their network.
It isn't your ISP that may require authentication with their SMTP server when connected to the internet via a different ISP, it is the ISP used for connecting to the internet if different from your own that dictates or may require this. If your ISP or the email account provider for the account does not support separate authentication with their SMTP server, trying to use authentication for the SMTP server will not work.
Is Comcast your ISP? If not, is your ISP's SMTP server authenticated and does your ISP support using or not using separate authentication with their SMTP server?
Time Warner (RoadRunner) is my ISP and RR does not have have an authenticated SMTP nor do they support it. -
Is there any way to launch another module with a relative URL?
I'm trying to connect the end of one module to the beginning of another (daisy-chain.)
I've been trying to do it by putting a button on the last slide and then setting the button to open the other module's htm file. But it seems to only take specific and not relative URLs. This is problematic because my client has the material first on a test server and then on a live server, so the URLs will be changing.
Is there another way to do this where I can use relative URLs or some other method?
Thank you!Apologies if I misunderstood, and you have already set up Flash Security to trust the publish folder location. In general, when someone asks a question on this forum about problems getting links to work between Captivate modules the reason is almost always that they are testing the links from locally published files or from a LAN server but they haven't set up Flash Global Security to trust the publish folder location. That's why it's the first thing I quote.
Captivate DOES allow you to use relative links to load other daisy-chained content. For example, if you have a SWF file from one course module calling content from another module in a nearby folder, you can use relative link addressing to open the other file. The format of the link slashes is different depending on whether you are serving from a LAN or a web server. The web uses forward slashes. LANs use back slashes.
If you ARE trying to test Captivate HTM/SWF content from a local drive or LAN server you must get Flash Global Security set up first. If you intend to serve your content to end users from a LAN, then you have no choice except to have all learners consuming that content to set their Flash Global Security settings to trust the drive or folder containing that content. This is not a Captivate issue, it's a Flash Player issue, and it's the result of security measures taken by Adobe several years ago to prevent Flash content from being used maliciously as a virus. The unfortunate downside is that it also limits the usability of Flash content if served from a LAN. But you need to remember that Flash was really designed as a web-based format. So you find that content served from a web server instead of a LAN server has no issues with Flash Security. -
Can't view dashboard with relative url in BI 4 Launchpad
I created a dashboard using BIWS connections and I am able to preview the dashboard when i have the full path of Web Service URL but when I use the relative url and publish to launchpad I get the "Cannot access external data......, Unable to load URL:/dswsbobje/Services/Session..." error message. Any ideas on how to solve this?
ThanksAre you trying to preview the dashboard from dashboard designer tool ? If yes, then you must have a full web service url, otherwise, it will not be able to resolve the server and port.
But, if you use relative URL and export the same to BO repository, you will be able to view the same by logging into BI Launchpad. There it can resolve the server name and port from existing session. -
Problem while creating partner link using https URL
Hi,
To create the partnerlink using https URL, I had done the following:
-Imported the self signed certificate into the OraBPELPM_\jdk\jre\lib\security\cacert
-Added following entries in OraBPELPM_1\integration\jdev\jdev\bin\jdev.conf
AddVMOption -Djavax.net.ssl.keyStore=E:\OraBPELPM_1\jdk\jre\lib\security\cacert
AddVMOption -Djavax.net.ssl.keyStorePassword=esbtest123
I am not able to create partner link using URL https://localhost/orabpel/default/ErrorHandlerBPEL/1.0/ErrorHandlerBPEL?wsdl .
Able to create partnerlink using same URL if I replace https with http.
Did I miss any other configuration that needs to done to create partnerlink using https in JDeveloper BPEL Designer.
Thanks,
-VidyaHi,
I too have the same issue. Appriciate if you share some knowledge on this issue.
Thanks
Aravinda -
SharePoint sites and the use of Relative URLs
In our sites the designers coded all URLs as FQDN (e.g.
http://servername/sites/mysite1....). This includes URLs in webparts too. We now want to transfer the site to a new SharePoint box, of a different name, and power down the original box. We ran a test and, sure enough, the FQDN URLs
hardcoded in the copied webparts point back to the original box. This means when the old box is eventually powered down the new one won't work. My question is this: should our Designer have used relative URLs (e.g. ../sites/mysite1) everywhere
instead of referencing the server name?
TIA,
edm2yes... absolutely.
Better yet, there are special URLs that designers can use, which are relative to the SITE COLLECTION, or even the SITE/SUBSITE... which are really better to use, should you ever need to copy the site collection, or change its URL.
Also, SharePoint should use an ALIAS name, not a server name.
Scott Brickey
MCTS, MCPD, MCITP
www.sbrickey.com
Strategic Data Systems - for all your SharePoint needs -
Usage of relative url across site collections in sharepoint 2010
Hi
I have a webapplication with 2 sitecollections. In one sitecollection, created a link by going to navigation under sitesettings.
Added relative url to map to 2nd site collection. Eg: /sites/site2/page1.aspx
But by doing so, it is giving error. Help me out how to give relative url pointing to different site collection from another sitecolleciton.
Thanks in advance
NainaSay, Site Collection 1 URL: http://sitecollection1.domain.com/
Site Collection 2 URL : https://sitecollection2.domain.com/
Now, on "Site Collection 1", In Site Actions-->Site Settings-->Navigation, when you use "relative URLs", it will always refer to the current Site Collection i.e Relative URL "/sites/site2" will always be "http://sitecollection1.domain.com/sites/site2".
Anyways, what is the "requirement". What are you trying to solve by using "relative URL" for Site Collection 2 on Navigation of Site Collection 1. Reason for asking is, there might be different approach for your "requirement".
Naveed.DG MCITP, MCTS -SharePoint 2010 Administrator "Vote As Helpful" If it helps!! -
How to play http live streaming with VLC using FMS 4.0
Hello,
i'm using FMS 4 and i need to play my http live streaming event with VLC
I have had the following result with firefox using the url : http://myip:8134/live/events/livepkgr.old/events/_definst_/liveevent.f4m
<manifest>
<id>
livepkgr.old/events/_definst_/liveevent
</id><mimeType>
</mimeType><streamType>
live
</streamType><duration>
0
</duration><media streamId="livestream1" bitrate="100" url="../../../../streams/livepkgr.old/streams/_definst_/livestream1/livestream1" bootstrapInfoId="bootstrap7580"><metadata>
AgAKb25NZXRhRGF0YQgAAAAAAAhkdXJhdGlvbgAAAAAAAAAAAAAFd2lkdGgAQHQAAAAAAAAABmhlaWdodABAbgAAA AAAAAAMdmlkZW9jb2RlY2lkAgAESDI2NAAKYXZjcHJvZmlsZQBAU0AAAAAAAAAIYXZjbGV2ZWwAQD8AAAAAAAAADnZ pZGVvZnJhbWVyYXRlAP/4AAAAAAAAAAl0cmFja2luZm8KAAAAAgMABmxlbmd0aAAAAAAAAAAAAAAJdGltZXNjYWxlA ECPQAAAAAAAAAhsYW5ndWFnZQIAA2VuZwAACQMABmxlbmd0aAAAAAAAAAAAAAAJdGltZXNjYWxlAECPQAAAAAAAAAh sYW5ndWFnZQIAA2VuZwAACQANc21wdGVUaW1lSW5mbwMAC3NtcHRlT2Zmc2V0AAAAAAAAAAAAAAAJAAdjdXN0ZGVmC gAAAAAAAAk=
</metadata></media><media streamId="livestream2" bitrate="200"><metadata>
</metadata></media><media streamId="livestream3" bitrate="350"><metadata>
</metadata></media><bootstrapInfo profile="named" url="../../../../streams/livepkgr.old/streams/_definst_/livestream/livestream.bootstrap" id="bootstrap3136">
</bootstrapInfo><media streamId="livestream" url="../../../../streams/livepkgr.old/streams/_definst_/livestream/livestream" bootstrapInfoId="bootstrap3136"><metadata>
AgAKb25NZXRhRGF0YQgAAAAAAAhkdXJhdGlvbgAAAAAAAAAAAAAFd2lkdGgAQHQAAAAAAAAABmhlaWdodABAbgAAA AAAAAAMdmlkZW9jb2RlY2lkAgAESDI2NAAKYXZjcHJvZmlsZQBAU0AAAAAAAAAIYXZjbGV2ZWwAQD8AAAAAAAAADnZ pZGVvZnJhbWVyYXRlAP/4AAAAAAAAAAl0cmFja2luZm8KAAAAAgMABmxlbmd0aAAAAAAAAAAAAAAJdGltZXNjYWxlA ECPQAAAAAAAAAhsYW5ndWFnZQIAA2VuZwAACQMABmxlbmd0aAAAAAAAAAAAAAAJdGltZXNjYWxlAECPQAAAAAAAAAh sYW5ndWFnZQIAA2VuZwAACQANc21wdGVUaW1lSW5mbwMAC3NtcHRlT2Zmc2V0AAAAAAAAAAAAAAAJAAdjdXN0ZGVmC gAAAAAAAAk=
</metadata></media><bootstrapInfo profile="named" url="../../../../streams/livepkgr.old/streams/_definst_/livestream1/livestream1.bootstrap " id="bootstrap7580">
</bootstrapInfo>
</manifest>
How can i play that event with VLC?
Regards,Problem solved - thanks to JayCharles. I forgot to set the live attribute. Here's the working code:
<?xml version="1.0"?>
<!-- controls\videodisplay\VideoDisplayFMS.mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:HBox>
<mx:VideoDisplay
live="true"
autoBandWidthDetection="false"
source="rtmp://localhost/live/livestream"/>
</mx:HBox>
</mx:Application> -
Open discoverer worksheet from javacript with the help of URL
i want open my report from javacript with the help of URl to open the report with wbk(workbookid) and the paramenter for that report...
http://server/discoverer/viewer?cn=connid&event=openWorksheet&wsk=worksheet1
this url above opens the worksheet
but if the worksheet have parmeter to be passed if i giv like this
http://server/discoverer/viewer?cn=connid&event=openWorksheet&wsk=worksheet1&qp_12=101015
_12 is parameter name and 101015 is the value.
pls help me to sort out the problemi want open my report from javacript with the help of URl to open the report with wbk(workbookid) and the paramenter for that report...
http://server/discoverer/viewer?cn=connid&event=openWorksheet&wsk=worksheet1
this url above opens the worksheet
but if the worksheet have parmeter to be passed if i giv like this
http://server/discoverer/viewer?cn=connid&event=openWorksheet&wsk=worksheet1&qp_12=101015
_12 is parameter name and 101015 is the value.
pls help me to sort out the problem -
Passing variables using the URL
in the past I have alsways used internal navigation methods
within Flex - i.e. viewStacks, and linkBars etc... but I need to
use an (existing) external menu and link (communicate) it to my
Flex Application.....
is it possible to pass variable to (into) a flex 2
application using a URL
e.g.
http://...............
?page=homepage
picking this variable ("page") up and getting its value (in
this case "homepage")
and then use the variable in the Flex application to display
the relevent component...... ???
basically, I am trying to navigate through a Flex application
using an external menu system etc...... and displaying the
particular components within the Flex application relevent to the
select links (within the external menu system) communicating the
two using a URL etc......
thanks,
Jon.Passing data into a Flex app using the url on startup
requires working with the html handler, causing it to build
flashvars in the Embed or Object tag. Inside Flex, these are
accessed using the Application.parameters array.
But it sounds like you want ongoing communication between the
Flex app and the browser. For this you should use
ExternalInterface. I have not used it at all, so I can't be any
specific help.
Tracy -
Use XML Digital Signature(Apache XML security) with Applet
I have problem when I use xml-security-1_2_1 library from Apache with applet and access denied errors occur.
6 May 2005 10:06:45 org.apache.xml.security.Init init
SEVERE: Bad:
java.security.AccessControlException: access denied (java.util.PropertyPermission org.apache.xml.security.resource.config read)
bla bla....
How should I do ? Please! T_T and thank you ..An applet cannot read the local file system, connect to any other computer than the one
it came from or read properties it's not supposed to read. And I think it cannot write to any
property.
If you sign the applet or set up a policy for it the applet can do the same as an application
allthough the jre will still check the stack trace if the entire stack has the same privileges
as you signed applet.
http://forum.java.sun.com/thread.jsp?forum=63&thread=524815
second post and last post for the java class file -
Am I the only one experiencing battery drain with the 6.1.3 upgrade? It went from 100% to 63% in 7 hours WITH NO USE! I've had worse luck with the i5 than the i4. This is the first time I regret being in a two year contract. I might add that this is my 3rd i5
So now 12 days later and another replacement I'm still having issues and apple still isn't helping. My phone has started shutting off unexpectedly again today. Does anyone have any suggestions on where to go from here?
<Edited by Host>
Maybe you are looking for
-
having trouble installing ProIX on new Windows 8 machine after XP crash. Get almost ll of the way through and get an error box ... contact system support. Only way out is to abort and then it un-installs. Wondering if a licensing max issue since w
-
Exporting from 9iEE on W2KServer to 8iEE on Solaris8
Due to machine restrictions (i.e., we didn't have enough machines at the time) I developed an application using a 9iEE Database running on a W2K Server (My Workstation). I exported the dump file after completeing. I am trying to import it into an 8.1
-
Can't get trace statements omitted from SWC
I'm trying to create a component. I'm using Flash CS4 and AS2. I've been using trace statements while developing and now I want to deliver it, without trace statements. I went to the Publish Settings and checked Omit trace actions and unchecked Permi
-
Can't edit gradient or brush tool.
Im not sure what did I change but now when I use the gradient or brush tool the pin and stripes that used to show that allowed you to edit and select them no longer shows. I NEED IT BACK, HELP/
-
My Office 2007 now crashes every time I "Save". "Office has stopped working. Looking for a solution. Several minutes" kind of notice appears. It soon restarts with an autosaved choice in the left column. I select it and the page is back to normal w