Why jws doesn't start when i use jsp as dynamic jnlp?

hello everyone,
i use a jsp as dynamic jnlp to resolve the relative codebase problem,but jws can not start. while i use jnlp, there is no problem.i check the http head the jsp reterned,it seems no problem (it returns "application/x-java-jnlp-file" content type), but jws does not start and the browser opens it as a plan text. below is the http head the jsp and jnlp returned, i can not see any obvious difference that prevent jws start. hope somobody can help me, thanks.
the jsp http head:
HTTP/1.1 200 OK
Content-Type: application/x-java-jnlp-file
Date: Wed, 07 Aug 2002 02:52:31 GMT
Server: Apache Tomcat/4.0.2 (HTTP/1.1 Connector)
Connection: close
Set-Cookie: JSESSIONID=EDAB1A3175B3D319BA33AE090EB973BF;Path=/webims
the jnlp http head:
HTTP/1.1 200 OK
Content-Type: application/x-java-jnlp-file
Content-Length: 372
Date: Wed, 07 Aug 2002 02:49:58 GMT
Server: Apache Tomcat/4.0.2 (HTTP/1.1 Connector)
Connection: close
Last-Modified: Wed, 07 Aug 2002 02:35:19 GMT
ETag: "372-1028687719000"
the response body is same. here is part of the jsp file:
<%@ page contentType="application/x-java-jnlp-file"%>
<%
StringBuffer codebaseBuffer = new StringBuffer();
codebaseBuffer.append(!request.isSecure() ? "http://" : "https://");
codebaseBuffer.append(request.getServerName());
if (request.getServerPort() != (!request.isSecure() ? 80 : 443))
codebaseBuffer.append(':');
codebaseBuffer.append(request.getServerPort());
codebaseBuffer.append(request.getContextPath());
%>
<?xml version="1.0" encoding="UTF-8"?>
<jnlp codebase="<%=codebaseBuffer.toString()%>" href="<%=request.getRequestURI()%>">

I get the same problem since I moved to Tomcat 4.1.18.
The difference is that when I look at a jnlp, I get
Date: Tue, 18 Mar 2003 10:58:25 GMT
Server: Apache/1.3.26 (Unix) mod_jk/1.2.0 mod_ssl/2.8.10 OpenSSL/0.9.6b PHP/4.2.3 FrontPage/5.0.2.2510
Content-Length: 1355
Content-Type: application/x-java-jnlp-file
Last-Modified: Mon, 17 Mar 2003 15:58:46 GMT
Client-Date: Tue, 18 Mar 2003 10:58:25 GMT
Client-Peer: 192.197.110.222:80
and at a jsp:
Date: Tue, 18 Mar 2003 11:06:10 GMT
Server: Apache/1.3.26 (Unix) mod_jk/1.2.0 mod_ssl/2.8.10 OpenSSL/0.9.6b PHP/4.2.3 FrontPage/5.0.2.2510
Content-Type: application/x-java-jnlp-file;charset=ISO-8859-1
Client-Date: Tue, 18 Mar 2003 11:06:10 GMT
Client-Peer: 192.197.110.222:80
Set-Cookie: JSESSIONID=026BF3209EC094A4045F1D37C2A0E98B;Path=/
Could the difference be ;charset=ISO-8859-1
How to remove that, in my jsp I just have :
<% response.setContentType("application/x-java-jnlp-file"); %>
Help
Benoit

