How to include javamail and jaf package in ApacheTomCat Server

org.apache.jasper.JasperException: Unable to compile class for JSP
C:\Program Files\Apache Tomcat 4.0\work\localhost\examples\jsp\SendMail$jsp.java:6: Package java.mail not found in import.
import java.mail.*;
^
1 error
     at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284)
     at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:546)
     at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:177)
     at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:189)
     at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
     at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
     at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
     at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
     at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
     at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
     at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
     at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
     at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
     at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
     at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
     at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
     at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
     at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
     at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
     at java.lang.Thread.run(Unknown Source)

hey pnarkodu
put your activation.jar and mail.jar packages in the
/tomcat_directory/common/lib - there are a bunch of jars here and just include the above two here
then stop and run tomcat again
think this will work
let me know
sincerely
laodingsockjavaguy

Similar Messages

  • Compiling with javamail and JAF

    I'm attempting to compile a java src file that was provided by my isp and has worked for them.
    In preparation, I downloaded javamail and JAF and set the classpath for both.
    when I attempt to compile I get the following errors as if the two components haven't been found.
    MailBean.java:23: package javax.mail does not exist
    import javax.mail.*;
    ^
    MailBean.java:24: package javax.mail.internet does not exist
    import javax.mail.internet.*;
    ^
    MailBean.java:25: package javax.activation does not exist
    import javax.activation.*;
    Any suggestions?

    At times adding to classpath still does not help. If it does not use the -classpath swith and seperate teh entries with a semi-colon.
    AS DipakP mentioned, make sure you include activation.jar, mail.jar and pop.jar in your classpath if you are using the addon. If you are relying on J2EE, then please add the path to j2ee.jar.

  • How to use JavaMail 1.4 with Oracle Application Server 10g (9.0.4.0.0)

    Hi all,
    I'd like to know if it's possible and how to use JavaMail 1.4 with Oracle Application Server 10g (9.0.4.0.0), Windows version.
    With the following code, I can see that the mail.jar used by the server is the one included in the jdk installation :
    // I'm testing InternetAddress.class because I want to use commons-email-1.2.jar that requires mail.jar 1.4 (or higher) and activation.jar 1.1 (or higher)
    // and I know that inside the commons-email-1.2.jar file, I need to call the InternetAddress.validate() method that throws a java.lang.NoSuchMethodError: javax.mail.internet.InternetAddress.validate()V if it is used with mail.jar 1.2.
    Class cls = javax.mail.internet.InternetAddress.class;
    java.security.ProtectionDomain pDomain = cls.getProtectionDomain();
    java.security.CodeSource cSource = pDomain.getCodeSource();
    java.net.URL location = cSource.getLocation();
    System.out.println(location.toString());
    This code returns : file:/C:/oracle/app/jdk/jre/lib/ext/mail.jar and this mail.jar file has an implementation version number: 1.2
    - I've tried to include my own mail.jar (1.4.2) and activation.jar (1.1.1) files in the war file that I deploy, but it doesn't work (the server still uses the same mail.jar 1.2)
    - I've tried to put the mail.jar (1.4.2) and activation.jar (1.1.1) files in the applib directory of my OC4J instance, but it doesn't work (the server still uses the same mail.jar 1.2)
    - I know that a patch exists : I've read the following document: How to Make Libraries such as mail.jar and activation.jar Swappable ? [ID 552432.1]
    This article talks about the Patch 6514136, but this patch only applies to : Oracle Containers for J2EE - Version: 10.1.3.3.0
    Can you please help me ?
    Thanks in advance for your answers,
    Laurent

    I strongly suggest to upgrade to AS 10.1.3 to get this.
    Think of future support of AS 9.0.4. You will get not critical patch updates anymore.
    --olaf                                                                                                                                                                                                                                                                                                               

  • How to compile forms and reports 6i in Application server 1.0.2.2.2.

    Hi all,
    i used oracle forms and reports 6i with oracle database 10g in client server architecture.
    now i want to make 3 tier, client-application server version 1.0.2.2.2-origin database serversystem on 3 separate machines.
    i have installed application server version 1.0.2.2.2.
    now i have my forms and reports 6i in application server computer.
    can any one please tell me how to compile forms and reports 6i in application server computer i.e do i have to write some extra code in forms and reports 6i in order to compile in application server computer successfully.
    waiting for an early reply.
    best regards
    fahad ejaz
    email:[email protected]

    ... another question would be why not upgrade those old Forms & Reports to the newest release 10.1.2.0.2 and use the latest Application Server to run them with?
    Release 6i and 1.0.2.2 is as you know desupported.
    Regards,
    Martin

  • Single XML configuration file for all the SSIS packages(including parent and child packages)

    Hi
    I have some 16 ssis packages. source Db and destination Db for these packages are common. I am calling these child packages in a master package.
    I want to use only one XML config file for this master.
    How do i use same for all child packages?
    and can i do it with parent package variable?

    I created a master package with a variable master, and in value i have entered the configuration file path.
    Hi vjp dinu,
    You should create variables in the parent package to pass values to variables in each child package rather than pass the file path of the XML Configurations file of the parent package.
    As Visakh mentioned, you can achieve your goal by creating corresponding variables in the parent package for each child package, and enable Package Configurations for the parent package so that you can control the values through the XML Configurations file
    for the variables of the parent package.
    Supposing there is a variable FilePath in child package 1, a variable ServerName in child package 2, then, we need to create two variables pFilePath, pServerName in the parent package. After configuring the Parent package variable in each child package (e.g.
    mapping pFilePath to FilePath, pServerName to ServerName), you can enable XML Configurations for the parent package, and expose the value property for both pFilePath and pServerName variables. In this way, you can modify the XML Configurations file of the
    parent package and the specified values will passed to the child packages.
    Reference:
    http://microsoft-ssis.blogspot.com/2011/06/passing-variables-from-parent-package.html 
    Regards,
    Mike Yin
    TechNet Community Support

  • How to include javascript and HTML in analysis output?

    Is there any document for that? Currently I set Treat Text As HTML under Data Format tab and include some simple HTML in Column formula, but I doubt it is correct way to include javascript and HTML in ayalysis output. Can anybody provide any idea or sample?
    Thanks

    Hi,
    i am not sure about javascript but yes treat text as Html is used to utilize HTML power in OBIEE.There are many examples of this.Common uses are a href,GoNav and PortalPagenav fuction.These function are mix of HTML and OBIEE.We gebrally use this option when we want to carry out some HTML operation on data rendered by OBIEE.Common example is to make data values a hyperlink for which we use a href
    See the below links for GoNav and a href
    http://108obiee.blogspot.com/2009/09/go-url-request-navigation-between.html
    Creating Hierarchies on Direct Database Requests
    You can also write java scripts here.
    Regards,
    Sandeep

  • Exporting and importing packages SAP inst server

    Hello,
    Background: we plan to migrate our current installation server to a newer hardware; we have a wide range of different packages. I could recreate them manually, but that would take a (long) while.
    i wonder if there is a chance to export installation packages from one server and then import them into an other. I looked through the offical docu and found no note regarding this.
    Is there a special directory within the sap installtion server  which can simply be copied to the new server?
    Best regards
    A.D

    Hi Andre
    No, you can not simply copy some folders.
    The official way to do a system copy, i.e,  export from the souce system, and then import it on the new system.
    Then you will get the same version, patch level with the old system in the new one.
    So you don't need to repeat applying all the packages.
    The system copy guide can be found from
    http://service.sap.com/instguides
    - then select netweaver for example,
       -  expanding the "Installation - SAP NetWeaver Systems"
       -   there you should be able to find the sytem copy guide.
    Best regards,
    Thunder

  • How to populate image and text field in SQL Server

    I want to populate a table, i.e insert images in a table in SQL Server. I am using Java(JSP/Servlet). Can any one suggest me how to populate the image and text fields in SQL Server...of course, using Java. If possible, could you please give me a piece of code?
    Regards -
    Samit

    Hi,
    Please check the following link for information on inserting images in to sql server database.
    http://www.databasejournal.com/features/mssql/article.php/1475641
    Cheers,
    vidyut

  • How to create production and development enironment in same server

    Hi All,
    We are using OWB10.2.0.1 version and we have only one database which has two schema.we are using default control center to run the mappings.
    We don't have separate servers for development and production.So we use same control center for running the mapping for production and development, cause of this we are getting some problem while changing the existing mapping.
    So we are planing to separate these environment like production and development with in one server and both environment should have the same database and we need to lock the some mapping to development environment which is in live.
    Please suggest me how can i follow because i don't have EXP in these area.Hope you understand the situation.
    Thanks,
    Kumar.

    Hi,
    I am not sure if we can lock the mapping according tot he env. you log into. I can provide an alternate solution by using different project names and store the mapping into them or using different mapping names to indicate them as prod or dev maps.
    From a developer perspective i would suggest u have different environments for dev and prod and as a manager i would like to inform that u have have many audit issues if this goes on.
    Regards,
    Bharath

  • How to include JAR file as package

    I am trying to code for passing data from an Applet to javascript. It appears the preferred method involves a package netscape.javascript to include support for the JSObject class. found a download of a jar file which contains this package. I am using Sun Creator and JCreator but dont know where to or how to install this package to be available to the compiler. Sorry for the beginner level question but any help is greatlyt appreciated. TIA

    You need to create a project and add the jar to the classpath. Then you can import the required libraries.

  • Suggestion on how to include image and text in epub export

    I have 12 images like the one below that are included in a book designed for print in ID but also exporting to an epub. I built the image in Photoshop because it needed a stroke and the stroke doesn't export from ID (?). Originally I build the entire image in PS with text. That exports fine.It is anchored inline.  But the text is a bit blurry. So I tried just using the image+stroke from PS and then creating a text box in ID inside the image. Then the text and image separated when exported to epub. Any suggestions on how to do this effectively?
    Mark

    I would suggest just keeping the text when you export to epub and then building a div border to create the box around the text.

  • How to Include libraries (Jar's/Packages/ClassNotFoundException/Classpath)

    Ive spent hours looking for a solution, So maby i making a simple human error which i cant find.
    Im unfamiliar with using packages.
    I have created a program that use the JDBC libary. However i need to distribute this program and keep getting a ClassNotFoundException which is throw by:
    String s = "com.mysql.jdbc.Driver";
    Class.forName(s);I would like to have the "mysql-connector-java-bin.jar" file inside my main jar file However I think this may be very complex so i assume it would be easier to have it in the same directory as the main jar file.
    I create my main jar file with:
    jar cmf mainClass.txt Main.jar *.class mysql-connector-java-bin.jarI also jarsigner but i wouldn't expect this to case this problem.
    mainClass.txt
    Main-Class: MyClassFile
    Class-Path: mysql-connector-java-bin.jar
    Sealed: trueAny ideas what im doing wrong? or How i could solve this problem?
    Do i need to write a program which installs the JDBC on their system?
    Is there an easy solution?
    Any advice would be greatly appriacted.
    Thanks,

    ty for the reply
    I now create my jar file with:
    jar cmf mainClass.txt Main.jar *.classand the "mysql-connector-java-bin.jar" is still in same directory as my main.jar file
    Ive also replaced the "mysql-connector-java-bin.jar" to make sure it hasnt been corrupted somehow.
    However i still get the same error.
    the stackTrace is:
    java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClassInternal(Unknown Source)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Unknown Source)
            at SQLConnection.<init>(SQLConnection.java:18)SQLConnection a class i have created.and the lines 17 and 18 are posted in my first post.
    Anyideas?

  • How to include jre and program in an installer?

    Hi,
    I need to make a complete package where latest jre and my program jar file will be within.
    How to pack those in an installer?
    Thanks in advance.

    Hi Suresh,
        Executing the program RSAQR3TR or directly using the Transport option from SQ02 is the same.
        Please help me out on this requirement.
    Thanks & Regards,
    S.Lakshmi

  • How to include PJC and Java Beans in forms

    I have tried a lot to include java codes in my forms ..So I decide to start with ProgressBarPJC(cause it is tested and provided with demo) but I could not set implementation class of java bean object to
    oracle.forms.demos.ProgressBarPJC it does not accept it but it accept ProgressBar instead of ProgressBarPJC. I don't know why? I have made changes in Forms90_builder_classpath to access f90all.jar and progressbar.jar. I have Progressbar.class and progressbarpjc.classs both but i don't know how to set implementation class to ProgressBarPJC.
    don't you think there is lots of configuration and path setting to use any JPC or Jar in forms? I am totally confused with this integration.
    Please solve this matter
    Thanking you,
    Neeraj

    and even more information samples and step by step instructions are on the Java spotligh on the Forms Upgrade Center : http://otn.oracle.com/formsupgrade

  • How to include seconds and millisecon​d in the CSV file time stamp generated by the SpreadShee​t Object?

    I'm Using Lookout 6.02, in a XP Pro Windows Machine, Service Pack 3.
    I have an application that collects data at the rate of 20 samples per second. It works just fine, the CSV File contains all the samples without missing a single one.
    The problem is that the time stamp in the data file only shows hours and minutes. With 20 sample per second, there are 1200 samples per minute. It is hard to figure out in which second or sample number, occurred some events collected. These files are open with Excel and analyzed with Excel. There is no easy way to implement a search or a guidance for knowing the sample number or the exact time in Excel.  My problem is to add the seconds and if possible the milliseconds to the time stamp done by the spreadsheet object.
    Any suggestion?
    Other ways to do the same that includes the time stamp all the way down to milliseconds?

    Create another column with the Now() function, then set the calumn format to hh:mm:ss.s
    expression would be now(trigger) for the date and time or now(trigger)-today(trigger) for just time
    The trigger will cause the expression to stay updated, perhaps using the same trigger for logging the spreadsheet.
    Good luck
    Mike
    Message Edited by Mike@DTSI on 01-16-2009 04:12 PM
    Mike Crabtree - Lead Developer
    Destek of Nevada, Inc. / Digital Telemetry Systems, Inc.
    (866) 964-6948 / (760) 247-9512

