Signed Applet In Java Web Server
I have created signed applet signed by myself. It works fine with appletviewer as well as web browsers. Now I want to place this signed applet in Java webserver.
My queries are
1.Where to place this signed applet(Is it in publichtml Folder ????)
2.Where to place my certificate and policy files in server.
3 If I access this applet from any other machines(client)how to avoid Grant Permission Dialog box coming everytime.
Thanks
hi
i would like to ask you about the applet that you've signed, heve you uses the java.securitu
classes in it's code?? and how did u signed it. because i'm trying to sign an applet where i didn't use security classes, it runs with ie but it doesn't run with netscape even if i uses the netscape signing tool.
thanks for help
Similar Messages
-
Secure service in Java Web server 2.0
Hi all, I have installed a Java Web Server 2.0 without the secure service running, and everything works just fine.
Then I make a self-signed certificate with authstore, using key size 1024, MD5withRSA, hostname: <my computer> (testing on local net (maybe this is what fails?)), and all the other stuff. All looks good and certificate info looks like this:
Subject Information: CN=yodopc1, OU=SW dept, O=Yodoba, L=Z?rich, ST=Z?ric, C=CH
Issuer Information: CN=yodopc1, OU=SW dept, O=Yodoba, L=Z?rich, ST=Z?ric, C=CH
Dates Valid: Thu Jun 28 10:19:35 CEST 2001 --> Wed Sep 26 10:19:35 CEST 2001
Algorithm: MD5withRSA
Serial Number: 993716375
Then I exit, and restart (even tried rebooting machine).
Start webserver, type inn key password, and login to the Server admin applet. There it says:
Service -------------- Status ------ Port -- Network Address
Java web server ------ Terminated - -------
- Web service -------- Unknown --- 80 ----
- Secure Web service - Unknown --- 7070 --
If I try to start the server, it runs for about ten seconds before it is back to the same state again. Of course trying to access server through http(s)://localhost(:7070) results in a "Cannot find server..." If I delete the keys file in <JWS-root>, everything is back to where it was before I started creating the certificate.
I have seen that there are a lot of old (1-2 years old) Posts with similar and perhaps related issues, but none of witch have any replies that finds a solution. Hopefully someone can help my now...
All help and suggestion are Greatly appriciated.
SjurHi Sjurba,
Please follow this URL:
http://www.sun.com/software/jwebserver/faq/faq.html#f6
http://docs.iplanet.com/docs/manuals/messaging/sims35/install/postwa.doc6.html
Also read the below.
Client side workaround: Use Netscape Communicator 4.x instead of Netscape Navigator 3.x.
Java Web Server workaround: Use the VeriSign root certificate that is shipped in Java Web Server 1.1. Follow these instructions:
1.Copy or save the file named keys, located in the top level directory of your Java Web Server installation, to a secure place (for example, a floppy disk).
2.Locate the secure server certificate that VeriSign sent you.
3.Install Java Web Server 1.1 in a temporary directory. You don't need to run this server--you only need to run AuthStore to regenerate the keys file. (The install of
Java Web Server 1.1 does need not be on the same machine as the install of the Java Web Server 1.1.x that has the problem).
For the remainder of these instructions, 1.1.x server root is the installation directory of the Java Web Server 1.1.x that shows the problem. 1.1 server root is the
installation directory of Java Web Server 1.1
4.Copy the keys file from 1.1.x server root/ to 1.1 server root/.
5.Run AuthStore under 1.1 server root. AuthStore is in the bin directory. You will need to type in the server passphrase to launch AuthStore.
6.From the scrolling list, select the key that corresponds to the secure server certificate from VeriSign.
7.Click Import and type the full path of the certificate that you received from VeriSign.
8.Click Save to write a new keys file under 1.1 server root.
9.Click Exit.
10.Copy the new keys file from 1.1 server root/ to 1.1.x server root/.
11.Restart the Java Web Server 1.1.x under 1.1.x server root.
I hope this will help you.
Thanks
Bakrudeen
Technical Support Engineer
Sun MicroSystems Inc, India -
Problem installing Sun Java Web Server
Hi
I'm trying to install Sun Identity Server which need Sun Java Web Server...
I try to install identity server and web server using Sun Java Enterprise System Install Wizard...
When I came to page Identity Server:Sun Java System Web Server (3 of 6 ) and I entered Hostname, dir1.usmnet, I get an error pop-up window stating Host Name is not valid......but if I typed dir1.domain.com the error message didn' t appear.....
I'm using Solaris 9 on Intel platform. I have setup my network and able to ping to other valid hostname in my LAN....
FYI my network information are as follows
/etc/hosts
127.0.0.1 localhost
<my ip > dir dir.usmnet loghost
/etc/hostname.elxl0
dir1
/etc/resolv.conf
domain usmnet
nameserver <dns server ip>
search usmnet
I have also setup /etc/netmasks and /etc/defaultrouter
When I type the domainname command, nothing appeared
What when wrong, I could ping to my dns server and to other computer in this LAN, could anybody give a suggestion ?OK, found the solution by myself.
The Administrator's Guide mentiones the possibility to install a certificate with the wadm CLI, so I tried that:
wadm> install-cert -v --config=www -y server -n Server-Cert /www.crt
Please enter token-pin>
ADMIN4086: The Certificate could not be installedThe CLI Reference Manual says for the command install-cert, option --replace*:
"Note --replace option of install-cert CLI is deprecated
and currently using this option may not work as expected.
For replacing a CA-signed certificate, users should delete the
cert using delete-cert CLI and then install the new one
using install-cert CLI."
wadm> install-cert -v --config=www -y server -n Server-Cert --replace /www.crt
Please enter token-pin>
ADMIN4112: No Private key foundOK, so maybe if I had installed the first certificate (before generating the new CSR) that would have worked, I don't know.
Deleting the old cert doesn't work at once:
wadm> delete-cert -v --config=www Server-Cert
Please enter token-pin>
ADMIN4139: Certificate Server-Cert is being referred to by listeners: http-listener-2So before deleting you have to remove the certificate from the listener. Then:
wadm> delete-cert -v --config=www Server-Cert
Please enter token-pin>
CLI201 Command 'delete-cert' ran successfully
wadm> install-cert -v --config=www -y server -n Server-Cert /www.crt
Please enter token-pin>
CLI201 Command 'install-cert' ran successfullyAfter re-adding the certificate to the ssl listener and deploying all the changes to the servers
everything is fine.
F.D. -
Setup an applet on a web server?
Hi,
can somebody please tell me how to setup an applet on a web server??
My applet need some *.jar??
Thank u
AndyYou need to:
1) Compile all .class files
2) Compress them in a .jar file
3) Sign the .jar file and export a certificate (check the sun tutorials on how to sign jar files)
4) Write a simple html file with the appropriate tags that specify the archive files (i.e. the jar) and the main code (i.e. the principal class file)
5) Finally, enjoy the .html file in any browser
Hope this helps. -
Sun Java Web Server Administration Server Backup
Hi!
I've a question about Sun Java Web Server Administration Server backup, how it's possible to backup all the config, the Administration Nodes keys included? I'm thinking about in case of full damage of Administration Server how can I install a new one and restore all the config so I can manage the cluster again? Or it is necessary to re-register the Node's to the new Administration Server? In this case how can I restor to the Administration Server the application's, virtual servers, etc...?
Regards,
bzgThe Admin Server is another instance of Web Server, but with some web-apps that know how to manage configuration files, etc. There's nothing real magical going on in there. You should be able to wholesale backup the entire directory and, if needed, restore it (in fact I've done this several times).
The files in the admin instance are considered a private interface, meaning that Sun does not guarantee that they won't change in location or format from one Update to another, but in practice they rarely change.
Regarding the nodes specifically - communication between the nodes and the admin instance is done over SSL using a self-signed certificate that was generated when the admin server was installed. The certificate is in the admin instance's config/cert8.db and key3.db files just as it would be for any "normal" instance. Keep those backed up along with admin-serv/config-store/ and you should feel pretty confident that you have the configs, nodes, and certificate/key backed up.
Again - the files in the admin instance are considered a private interface. There are no user-serviceable parts inside. You may burn your fingers and start a fire. Your mileage may vary. Files from WS7.0u4 may break things if restored into a WS7.0u10 deployment, etc etc etc. -
Problem of DNS in Java Web Server
Hi!
I have problem, I have written servlets but when I run them using Java Web Server Exception arrises that DNS could not resolved however when I run the same code as application it gives correct results without exception. I am using the Java Web Server 2.0why r u using JWS? Sun has declared End of Life of JWS.
why don't you use any other app server (like Tomcat ...etc) -
Problem running XSQLSERVLET on JAVA WEB SERVER
THE BELOW LISTED SIMPLE XSQL QUERY WHEN RUN ON JAVA WEB SERVER 2 (WITH CLASSPATH/MAPPING SETTING AS IN INSTALLATION MANUAL) GIVES FOLLOWING ERROR:
1. XML document must have a top level element.
<?xml version="1.0" encoding="UTF-8"?>
<xsql:query xmlns:xsql="urn:oracle-xsql" connection="demo">
SELECT 'Hello World' AS "GREETING" FROM DUAL
</xsql:query>
2. WHILE RUNNING INDEX.HTML FILE FROM JAVA WEB SERVER 2 IT GIVES FOLLOWING ERROR
Oracle XSQL Servlet Page Processor 1.0.4.3 (Production)
XSQL-017: Unexpected Error Occurred
java.lang.IllegalArgumentException: sun.io.ByteToCharUTF-8
at sun.io.ByteToCharConverter.getConverterClass(ByteToCharConverter.java:79)
at sun.io.ByteToCharConverter.getConverter(ByteToCharConverter.java:109)
at java.lang.String.(String.java:294)
at java.lang.String.(String.java:313)
at oracle.xml.xsql.XSQLUtil.XL(XSQLUtil.java:207)
at oracle.xml.xsql.XSQLServletPageRequest.getParameter(XSQLServletPageRequest.java:139)
at oracle.xml.xsql.XSQLActionHandlerImpl.variableValue(Compiled Code)
at oracle.xml.xsql.XSQLActionHandlerImpl.getAttributeAllowingParam(Compiled Code)
at oracle.xml.xsql.actions.XSQLIncludeXSQLHandler.init(XSQLIncludeXSQLHandler.java:46)
at oracle.xml.xsql.XSQLDocHandler.handlerForAction(XSQLDocHandler.java:283)
at oracle.xml.xsql.XSQLDocHandler.getDocument(Compiled Code)
at oracle.xml.xsql.XSQLPageProcessor.process(Compiled Code)
at oracle.xml.xsql.XSQLServlet.doGet(XSQLServlet.java:60)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:715)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at com.sun.server.ServletState.callService(Compiled Code)
at com.sun.server.ServletManager.callServletService(Compiled Code)
at com.sun.server.ProcessingState.invokeTargetServlet(ProcessingState.java:423)
at com.sun.server.http.HttpProcessingState.execute(HttpProcessingState.java:79)
at com.sun.server.http.stages.Runner.process(Runner.java:79)
at com.sun.server.ProcessingSupport.process(Compiled Code)
at com.sun.server.Service.process(Service.java:204)
at com.sun.server.http.HttpServiceHandler.handleRequest(HttpServiceHandler.java:374)
at com.sun.server.http.HttpServiceHandler.handleRequest(Compiled Code)
at com.sun.server.HandlerThread.run(Compiled Code)
nullWhat jdk are you using ?
I had this problem with 1.1.7 -
Help me choose a Java Web Server?
I'm using Ubuntu 9.x and looking for a Java Web Server. I'm really lost as there are far too many out there and there seems none is the de-facto standard used by large corporations.
My criteria are:
- FREE for commercial use (requirement)
- ease of use for installation and configuration (I'm a beginner)
- good support from the commercial book industry is a huge plus
- well integrated with eclipse is a huge plus
- plenty of documentation and free community support
- one of the major releases such as Apache Geronimo, GlassFish, JBoss, WebSphere and etc.
I'm not concerned about major performance issues, but less hardware resource demand is better. I'm on a VPS with 256-512MB RAM.
Any suggestions? What is the most popular one?
I'm really lost so any suggestions would be much appreciated.Frankly, I'm not clear on differences between application and web server although I read this article. It sounds more like I will need an application server for my intended website with will have similar functionality as Facebook.
Things I am likely to need are DB connection pooling and clustering since I'm hosting in the cloud.
However, I have limited experience with a Tomcat and Java EE so I frankly don't know what I need although I have built a web site hosted on Tomcat. I figured with an Application Server I have the option of scaling to my needs without having to migrate. Then again, am I planning too far ahead and that migration isn't really that difficult?
With that said, are there any case studies of large web sites using Tomcat strictly successfully? -
Do i need a network card to install and run a local java web server
Friends,
Do i need a network card in my computer to install and run a local Java Web Server or any Web Server.network cards are only for connecting equipment together... you can set up a webserver without any more equipment than you have already! Indeed Tomcat... BUT you would be better off with apache for production stuff. It depends what you need to serve... if its mainly static pages (i guess it probably isn't) then apache will be enough by itself; but if you need to serve dynamic pages (JSP, Servlet blah blah) then you will need tomcat. Tomcat has it's own webserver and its perfectly ok for testing or low-load stuff, but you can integrate with Apache (a moderately compex task, but do-able, see tomcat-user forum off of apache site) for greater stability, and you don't have to show the port in the URL... Don't set up a webserver on any pc that contains stuff you don't want hacked into... it becomes very succeptible when the service is up...
-
Sun Java Web Server 7 and JNDI Jell
Hi all,
I am building a normal Java EE web app (WAR file), and I was originally developing on GlassFish v2.1 and everything was beautiful. Now, I found out our shared server is Sun Java Web Server 7, but the sys admin said everything should run fine as long as I wasn't using JSB's.
I downloaded and installed SJWS7 on my local machine so I could test my application against it, and JPA and SJWS7 are not getting along.
I am trying to bind my persistence.xml to the data source I created on SJWS7.
SJWS7 JDBC Resource: jdbc/pact
persistence.xml:
<persistence-unit name="pact" transaction-type="RESOURCE_LOCAL">
<description>PA/Circuit Tracking Development</description>
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<non-jta-data-source>java:comp/env/jdbc/pact</non-jta-data-source>
<properties>
....There is nothing in sun-web.xml or web.xml that references this resource (although I tried that too, and no go).
The traceback I get is:
<code>Caused by: javax.naming.NameNotFoundException: PWC4216: Name pact is not bound in this Context
at org.apache.naming.NamingContext.lookup(NamingContext.java:778)
at org.apache.naming.NamingContext.lookup(NamingContext.java:148)
at org.apache.naming.NamingContext.lookup(NamingContext.java:789)
at org.apache.naming.NamingContext.lookup(NamingContext.java:148)
at org.apache.naming.NamingContext.lookup(NamingContext.java:789)
at org.apache.naming.NamingContext.lookup(NamingContext.java:148)
at org.apache.naming.NamingContext.lookup(NamingContext.java:789)
at org.apache.naming.NamingContext.lookup(NamingContext.java:161)
at org.apache.naming.SelectorContext.lookup(SelectorContext.java:147)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:52)
... 151 moreI've been trying for almost an entire day now, and googling isn't revealing anything helpful. I don't know what I'm doing wrong. Can anyone point me in the right direction?u should be using
- default installation ( you can also use silent installation for this)
admin-server/bin/startserv
wadm delete-instance --user admin
wadm delete-config --user admin -
Oracle.xml.xsql.XSQLServlet in Java Web Server 2.0
Does anyone know how to add the oracle.xml.xsql.XSQLServlet in the Java Web Srever 2.0? When running the helloworld.xsql I am now getting the following error message.
"500 Internal Server Error
The servlet named oracle.xml.xsql.XSQLServlet at the requested URL
http://nw601250:8080/xsql/demo/helloworld.xsql
reported this exception: java.security.AccessControlException: access denied (java.io.FilePermission C:\JavaWebServer2.0\public_html\xsql\demo\helloworld.xsql read). Please report this to the administrator of the web server.
java.lang.RuntimeException: java.security.AccessControlException: access denied (java.io.FilePermission C:\JavaWebServer2.0\public_html\xsql\demo\helloworld.xsql read) at oracle.xml.xsql.XSQLPageManager.getPage(XSQLPageManager.java:122) at oracle.xml.xsql.XSQLPageProcessor.process(XSQLPageProcessor.java, Compiled Code) at oracle.xml.xsql.XSQLServlet.doGet(XSQLServlet.java:124) at javax.servlet.http.HttpServlet.service(HttpServlet.java:715) at javax.servlet.http.HttpServlet.service(HttpServlet.java:840) at com.sun.server.ServletState.callService(ServletState.java:226) at com.sun.server.ServletManager.callServletService(ServletManager.java:936) at com.sun.server.ProcessingState.invokeTargetServlet(ProcessingState.java:423) at com.sun.server.http.HttpProcessingState.execute(HttpProcessingState.java:79) at com.sun.server.http.stages.Runner.process(Runner.java:79) at com.sun.server.ProcessingSupport.process(ProcessingSupport.java, Compiled Code) at com.sun.server.Service.process(Service.java:204) at com.sun.server.http.HttpServiceHandler.handleRequest(HttpServiceHandler.java:374) at com.sun.server.http.HttpServiceHandler.handleRequest(HttpServiceHandler.java:166) at com.sun.server.HandlerThread.run(HandlerThread.java:162)"
I have the alias *.xsql set to map to the servlet named oracle.xml.xsql.XSQLServlet under the Servlet Aliases section, but I'm not sure how to add the servlet under the Servlet section, as I'm guessing that this is the problem I'm now experiencing. I tried adding oracle.xml.xsql.XSQLServlet as both the servlet name and class, but this is not working.
Any help would be greatly appreciated. Thanks!Rani,
The following is part of a message that was posted back on Nov. 7 of '99 from Steve Muench. I just followed this exactly with the Java Web Server 1.0.1 and it worked fine (including adding the classpath settings and xsql servlet mappings as it says below). Thanks,Dan
Here's the steps I just followed to run all the XSQL Demos under JSWDK 1.0.1
(1) Downloaded jswdk1_0_1-win.zip from Sun
(2) Installed in D:\jswdk-1.0.1
(3) Edited "startserver.bat" to add the
classpath entries needed by XSQL Servlet:
set CLASSPATH=%CLASSPATH%;d:\xsql\lib
set CLASSPATH=%CLASSPATH%;d:\xsql\lib\classes111.zip
set CLASSPATH=%CLASSPATH%;d:\xsql\lib\oraclexsql.jar
set CLASSPATH=%CLASSPATH%;d:\xsql\lib\oraclexmlsql.jar
set CLASSPATH=%CLASSPATH%;d:\xsql\lib\xmlparserv2.jar
(4)Edited d:/jswdk-1.0.1/webpages/WEB-INF/servlets.properties and added the line:
xsql.code=oracle.xml.xsql.XSQLServlet
(5) Edited d:/jswdk-1.0.1/webpages/WEB-INF/mappings.properties
and added the line:
.xsql=xsql
(6) Copied D:\xsql\demo to D:/jswdk-1.0.1/webpages/xsql/demo
(7) Started the Webserver with "startserver.bat"
(8) Browsed http://localhost:8080/xsql/demo/index.html
(9) Exercised all the demos.
Hope this helps.
Steve Muench
Oracle XML Team -
Hi There,
Is there anyone who can help me with a java issue?
I'm working on an assignment that deals with a simple java web server. The aim of the assignment is to create features that will allow the generation of dynamic web pages, the minimum requriement is that the current date be displayed on the web page. This is the method that sends the files is :
public void sendFile( String m ) throws IOException
if ( m == null ) return;
String file = baseDir + m.substring( 0, m.indexOf( ' ' ) );
String ext = file.substring( file.indexOf( '.' )+1 );
ext = ext.toLowerCase();
IO.Trace( "FILE", "File [" + file + "]" +
" Ext [" + ext + "]" );
File aFile = new File( file );
if ( aFile.canRead() )
theOut.putLine( "HTTP/1.1 200 OK ");
theOut.putLine( "Connection: close");
theOut.putLine( "Content-length " + aFile.length() );
if ( ext.equals( "jpg" ) || ext.equals( "jpeg" ))
theOut.putLine( "Content-type: image/jpg");
if ( ext.equals( "gif" ) )
theOut.putLine( "Content-type: image/gif");
if ( ext.equals( "htm" ) || ext.equals( "html" ))
theOut.putLine( "Content-type: text/html ");
theOut.putLine( "" );
theOut.copyFile( file );
} else {
theOut.putLine( "HTTP/1.1 403 Problem ");
I've done the following,
Date curDate = new Date();
TimeZone gmTz = TimeZone.getTimeZone ("GMT");
SimpleDateFormat sdf = new SimpleDateFormat ("dd MMM yyyy hh:mm:ss zzz");
sdf.setTimeZone (gmTz);
String source = "<br>Date: " + sdf.format ( curDate );
File aFile = new File ( file )
byte buf[] = source.getBytes();
OutputStream f0 = new FileOutputStream ( file, true );
for ( int i=0; i <buf.length; i++ )
f0.write ( buf);
f0.close();
Am i on the right track?
I would appreciate the help...
ThanksAm i on the right track? Does it compile? Does it run without errors? Does it do what you want it to? If yes, then you're on the right track. If no, then illuminate your problems. It boggles my mind how often people ask if their code is good rather than running it and seeing for themselves...
-
Oracle Java Web Server 6.1 / 7.0 Reverse Proxy
Hello everyone,
I have just installed both Sun Java Web Server versions 6.1 and 7.0 on Windows x86, trying to configure the Reverse Proxy Plugin, but none of the installations came with the libpassthrough.dll file mentioned in several documentations.
I have searched both Google and Oracle websites but links on Google point to the former sun.com website and Oracle gives nothing :(
update: I've installed Oracle iPlanet Web Server 7.0.15 and got only digest, fastcgi, htaccess and loadbal in the plugins folder, no libpassthrough :( Help!
Does anybody know where can i get the Reverse Proxy Plugin for Windows ?
Thank you very much,
Daniel.
Edited by: user2579623 on 07/08/2012 13:19In 6.1, the libpassthrough library comes in a separate download, usually with the application server, ie glassfish. In 7.x it is build in so there is no separate library to add, the functionality is just there and can even be configured from the web admin interface. Just use web server 7 and have a look at the admin console.
-
I am looking for a simple Java Web Server similar to the one Sun used to have. My understanding is that they stopped supporting that server. My background for this need is a classroom setting that teaches servlets and JSP, but does not want to specify a tool for deployment. With the old JavaWebServer it was just a matter of copying a Servlet or JSP to a directory. That is what I am looking for in this case.
If anyone has any thoughts on this, please let me know.
ThanksTry http://www.apache.org Jakarta-Tomcat will work fine.
-
i am new to java servlets. i have installed java wev server2.0 on windows 98. i am unable to start it. please someone give me the process to start it.
your help would be very much appreciated.
thank youI have installed java web server on windows 2000 server machine. I am using the following command to start the server
<server_root>\bin>httpd
but it is display some problem and a message displaying 'shut down the server' in between.please help me.
Maybe you are looking for
-
Problem passing parameter to crystal report subreport from *.aspx page
Background: I am developing a .NET web application using Visual Studio 2005. The code behind is in VB.net. One of my asp.net pages calls a report, which is invoked when the user clicks a Print button. I have developed this report using the Crystal Re
-
Error While Viewing Data from MARA Table
Hi All, After Importing SAP Tables, ex MARA and viewing Data Getting "Error Calling RFC function to get table data: <DATA_BUFFER_EXCEEDED "r . After decreasing or applying filters on fields , still not able to get data. Able to extract data from T0
-
when I command +tab from diablo 3, my macbook pro changes to a non-retina resolution. But when I quit diablo, everything comes back to a full retina resolution. what's happening? Is this some sort of defense mechanism to save energy or space? I notic
-
I've used recursive functions with other programming languages but I seem to be having a problem using it with a UDF in a cfc file. I'm reading an XSD file, parsing the XSD and populating an array with the details of any import tags using XMLSearch,
-
Access Photoshop "Help" without launching Adobe AIR?
Is there a way to access Photoshop Help, from the Help menu, without installing or launching Adobe AIR? I'm not a mobile app developer, plus I've been seeing many security concerns and other problems related to Adobe AIR, like log files filling up ha