Similar Messages

  • Doesn't start when starting as administrator. Error Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system.

    Update firefox, it asked me to update flash, I tried to update flash but it said I had to close firefox. A box came up and said the Flash install would continue when I closed firefox. I closed all firefox windows and no update of flash occurred. I tried relaunching firefox but got the "Doesn't start when starting as administrator. Error Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system." message. I rebooted the system, no improvement. I tried to run firefox as administrator and got the same message. Either I find a fix or I won't be able to use firefox and will have to go back to ie.

    -> press '''CTRL''' + '''SHIFT''' + '''ESC''' to Open Task Manager -> Processes tab -> right-click '''firefox.exe''' and click '''End Process Tree''' -> close Task Manager
    Troubleshooting extensions and themes
    * https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes
    Troubleshooting plugins
    * https://support.mozilla.com/en-US/kb/Troubleshooting%20plugins
    Check and tell if its working.

  • Oracle doesn't started when When I reboot the Server.

    Dear All,
    I have installed 10g using ASM and Oracle-managed files on a Windows Server 2003 (Second Edition , Service Pack 1 ) system . I have put no data in, and I take the defaults. It works fine - until the system reboots.
    Oracle doesn't started when When I reboot the Server.
    Here is what I get from sqlplus, following the instructions to start an ASM instance:
    SQL*Plus: Release 10.1.0.2.0 - Production on Mon Oct 11 10:47:53 2006
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    SQL> startup
    ORA-01078: failure in processing system parameters
    ORA-01565: error in identifying file '+DATA0/10g/spfile10g.ora'
    ORA-17503: ksfdopn:2 Failed to open file +DATA0/10g/spfile10g.ora
    ORA-15077: could not locate ASM instance serving a required diskgroup
    Thanks for helping,
    Debraj Banerjee

    It look like your ASM instance is not yet started. Try the following:
    $>export ORACLE_SID=+ASM (set ORACLE_SID=+ASM if you are on Windows)
    $>sqlplus /nolog
    SQL>startupThen you start up your other instance.

  • TS1398 The internet on my Iphone 4 doesn't work when I use the Wifi

    The internet on my Iphone 4 doesn't work when I use the Wifi at home. My Mac works fine. On the Iphone it shows it's connected but it doesn't open any app. Anyone knows what to do? Thanks

    Ÿ. If you tap and hold the "Y" does it appear? If so, just slide your finger up to select.

  • HT1349 hi ,i just got a Parallels desktop 7 and i try to install it but the cd doesn't start when its inserted.how can i solve this? the macbook pro i just got it few days back so its the last version..thx

    hi ,i just got a Parallels desktop 7 and i try to install it but the cd doesn't start when its inserted.how can i solve this? the macbook pro i just got it few days back so its the last version..thx

    Hi,just now i open it with finder and it started downloading!!!
      Thank you,very new to mac:)

  • The mark of increasing volume doesn't appear when i use the back light key

    the mark of increasing volume doesn't appear when i use the back light key

    Hi,
    Please write your notebook product number (p/n), which system are you using and country of purchase.
    Resource:
    How to Locate the Notebook product number (p/n)
    ** Say thanks by clicking the "Thumb up" icon which is on the left. **
    ** Make it easier for other people to find solutions, by marking my answer with "Accept as Solution" if it solves your issue. **

  • Why does CS6 automatically start when i plug in my Canon Eos camera and how do I stop it

    Why does CS6 automatically start when i plug in my Canon Eos camera and how do I stop it from doing so?

    Autostart is controlled by your operating system. check the relevant system control panel or right-click the drive letter of your memory card to change these options in teh properties.
    Mylenium

  • Why in Ai CC 2014, when I use a pathfinder tool on two objects, their anchor points snap slightly off from where they were? I'm looking under all the snap to options under VIEW & cannot find the culprit. Please help!

    Why in Ai CC 2014, when I use a pathfinder tool on two objects, their anchor points snap slightly off from where they were? I'm looking under all the snap to options under VIEW & cannot find the culprit. Please help!

    You're welcome.
    There are a couple of issues connected to it:
    http://www.vektorgarten.de/problems-align-to-pixel-grid.html
    I don't think that list is complete

  • Can anyone answer why photoshop CS3 shuts down when I use the scanner?

    Can anyone help me with why photoshop CS3 shuts down when I use the scanner? I recently upgraded to OS X Yosemite.

    Ask in the PS forum and be much more specific. You have not provided exact system information, crash logs, scanner details. That said, this may be a compatibility issue that can't be overcome.
    Mylenium

  • Music doesn't start when selected from playlist have to push pause then start. Always playing one track behind what is on screen

    Music doesn't start when selected from playlist have to push pause then start. Always playing one track behind what is on screen as my I-pad worksorks fine

    Same problem here, since upgrading to IOS-5.  Whenever I try to shuffle or play a genius mix (or even simply play an album) the iPod will skip the first one or two songs, play one song and then 'crash'.  I say 'crash' because it selects the next song and then nothing happens - the player isn't paused, and it appears to think it's playing, but the time bar doesn't change and no sounds come out.  Occasionally I've noticed the album artwork is wrong too.
    Rebooting does NOT work - I've tried it a number of times.
    Is this just an iPod problem??  If so, I would be surprised if Apple do anything quickly about it - they're more worried about iPhone problems I expect, and we (iPod users) are just the poor relations...  C'mon Apple - SORT IT OUT!!!!

  • Why does it say headphones when i use the volume buttons

    why does it say headphones when i use the volume buttons instead of volume when the headphones are not plucked in?

    - Try cleaning out/blowing out the headphone jack. Try inserting/removing the plug a dozen times or so. There is a little switch in the headphone jack that disconnects the speaker when the headphone jack is inserted.
    Try the following to rule out a software problem
    - Reset the iPod. Nothing will be lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup
    - Restore to factory settings/new iPod.
    - Make an appointment at the Genius Bar of an Apple store. Seems you have a bad headphone jack.
    Apple Retail Store - Genius Bar
    If not under warranty Apple will exchange your iPod for a refurbished one for this price. They do not fix yours.
    Apple - iPod Repair price                  
    A third-party place like the following will replace the jack for less. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens
    Replace the jack yourself
    iPod Touch Repair – iFixit

  • My macbook pro automatically goes into safe mode and doesn't start. I use mavericks.  what to do? ?

    my macbook pro automatically goes into safe mode and doesn't start. I use mavericks. What to do??

    Can you boot into your Recovery partition (hold down the command and R keys whilst booting)?
    Call back - you'll be able to connect to this forum from Safari whilst in Recovery.
    Clinton

  • Why the iPhone gets heated when someone uses the internet?

    Why the iPhone gets heated when someone uses the internet?

    because that's what happens when use electronic devices...they warm up.

  • When to use jsp,and when to use servlet?

    I think that jsp and servlet can realize the same functions, because when run a jsp, it is transferred to a servlet program, so when to use jsp and when to use servlet?
    I am now developing the input interface for a website, I just use jsp and javabean to connect to weblogic and database, and I didn't use servlet, Is there any unseemliness?
    Thank you!

    IMHO I use servlets to control the flow between my jsp's based on a number of factors in a webapp. For instance, user authorization. If a user has the authorization to conduct various administrative functions on an application (like change user rights, reset passwords etc) they will have access to specific buttons or links on some screens that others will not. I use servlets to establish what access rights a user has and direct them to the appropriate pages. I also use servlets to test data validity on form input screens. I know that I can also do this with JavaScript but that can be disabled by the client and in order to prevent that I also double check the form input from a servlet. All my jsp's do is display the results of a business process (which is held in a JavaBean or EJB) and the servlets act as the controllers for the application, connecting to multiple databases, verifying application state, flow control etc. I try to keep the jsp as simple as possible as some of them are maintained by html developers who lack the necessary experience to write java code. I hope this helps.

  • Help: Pointbase db doesn't start when launching SP4 portal

    Hi,
    I downloaded WL platform SP4 today and installed (before the installation I uninstalled SP2)in my laptop. When I launch the examples portal, the pointbase db doesn't start. I tried both SP2 and SP3 in my laptop and both worked. The error messages below are directly copied from the console. My understanding is the portal server startup will automatically start pointbase db (I didn't do any configuration yet). Anybody know the problem and solution?
    My laptop config:
    Win XP, SP2, 1.6 GHz, 1GB memory
    I am the admin user.
    Thanks a lot!!
    Error messages from the launching console:
    <Jul 6, 2005 6:00:54 PM PDT> <Warning> <JDBC> <BEA-001129> <Received exception w
    hile creating connection for pool "cgPool": SQL-server rejected establishment of
    SQL-connection. Pointbase Server may not be running on localhost at port 9093.>
    <Jul 6, 2005 6:01:28 PM PDT> <Warning> <JDBC> <BEA-001129> <Received exception w
    hile creating connection for pool "portalPool": SQL-server rejected establishmen
    t of SQL-connection. Pointbase Server may not be running on localhost at port 90
    93.>
    <Jul 6, 2005 6:01:34 PM PDT> <Alert> <JMS> <BEA-040052> <JMSServer "cgJMSServer"
    store failed to open java.io.IOException: JMS JDBC store, connection pool = <cg
    JMSPool-nonXA>, prefix = <weblogic>: connection pool does not exist.
    java.io.IOException: JMS JDBC store, connection pool = <cgJMSPool-nonXA>, prefix
    = <weblogic>: connection pool does not exist
    at weblogic.jms.store.JDBCIOStream.throwIOException(JDBCIOStream.java:48
    8)
    at weblogic.jms.store.JDBCIOStream.checkPool(JDBCIOStream.java:1599)
    at weblogic.jms.store.JDBCIOStream.open(JDBCIOStream.java:548)
    at weblogic.jms.store.JMSStore.open(JMSStore.java:224)
    at weblogic.jms.backend.BEStore.open(BEStore.java:262)
    at weblogic.jms.backend.BEStore.start(BEStore.java:151)
    at weblogic.jms.backend.BackEnd.openStores(BackEnd.java:1171)
    at weblogic.jms.backend.BackEnd.resume(BackEnd.java:1290)
    at weblogic.jms.JMSService.addJMSServer(JMSService.java:2260)
    at weblogic.jms.JMSService.addDeployment(JMSService.java:2031)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
    oymentTarget.java:337)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Dep
    loymentTarget.java:597)
    at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeploy
    ments(DeploymentTarget.java:575)
    at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(
    DeploymentTarget.java:241)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
    eanImpl.java:754)
    at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
    .java:733)
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
    ionMBeanImpl.java:509)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
    60)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
    28)
    at weblogic.management.internal.RemoteMBeanServerImpl.private_invoke(Rem
    oteMBeanServerImpl.java:988)
    at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBean
    ServerImpl.java:946)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:954)
    at weblogic.management.internal.MBeanProxy.invokeForCachingStub(MBeanPro
    xy.java:481)
    at weblogic.management.configuration.ServerMBean_Stub.updateDeployments(
    ServerMBean_Stub.java:7691)
    at weblogic.management.deploy.slave.SlaveDeployer.updateServerDeployment
    s(SlaveDeployer.java:1304)
    at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.j
    ava:347)
    at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resum
    e(DeploymentManagerServerLifeCycleImpl.java:229)
    at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131)
    at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:966)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:361)
    at weblogic.Server.main(Server.java:32)
    >

    The exception doesn't tell me much more than the DB connection / pool couldn't connect to the db.
    Sometimes solving these types of problems where it should work, this works everywhere else, so what could be wrong here... Let me suggest that you install a new domain using a new root directory. IE c:\bea814 and not reuse c:\bea.
    I'm guessing that an essential script or property file was not overwritten by the 814 install.
    JBTW, 814 pointbase is a new version and is run on a new port from prior 8.x versions, the new port is 9093, where prior versions was 9092.
    A diag. is after you start via, startWebLogic.cmd, to open a DOS window and run this command:
    netstat -an
    Look for a LISTEN on port 9093
    This would confirm that 814's pointbase is started and there's a configuration issue with the connection pools.
    Good luck, curt

Maybe you are looking for

  • Problem in using quick and advanced search based on transient items

    Hi everybody I want to have an unbound string item in my form and allow users to use advanced search and quick search on that item. I read the following post About advanced search and added a transient item on view object and overrode the advance sea

  • APP-Vendor banks

    Hi SAP folks, I have a question here. Can anybody pl send me your thoughts/ideas on the following thread....... - Vendor is having 5 bank accounts at different locations and having 10 open items. Now while running APP client wants to pay 3 invoices w

  • BI Publisher is not showing Oracle BI Answers

    Hi, I've OBIEE 10g running on linux. I'm trying to publish one of the reports developed in OBIEE by using BI Publisher. In 'Data Model' -> 'New Data Set' when I use 'Type' as 'Oracel BI Answers' and then click on the 'flashlight' icon next to 'Oracle

  • Content in library available in iCloud?

    If I have music in my iTunes library that was not purchased from the iTunes store, is there any way I can add it to iCloud so that it is available to all my other devices?

  • Authentication iMessage Error Yosemite

    I have a collection of Apple kit here (Who doesn't eh!) but have an issue with JUST ONE of them a MacPro using a FireWire Camera. With the Messages Application. When I try and log into iMessage via Messages/Preferences I get the following message. "C