Maybe you are looking for

  • ITunes movie has stopped playing

    I've just encountered a problem. When I go to play a movie it would play and then lag after awhile. But as soon as I stopped playing and exited back to the movie listings, then went to start playing the same movie the screen would blink suddenly and

  • Installed LR4.3 but 4.2 continues to load

    I've tried the install multiple times.  I'm currently using a mac running osx 10.6.8.  4.2 will start up when I click on the LR icon but there is no GH3 support.  Any thoughts?  Thanks.

  • How to Expose the service to tuxedo :Todd Little  Please help.

    Hi all, I am trying to expose the service to tuxedo.In unix system with tuxedo 9.1 I am starting with the simple app service .I prepared UBB config file. As follow:- # samples/atmi/simpapp/ubbsimple     $Revision: 1.5 $" *RESOURCES IPCKEY          51

  • Why did Apple just make organising WORSE!? Go back to the old layout! but change colours maybe APPLE!

    Ok this afternoon i updated my computer, it looked fine didn't seem like much of a problem, but when i finally decided to sync my photos and organise my photos in iPhoto it was so bad! I could not tell where everything is and now it is HARDER! to mov

  • Itunes /icloud/ and getting library to function?

    itunes on windows does not reconize the fact that the files are already in the itunes folder and wants me to download eveything how do I get Itunes to stop duplicating files and stop tellimg me I need to download what I already have?