Import javax.crypto not found error
Hi,
I have just installed the JDK1.7 on a windows machine.
Whenever I try to compile my module, I get an error on the import javax.crypto line. It tells me that it can't the javax\Crypto\Cipher.class.
I have the jdk installed on d:\glassfish3 and am pointing the classpath to d:\glassfish3\jdk7 (also tried d:\glassfish3\jdk7\jre as well) with no luck.
Any help would be greatly appreciated.
Thanks,
Drew Nathanson
Technical Synergy, Inc.
Thanks. Maybe I should explain a little better.
I am using JBuilder 2006 to my IDE. This environment requires that you put in the path to the JRE/JDK.
I have uninstalled and downloaded the jdk again and this time i'm getting a strange error:
"test.java": cannot access javax.crypto.Cipher; bad class file: D:\Program Files\Java\jre7\lib\jce.jar\javax\crypto\Cipher.class, class file has wrong version 51.0, should be 49.0, Please remove or make sure it appears in the correct subdirectory of the classpath. at line 19, column 21
Now this is strange because i'm using the right library.
Is there something that I'm missing here?
Again, thanks for your help.
Drew Nathanson
Similar Messages
-
Package javax.servlet not found error
package javax.servlet not found error. how it can be solved.
plz help this is my first servlet program.
vipinYou need a jar file that has in it the javax.servlet.* classes
It should be distributed with your servlet/jsp server.
It can normally be found in a /lib directory under the installation.
Some examples:
Tomcat4: install_dir\common\lib\servlet.jar
Tomcat5: install_dir\common\lib\servlet-api.jar; install_dir\common\lib\jsp-api.jar
J2sdkee: install_dir/lib/j2ee.jar
You need to include this jar file in your classpath when you compile any servlet. -
Import javax.mail not found
Hello,
I am new to Java Mail. I wanted to test my first programme. When I compile, I get this errors.
package javax.mail not found in import and so on. I have set my classpath to so
set classpath = %classpath%;C:\j2sdk1.4.0\lib\mail.jar;C:\j2sdk1.4.0\lib\activation.jar
I included the mail.jar,smtp.jar and activation.jar in the lib directory of my jdk e.g c:\j2sdk1.4.0\lib\ "the jar file".
Can any one tell me what I am missing here?
Thanks
Jamesthe easiest way to do this is to put
activation.jar
mail.jar
mailapi.jar
imap.jar
smtp.jar
pop3.jar
into the virtual machine directory C:\Program Files\JavaSoft\JRE\1.3.1\lib\ext
or the lib\ext directory of whatever virtual machine you are using
and put coppies of them in JDK
C:\j2sdk1.4.0-beta3\jre\lib\ext
or jre\lib\ext
of whatever JDK you are using
this way they are found automaticaly
no need for classpath -
Package javax.ejb not found error
Hi there,
I've downloaded j2se 1.4 and j2ee 1.3.1 and installed it on Windows XP. I set the environment variables as described. When I compile a .java file that imports the javax.ejb.* package, then I get an error "package javax.ejb not found". I feel like an idiot and I know it's something to do with the environment variables. (or just XP, most likely)
Thanks in advance
HoennerHow are you compiling your source? If you're using an IDE then you should edit your project classpath to include the j2ee.jar file (it'll probably be in the lib directory of your J2EE installation).
If you're doing it from the command line then type in SET CLASSPATH, look at the classpath it returns and check that it includes the j2ee.jar file.
Hope this helps. -
Import javax.mail not found problem
I have downloaded the most recent mail.jar and activation.jar files and have created a library w/in JDev called javamail and have added these jars to that library. I have also included this library in my ViewController Project. The problem I am having is that the following imports statements are not found by JDev:
import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.Multipart;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeBodyPart;
import javax.mail.internet.MimeMessage;
import javax.mail.internet.MimeMultipart;
When I open up the mail.jar I can find all of these classes, so why are these imports not being recongnized?
I have also tried import javax.mail.*; to include everthing and this does not work either.
Does anyone have any suggestions on how to trouble shoot this issue?Try to add the J2EE library - which is predefined in JDeveloper- to your project's libraries.
Worked for me. -
Javax class not found error.
First and formost, apologies if this is in the wrong forum.
I'm running NB 6.1 and trying to add the new kewl mysql features to my servlet. It automatically added all the code and inserted imports for javax.
For some reason it says that it can't find the following classes:
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.OneToMany;
import javax.persistence.Table;However it does recognise that javax.persistence exists.
I've tried running it with both jdk 5 & 6 with no luck.
I'm sure Javax is inbuilt, Is there something I'm missing?Ok, the classes are included if the glassfish server is running, since I'm running Tomcat I created a library with all the classes in it and added it to my project.
I was then able to use the entity classes I created with no bother.
Then I proceeded to install RESTful webservices. and add the restfull webservices to the project.
Now if I run/debug the main project, it doesn't run my main servlet!!!
When running test Restful webservices I receives: Cannot acces WADL: Please restart your RESTfull webservices and reload this page.
How do I get the project to run the orginal servlet now and bypass the restfull web service?
How do I fix the Restfull problem -
Package javax.swing not found in import!
I recently installed JDK 1.3.1_02 on WinNT4.0 and I cannot compile javax
packages without getting the following error:
Package javax.swing not found in import
I've tried every combination of modifying the CLASSPATH system variable
I can think of. I have no problem compiling java packages but not
javax packages. I followed the installation instructions to the letter.
What am I missing? Surely someone is running the same version of
the JDK I am on WinNT 4.0.Thanks again!!! I had an older version of javac running on my system any time I ran
outside of the bin where the latest javac was installed. I removed the older version
of the jdk and now I can compile from any directory. I really appreciate the help,
I was wracking my brain.
By the way, -version is not a valid flag for javac.exe, although it is for java.exe.
signed,
grateful in cyberspace -
"file not found" error in VI Logger when running an imported VI Logger task
I'm having trouble getting all of my imported tasks to run in VI Logger.
I'm using VI Logger 2.0, with an SCXI-1100. The data acquisition tasks I import run fine. One of the VI Logger tasks I've imported runs OK, but the other one gives an error:
"Engine Error!
Error Code = 7
LabView: File not found. The file may have been moved or deleted, or the file path might be incorrectly formatted for the OS."
If I create a new VI Logger task, the new task works OK. And my 1st VI Logger task to be imported works OK. So I know my setup mostly works. But our company has never been able to figure out importing tasks very well, so I'm looking for help.
Question 1: What file is LabView looking for? I've checked my Export path and database path, and they are identical in both the working task and the non-working task.
Question 2: Where else might I look for the difference between the 2 VI Logger tasks? Neither task uses any weird characters in the name, both have analog input channels and calculated channels. And I've mixed and matched the data acquisition tasks with no change (the good VI Logger task will run with either data task, the bad VI Logger task won't run with either data task), so I'm pretty sure the problem is in the VI Logger task, and not the data task. I've also tried importing the 2nd task on its own, as a separate import function, but that gave the same error.
Thanks for the help in advance,
JakeHi Spex,
I can import the VI Logger task OK (from another PC running VI Logger 2.0), but I can't run the task. I've attached the file. The "1 channel" task runs OK. The "x-probe" task starts, takes 1 or 2 data points, then hangs for a few seconds, then pops up the "file not found" error. The data acquisition taks run OK, so I don't think they're the problem.
This file I've attached includes 2 good data tasks ("1 channel" and xprobe"), 1 good VI Logger task ("1 channel"), and my non-working VI Logger task ("x-probe", which works fine on the PC it was exported from).
I have also tried exporting the non-working VI Logger task on its own, and it still imports OK, but still doesn't run, and gives the same error.
Thanks,
Jake
Attachments:
configData1.zip 353 KB -
Table not found error while importing table defintion in PI 7.1?
Hi Guys,
I am trying to import the table structure from DB2 as an external defintion but i am getting the error table not found.
There are no connection issues with the DB2 and CC is good. Are there any additional settings i need to perform to import the table?
any help or suggestions would be really appreciated
Thanks,
SriniHi Srinivas,
I think you want to do JDBC lookup.. you must have created the JDBC receiver communication channel. As your communication channel is correct and still you are getting Table not found error.. Check following steps.
- Check that your Communication channel is activated and working fine.
- Check that the ID which you are using in JDBC receiver is having proper authorization to import the table definition.
Just check with all authorization.
I think the problem is with insufficient authorization to User ID used on JDBC communication channel.
Thanks,
Bhupesh. -
Package javax.mail not found in import.
hi,
i am trying to develop a mail application using jsp, i have jaf1.0.1 and javamail API and the application was working fine on weblogic but when i tried to do the same thing on Apache server the Package javax.mail not found in import. is occuring,
What could be the problem can any one explain...
ThanksI think you have not placed mail.jar and activation.jar files in the /jre/lib/ext directory. Just place the mail.jar and activation.jar files in the jdk's /jre/lib/ext directory and check out. This will work for you.
Rkanthj -
"javadoc not found" error for javax package in netbeans.
I am using jmf api on windows under netbeans. But problem is that netbeans do not display documentation for jmf methods . Instead it shows "javadoc not found"
error. Can someone plz help me how to configure the javadoc for jmf.I am using jmf api on windows under netbeans. But problem is that netbeans do not display documentation for jmf methods . Instead it shows "javadoc not found"
error. Can someone plz help me how to configure the javadoc for jmf.Download api docs from [http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/specdownload.html] ....
Then in NetBeans:
Tools > Java Platforms > "JDK 1.x (Default)" > "Javadoc" tab > "Add zip/folder" button.....
Add the path of the jmf javadoc zip (or you may have to extract the zip)
You may not see the changes immediately, try restarting NetBeans....
Thanks! -
I am using net beans 6.7.1. I entered the following code:
package javaapplication2;
import java.security.Key;
import java.security.KeyPair;
import java.security.KeyPairGenerator;
import java.security.SecureRandom;
import java.security.Security;
import javax.crypto.Cipher;
class main{
public static void main(String[] args) throws Exception {
*Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider());*
byte[] input = "hi dinesh".getBytes();
Cipher cipher = Cipher.getInstance("RSA/None/NoPadding", "BC");
SecureRandom random = new SecureRandom();
KeyPairGenerator generator = KeyPairGenerator.getInstance("RSA", "BC");
generator.initialize(512, random);
KeyPair pair = generator.generateKeyPair();
Key pubKey = pair.getPublic();
Key privKey = pair.getPrivate();
// System.out.println(privKey);
cipher.init(Cipher.ENCRYPT_MODE, pubKey, random);
byte[] cipherText = cipher.doFinal(input);
System.out.println("cipher: " + new String(cipherText));
cipher.init(Cipher.DECRYPT_MODE, privKey);
byte[] plainText = cipher.doFinal(cipherText);
System.out.println("plain : " + new String(plainText));
}But it shows the error "package org.bouncycastle.jce.provider does not exist". What might be the error?
When i run the same code in jdk1.6, i can get the output. i even added "bouncycastle" package. Somebody please help me. Thanks in advancesowndar wrote:
But it shows the error "package org.bouncycastle.jce.provider does not exist". What might be the error?Exactly what it says. Netbeans doesn't know what that package is.
When i run the same code in jdk1.6, i can get the output. i even added "bouncycastle" package.So you have the correct jar file but Netbeans cannot read your mind. You have to tell it where that jar file is. Therefore you have a Netbeans problem and not a Java one. Try asking in a Netbeans forum how to add third party libs into your project. -
We recently upgraded from JBoss 4.2 to JBoss 5.1. Our Crystal reports were working fine in JBoss 4.2, but we've had several issues in 5.1.
after resolving several issues, I have reached a point where the application iis unable to locate the .rpt file. See error below. Here is my configuration:
1. .rpt files in the WEB-INF/classes folder
2. CRConfig.xml - reportLocation tag is removed. It is placed under WEB-INF.
3. My code is as below:
private void init() {
String report = "MyReport.rpt";
IReportSourceFactory2 rptSrcFactory = (IReportSourceFactory2) new JPEReportSourceFactory();
try {
this.reportSource = (IReportSource) rptSrcFactory
.createReportSource(report, l);
} catch (ReportSDKException e) {
log.error(e.getMessage());
e.printStackTrace();
4. My .ear file has the following files in the lib folder:
antlr-runtime.jar
commons-beanutils.jar
drools-api.jar
drools-compiler.jar
drools-core.jar
janino.jar
core.jar
jboss-el.jar
jboss-seam-remoting.jar
jbpm-jpdl.jar
mvel2.jar
richfaces-api-3.2.2.GA.jar
webreporting-jsf.jar
webreporting.jar
CrystalCommon2.jar
CrystalReportsRuntime.jar
jrcerom.jar
logging.jar
keycodeDecoder.jar
commons-configuration-1.2.jar
commons-lang-2.1.jar
5. My .war file has the follwing files in the WEB-INF/lib folder
commons-digester.jar
jboss-seam-debug.jar
jboss-seam-ioc.jar
jboss-seam-ui.jar
jboss-seam-pdf.jar
jboss-seam-excel.jar
jboss-seam-mail.jar
jsf-facelets.jar
richfaces-impl-3.2.2.GA.jar
richfaces-ui-3.2.2.GA.jar
DatabaseConnectors.jar
JDBInterface.jar
QueryBuilder.jar
XMLConnector.jar
com.azalea.ufl.barcode.1.0.jar
commons-collections-3.1.jar
commons-logging.jar
cvom.jar
icu4j.jar
jai_imageio.jar
keycodeDecoder.jar
logging.jar
pfjgraphics.jar
xpp3.jar
mvel2.jar
jxl.jar
jfreechart.jar
jcommon.jar
jboss-el.jar
logging.jar
xpp3.jar
jrcerom.jar
6. Error from server.log
2011-09-15 19:42:07,139 ERROR [com.businessobjects.reports.sdk.JRCCommunicationAdapter] (http-127.0.0.1-8080-1) The report file was not found
2011-09-15 19:42:07,186 ERROR [edu.cmu.heinz.hcis.view.bean.ReportsBean] (http-127.0.0.1-8080-1) Report file ParameterNew.rpt not found
2011-09-15 19:42:07,186 ERROR [STDERR] (http-127.0.0.1-8080-1) com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Report file ParameterNew.rpt not found---- Error code:-2147215356 Error code name:fileNotOpened
2011-09-15 19:42:07,186 ERROR [STDERR] (http-127.0.0.1-8080-1) at com.businessobjects.reports.sdk.JRCAdapterSDKException.a(SourceFile:92)
2011-09-15 19:42:07,186 ERROR [STDERR] (http-127.0.0.1-8080-1) at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:2299)
2011-09-15 19:42:07,186 ERROR [STDERR] (http-127.0.0.1-8080-1) at com.businessobjects.reports.sdk.JRCCommunicationAdapter.<init>(SourceFile:275)
2011-09-15 19:42:07,186 ERROR [STDERR] (http-127.0.0.1-8080-1) at com.businessobjects.sdk.erom.jrc.a.<init>(SourceFile:43)
2011-09-15 19:42:07,186 ERROR [STDERR] (http-127.0.0.1-8080-1) at com.businessobjects.sdk.erom.jrc.ReportAgentFactory.createAgent(SourceFile:46)
2011-09-15 19:42:07,186 ERROR [STDERR] (http-127.0.0.1-8080-1) at com.crystaldecisions.proxy.remoteagent.RemoteAgent$a.<init>(SourceFile:703)
2011-09-15 19:42:07,186 ERROR [STDERR] (http-127.0.0.1-8080-1) at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(SourceFile:662)
2011-09-15 19:42:07,186 ERROR [STDERR] (http-127.0.0.1-8080-1) at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(SourceFile:632)
2011-09-15 19:42:07,186 ERROR [STDERR] (http-127.0.0.1-8080-1) at com.
Where is the Java Reporting Component looking for the files?
Thanks.Help me ...
Ambient:
Crystal Reports Viewer 14.0.0.0
java.vendor = Sun Microsystems Inc.
java.version = 1.6.0_37
os.name = Windows NT (unknown)
os.version = 6.2
os.arch = amd64
Exception:
com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: com.businessobjects.sdk.erom.jrc.ReportAgentFactory---- Error code:-2147215357 [CRSDK00000026] Error code name:internal
at com.crystaldecisions.sdk.occa.report.lib.ReportSDKException.throwReportSDKException(ReportSDKException.java:112)
at com.crystaldecisions.proxy.remoteagent.RemoteAgent.createDefaultAgent(RemoteAgent.java:1000)
at com.crystaldecisions.sdk.occa.report.application.ClientDocument.initRemoteAgent(ClientDocument.java:770)
at com.crystaldecisions.sdk.occa.report.application.ClientDocument.open(ClientDocument.java:961)
at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.open(ReportClientDocument.java:226)
at src.HelloWorldSwing.createAndShowGUI(HelloWorldSwing.java:54)
at src.HelloWorldSwing.main(HelloWorldSwing.java:24)
Source:
import java.awt.BorderLayout;
import javax.swing.JFrame;
import com.crystaldecisions.ReportViewer.ReportViewerBean;
import com.crystaldecisions.sdk.occa.report.application.DatabaseController;
import com.crystaldecisions.sdk.occa.report.application.OpenReportOptions;
import com.crystaldecisions.sdk.occa.report.application.ReportClientDocument;
import com.crystaldecisions.sdk.occa.report.data.IConnectionInfo;
import com.crystaldecisions.sdk.occa.report.reportsource.IReportSource;
public class HelloWorldSwing {
* @param args
public static void main(String[] args) {
HelloWorldSwing pgm = new HelloWorldSwing();
try {
pgm.createAndShowGUI();
} catch (Exception e) {
e.printStackTrace();
//JOptionPane.showMessageDialog(null, e.toString());
* @throws Exception
public void createAndShowGUI() throws Exception {
// Make sure we have nice window decorations.
JFrame.setDefaultLookAndFeelDecorated(false);
// Create and set up the window.
JFrame frame = new JFrame("HelloWorldSwing");
frame.setTitle("Titolo del Report");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
ReportViewerBean viewer = new ReportViewerBean();
viewer.init(new String[0], null, null, null);
ReportClientDocument rpt = new ReportClientDocument();
rpt.setReportAppServer(ReportClientDocument.inprocConnectionString); // inproc:jrc
rpt.open("Report.rpt", OpenReportOptions._openAsReadOnly);
IReportSource rptSource = rpt.getReportSource();
viewer.setReportSource(rptSource);
frame.getContentPane().add(viewer, BorderLayout.CENTER);
frame.setSize(1930, 1030);
frame.setVisible(true);
viewer.start(); -
Getting 104 resource not found error, when deploying my first servlet
Hi,
I am new to servlets, and after doing little home work i have created a small servlet but i am i getting http 104 resource not found error.
steps i followed:
1) installed pre-configured version of tomcat from http://www.coreservlets.com/Apache-Tomcat-Tutorial/.
2)created new directory called ch1 under webapps, created WEB-INF under ch1
3)included web.xml, classes in WEB-INF directly
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd"
version="2.5">
<servlet>
<servlet-name>Ch1servlet</servlet-name>
<servlet-class>Ch1servlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Ch1servlet</servlet-name>
<url-pattern>/servlet</url-pattern>
</servlet-mapping>
</web-app>
4) included .class file under classes folder from following Ch1servlet.java file, I have set class path to point to servlet-api.jar file and jsp-api.jar and compliled following java file to get .class file which is included in classes folder
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
public class Ch1servlet extends HttpServlet
public void doGet(HttpServletRequest request,HttpServletResponse response)throws IOException
response.setContentType("text/html");
PrintWriter out=response.getWriter();
java.util.Date today=new java.util.Date();
out.println("<html>"+
"<body>"+
"<h1 align=center>HF\'s Chapter1 Servlet</h1>"
+"<br>" + today + "</body>" + "</html>");
5) I am started tomcat server and when typed http://localhost( changed port from 8080 to 80), its giving tomcat page and not showing any error
6) When i typed http://localhost/ch1/servlet/Ch1servlet, its giving http 404 error
type Status report
message: /servlet/Ch1servlet
description: The requested resource (/servlet/Ch1servlet) is not available.
7) i have uncommented(it comes preconfigured) the invoker part in web.xml.
I have tried including servlet in an package and without package
I am not sure if its problem with server configuration orelse problem with my file placing.
Please let me know if you have any idea what went wrong.I found this, unable to copy it, so i am typing it:
Feb11,2008 11:55:57 AM org.apache.catalina.core.AprLifecycleLIstener init
INFO: The Apache Tomcat Native Library which allows optimal performance in production environemnt was not found on the java.library.path:c:\program Files\Java\jdk1.6.0\bin;....
last line says
org.apache.cataline.startup.catalina start
INfo: Server startup in 657ms -
404 File not Found error trying servlet under https
Hi,
This is the first time that I've had to work with SSL. I have a servlet that worked fine under regular http. I had to implement SSL and run my site over https. When I try to access my servlet under HTTPS, I get the 404 File not found error. Is there something that I need to setup for servlets to run under SSL in apache or server.xml? or Do I need to modify my JSP and Servlet code?
I call my servlet from my JSP on the action method of the form like such:
* JSP call to servlet
<form action="https://www.benefitserver.com:8081/FDFServlet" method="post">
* Servlet code
import javax.servlet.*;
import javax.servlet.http.*;
import javax.net.ssl.*;
import java.io.*;
import java.util.*;
import com.yoursummit.benefitserver.*;
import com.adobe.fdf.*;
import com.adobe.fdf.exceptions.*;
public class FDFServlet extends HttpServlet
private static final String CONTENT_TYPE = "text/html";
private String fileout = "";
//Initialize global variables
public void init() throws ServletException
System.setProperty("java.protocol.handler.pkgs","sun.net.ssl.internal.www.protocol");
java.security.Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
//Process the HTTP Get request
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
doPost( request, response);
//Process the HTTP Post request
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
String planID = request.getParameter("planID");
String empID = request.getParameter("empID");
HttpSession session = request.getSession();
try {
FDFDoc outputFDF = null;
/* Create a new FDF. */
outputFDF = new FDFDoc();
// Set the form fields with values from the database
if ( planID.equalsIgnoreCase("31") )
formDeltaPopulation formDP = new formDeltaPopulation();
fileout = formDP.populateDeltaForm( outputFDF, planID, empID, request );
if (planID.equalsIgnoreCase("29") )
formUnicarePopulation formUC = new formUnicarePopulation();
fileout = formUC.populateUnicareForm( outputFDF, planID, empID, request );
if (planID.equalsIgnoreCase("30") || planID.equalsIgnoreCase("32") || planID.equalsIgnoreCase("33") || planID.equalsIgnoreCase("34") || planID.equalsIgnoreCase("35"))
formSunLifePopulation formSL = new formSunLifePopulation();
fileout = formSL.populateSunLifeForm( outputFDF, planID, empID, request );
response.sendRedirect(com.yoursummit.utils.urlRewrite.getServletURL(request,"emp_main.jsp?empID=" + empID));
} catch(FDFException fdfe) {
/* We handle an error by emitting an html header */
response.setContentType("text/html");
PrintWriter out = response.getWriter();
out.println("Caught FDF exception");
out.println(fdfe.toString());
fdfe.printStackTrace(out);
IOException e = new IOException ( fdfe.getMessage() );
throw e;
catch(IOException ioe) {
/* We handle an error by emitting an html header */
response.setContentType("text/html");
PrintWriter out = response.getWriter();
out.println("Caught FDF exception");
out.println(ioe.toString());
ioe.printStackTrace(out);
throw ioe;
catch(Exception e) {
/* We handle an error by emitting an html header */
response.setContentType("text/html");
PrintWriter out = response.getWriter();
out.println("Caught tomcatDB exception");
out.println(e.toString());
e.printStackTrace(out);
IOException ioe = new IOException ( e.getMessage() );
throw ioe;
//Clean up resources
public void destroy()
}I have been told that there is problem with my configuration of Tomcat. I have followed the documentation found at
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/ssl-howto.html
and it doesn't work. I have been working on this for a week now and can't seem to get it to work. Can someone please take a look at it and tell me what I am doing wrong? THANKS!
I get "HTTP 404 - File not Found" with the URL https://www.benefitserver.com/FDFServlet
I get "Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request" with the URL https://www.benefitserver.com/servlet/FDFServlet
I've looked at the log files for Apache and I don't see any errors listed. No errors logged in the Tomcat log file either.
* httpd.conf
## Include line for mod_jk.so (Jakarta-Tomcat installation)
#Include /usr/home/summimps/usr/local/jakarta/jakarta-tomcat-3.2.3/conf/mod_jk.conf-auto
LoadModule jk_module libexec/mod_jk.so
AddModule mod_jk.c
JkWorkersFile /usr/home/summimps/usr/tomcat4.1.24/conf/worker.properties
JkLogFile /usr/home/summimps/var/log/mod_jk.log
JkLogLevel info
#JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
#JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
#JkRequestLogFormat "%w %V %T"
JkMount /*.jsp benefitserver
JkMount /solarc/*.jsp benefitserver
JkMount /servlet/* ajp13
JkMount /solarc/servlet/* ajp13
# Should mod_jk send SSL information to Tomcat (default is On)
#JkExtractSSL On
# What is the indicator for SSL (default is HTTPS)
JkHTTPSIndicator HTTPS
# What is the indicator for SSL session (default is SSL_SESSION_ID)
JkSESSIONIndicator SSL_SESSION_ID
# What is the indicator for client SSL cipher suit (default is SSL_CIPHER)
JkCIPHERIndicator SSL_CIPHER
# What is the indicator for the client SSL certificated (default is SSL_CLIENT_CERT)
JkCERTSIndicator SSL_CLIENT_CERT
<Directory />
AllowOverride None
</Directory>
<Directory "/usr/tomcat4.1.24/webapps/ROOT">
Options Indexes
<IfDefine SSL>
SSLRequireSSL
SSLOptions +StdEnvVars +ExportCertData +StrictRequire
SSLVerifyClient require
SSLVerifyDepth 1
</IfDefine>
</Directory>
<VirtualHost benefitserver.com www.benefitserver.com>
SSLRequireSSL
ServerName benefitserver.com
ServerAdmin [email protected]
DocumentRoot /usr/local/etc/httpd/htdocs/benefitserver
TransferLog /usr/local/etc/httpd/logs/bsAccess_log
ErrorLog /usr/local/etc/httpd/logs/bsError_log
</VirtualHost>
* server.xml
<?xml version='1.0' encoding='utf-8'?>
<Server className="org.apache.catalina.core.StandardServer" debug="0" port="8006" shutdown="SHUTDOWN">
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" debug="0" jsr77Names="false"/>
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" debug="0"/>
<GlobalNamingResources>
</GlobalNamingResources>
<Service className="org.apache.catalina.core.StandardService" debug="0" name="Tomcat-Standalone">
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
redirectPort="8443" bufferSize="2048" port="8081" connectionTimeout="20000" scheme="https" enableLookups="true" secure="true" protocolHandlerClassName="org.apache.coyote.http11.Http11Protocol" debug="0" disableUploadTimeout="true" maxKeepAliveRequests="100" proxyPort="0" tcpNoDelay="true" minProcessors="5" maxProcessors="75" acceptCount="100" useURIValidationHack="false" connectionLinger="-1" compression="off">
<Factory className="org.apache.catalina.net.SSLServerSocketFactory" keystoreFile="//.keystore" keystoreType="JKS" algorithm="SunX509" clientAuth="false" protocol="TLS"/>
</Connector>
<Engine className="org.apache.catalina.core.StandardEngine" mapperClass="org.apache.catalina.core.StandardEngineMapper" debug="0" defaultHost="localhost" name="Standalone">
<Host className="org.apache.catalina.core.StandardHost" appBase="webapps" liveDeploy="true" mapperClass="org.apache.catalina.core.StandardHostMapper" autoDeploy="true" configClass="org.apache.catalina.startup.ContextConfig" errorReportValveClass="org.apache.catalina.valves.ErrorReportValve" debug="9" deployXML="true" contextClass="org.apache.catalina.core.StandardContext" unpackWARs="true" name="localhost">
<Context className="org.apache.catalina.core.StandardContext" crossContext="false" reloadable="false" mapperClass="org.apache.catalina.core.StandardContextMapper" useNaming="true" debug="0" swallowOutput="false" privileged="false" displayName="Welcome to Tomcat" wrapperClass="org.apache.catalina.core.StandardWrapper" docBase="/usr/tomcat4.1.24/webapps/ROOT" cookies="true" path="" cachingAllowed="true" charsetMapperClass="org.apache.catalina.util.CharsetMapper">
<Environment name="uploadUrl" override="true" type="java.lang.String" description="URL to display uploaded file in Benefit Server" value="http://www.benefitserver.com:8081/bsup"/>
<Environment name="exportPath" override="true" type="java.lang.String" description="Export Path for Benefit Server Export Utility" value="/usr/tomcat4.1.24/webapps/ROOT/bsex"/>
<Environment name="uploadPath" override="true" type="java.lang.String" description="Upload Path for Benefit Server" value="/usr/tomcat4.1.24/webapps/ROOT/bsup/"/>
<Environment name="tempPath" override="true" type="java.lang.String" description="Temporary Directory for File Upload in Benefit Server - Developm" value="/usr/home/summimps/tmp/benefitserver"/>
<Resource name="BS_Data" type="javax.sql.DataSource" scope="Shareable"/>
<ResourceParams name="BS_Mail">
<parameter>
<name>mail.smtp.host</name>
<value>localhost</value>
</parameter>
</ResourceParams>
<ResourceParams name="BS_Data">
<parameter>
<name>url</name>
<value>jdbc:mysql://localhost/BS_Data</value>
</parameter>
<parameter>
<name>password</name>
<value>kdsusa1350</value>
</parameter>
<parameter>
<name>maxActive</name>
<value>50</value>
</parameter>
<parameter>
<name>maxWait</name>
<value>5000</value>
</parameter>
<parameter>
<name>driverClassName</name>
<value>com.mysql.jdbc.Driver</value>
</parameter>
<parameter>
<name>username</name>
<value>summimps</value>
</parameter>
<parameter>
<name>maxIdle</name>
<value>5</value>
</parameter>
</ResourceParams>
</Context>
<Logger className="org.apache.catalina.logger.FileLogger" debug="0" verbosity="1" prefix="localhost_log." directory="logs" timestamp="true" suffix=".txt"/>
</Host>
<Logger className="org.apache.catalina.logger.FileLogger" debug="0" verbosity="1" prefix="catalina_log." directory="logs" timestamp="true" suffix=".txt"/>
<Realm className="org.apache.catalina.realm.UserDatabaseRealm" debug="0" resourceName="UserDatabase" validate="true"/>
</Engine>
</Service>
</Server>
* web.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<servlet>
<servlet-name>FDFServlet</servlet-name>
<servlet-class>FDFServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>FDFServlet</servlet-name>
<url-pattern>/FDFServlet</url-pattern>
</servlet-mapping>
</web-app>
Maybe you are looking for
-
"Blue Screen of Death" when trying to capture video!
Whenever I go to capture video, it immediately gives me a blue screen and the computer restarts. I thought that installing Premiere (CS 4 trial) would allow me to use Premiere's capture capabilities, but I still got the same blue screen problem. So
-
Good Day. I have been using pages to write marketing and technical review docs. I have now forgotten how to use word! I am writing a white paper and need to create a TOC but I cant see those checkboxes that everyone is raving about to the left each p
-
Cleaning the surface of the iPad using other than water?
I have been using my iPad for about 4 days and have decided that a product like 'Gecko Guard' may be useful to prevent scratches. The problem is that, having used the iPad, how to remove the finger grease that accumulates so that the guard will stay
-
How to access virtual folder in oracle apps 11i?
Hi, how to access virtual folder in oracle apps 11i? Version=11.5.10.2 please help Thanks,
-
New I Mac- safari does not show the URL window- help!
My safari does not show the website address window, but everyone else in the family shows it. How do I fix this so that I can view the address window. Thanks.