Tomcat 4.0.4 does not find j2ee 1.4

hi,
i'm trying to write a bean, that sends am email using the j2ee 1.4 beta.
The Server i use ist a tomcat 4.0.4.
I stored the j2ee.jar file under WEB-INF/lib/ and compiled my bean
mail.java without error. If i try to access the bean from a jsp
the server replies with this error
------------------ error -------------------------------
root cause
java.lang.NoClassDefFoundError: javax/mail/Address
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:1576)
at java.lang.Class.getConstructor0(Class.java:1748)
at java.lang.Class.newInstance0(Class.java:266)
at java.lang.Class.newInstance(Class.java:249)
at java.beans.Beans.instantiate(Beans.java:204)
at java.beans.Beans.instantiate(Beans.java:48)
at org.apache.jsp.contact$jsp._jspService(contact$jsp.java:116)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
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:190)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
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:2347)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
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.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:174)
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.warp.WarpRequestHandler.handle(WarpRequestHandler.java:217)
at org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:194)
at java.lang.Thread.run(Thread.java:536)
------------------ error -------------------------------
unjaring the j2ee.jar shows, that the Adress.class is inside
the jar file. Also the tomcat server log file shows, that it found
and registered the j2ee.jar file in the lib directory.
What is wrong ??
can somebody help me ?
I found a similar topic with earlier versions of j2ee, that
suggested putting it into the general tomcat lib folder, but
since i'm not the adminstrator of this box i hardly can rely
on that. (Only if this is the only solution and it works...)
Jens

Hi,
well solution seems to be the following (from tomcat-users@...):
j2ee.jar conflicts with some libraries from the tomcat-engine itsself.
So my j2ee.jar 1.4 beta is ignored by the tomcat engine.
I cannot place it in the general lib path, because i do not administrate the box myself.
Solution for me is now to use the separate mail API (http://java.sun.com/products/javamail/) and javabeans (http://java.sun.com/products/javabeans/glasgow/).
Hope that others find this helpfull, too.
Do i get a refund for my J2EE book in my bookshelf, that i cannot use ?
grml

Similar Messages

  • Tomcat 4.0.6 does not find bean

    hi,
    I have just installed jakarta-tomcat-4.0.6.
    I am trying to use my beans for database connectivity. I get the following error.
    Can anyone please help ??
    Thanks.
    Aravind.
    >>>>>>>>>>>>>>>>>>>>>
    type Exception report
    message Internal Server Error
    description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 12 in the jsp file: /loginPageAction.jsp

    message Internal Server Error
    description The server encountered an internal error
    (Internal Server Error) that prevented it from
    fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile
    class for JSP
    An error occurred at line: 12 in the jsp file:
    /loginPageAction.jspFirst, you could check your jsp file in 12 line, if there are some other errors.
    about the location of beans, the bean class should be put in "yourapplication\web-inf\classes\yourpackage\***bean.class"
    try it!
    good luck
    Yours kent

  • EHP Installer does not find BI Java system on 2 System server

    Hi folks,
    I have a 2-node MSCS cluster with a standalone BI 7.0 ABAP system, as well as a standalone BI 7.0 Java system. To be clear, these are seperate systems, with seperate SID's, installed MCOD in one Oracle instance (A neccessity for J2EE Authentication purposes)
    I have run the EHP installer against my ABAP system, and completed (Not without significant effort/time) the EHP1_SP3 installation there. Now, I have cleaned out the EHPI directory and want to run the installer again, but it once more comes across ONLY the ABAP instance, it does not find the Java instance.
    I am starting it as indicated, with the:
    startup.bat "jce_policy=H:\EHPI\..." and I've tried starting the GUI manually and through the JNLP web start, and both give the same result.
    How do I get the installer to recognize the second system on this box?
    Any help is appreciated.
    Best regards,
    Troy Shane

    Resolved...was not logged in as SIDADM.

  • AIO remote does not find my printer

    I changed Internet providers a few months ago. I have not been able to print from my iPhone or iPad since then. AIO remote does not find my printer at all.

    Hi,
    Both AirPrint and the HP AIO Remote app relies on Multicasting, a such have to be supported and enabled by your router.
    Some routers support a such by default, some require settings changes and some do not support Multicasting which required for a such.
    Please clarify your router brand and model to better understand any possible steps to try.
    Regards,
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • Does not find partition

    I have 10.7 Lion and all my apps just stopped working (including finder). I tryed to hit the restart button, but it didnt shut down, so I used the Power Button.
    When i started it up again, it goes to Mac OS X Utilities and does not find Macintosh HD. (The partition on my hard drive)
    And i really does not want to reinstall it, because I have iOS apps in XCode that im developing.
    MacBook Pro 13´ 2010 Model (Dont remember what month)
    OS X 10.7 Lion
    Crashed after debugging iOS app on my iPhone

    It just says that my partition is OK . (And its not, because I cant start up my mac)
    But, ill try just wipe out all data and restore it from a Time Machine backup

  • Ipad does not find printer

    I have new Epson printer with airprint possibility. Printer is on wifi and iphone can see it and print files. but ipad does not find printer at all?

    Apple has some troubleshooting tips at the bottom of this page that may help:
    http://support.apple.com/kb/HT4356
    Regards.

  • Iphone and ipad does not find the airprint printer

    After I upgraded my iphone and ipad I lost my airprint function. Ipad and Iphone does not find the airprinter. The printer is a HP Photosmart 5520, and it does work wireless with my Windows PC that is on the same nettwork.

    In our case the Airprint printers could not be found after IOS upgraded to 7.1.2, all was fine before then.  I have scoured the forums and many people have suffered the same problem.  All the solutions given are aimed at a domestic network with just a Wireless router.  They all involve restarting all the devices and rejoining the IOS devices to the wireless network.  Some people have had to do it multiple times before they regained use of the printers.
    In my case none of these work because I am talking about a business network with two wireless access points, several switches and a router.  To prove it is the IPads I have installed Bonjour onto a Windows PC (Bonjour is the technology used by Airprint).  This finds the printers perfectly so it is definitely something that was changed in the version of Bonjour on the IOS 7.1.2 that is causing all the problems.
    I was hoping that Apple would release another upgrade to IOS to fix this problem but it has been several weeks so far and nothing has emerged.
    So something that worked perfectly a few weeks ago is now dead in the water because of an update on the IPads!!!!!!!!

  • Bluetooth on iPhone does not find my iPad

    Bluetooth on my iPhone does not find iPad when both devices are next to each other.

    Envisions99
    I agree.
    still...my opinions on Apple.....
    If you just try to put yourself in their position you will understand better.
    Music Rights, security,every body wants something like this and like that- with all they have to consider and take care to get not sued- it is no wonder thta there are some restrictions.
    And why ? because they are the only one to realy care an respond to questions and claims. Ever tried to get help from Sony and other Bigies ? Its like talking to a wall.Their support is just a not specific call center. Or did somebody read recently that Sony Erricson was called before the judge because their Cellphones are failing after third time repair (true story), their batteries are burning, their music devices dont let you transfer the music you bought(MiniDisc) and so on? Seldom right?!
    If I read news about Apple, I just wonder how many legal challenges Apple has to face.
    Looks like kind of sport in the US, to try to get money out of Apple.
    `Oh, my laptop did not work last night so I could not read the email from my love.
    I realy became so depressed and my heart aches therefore soooo much . I aske Apple to compensate
    for this with ähhh.... 1 million $ ?! `
    cheers,
    ;-)arry

  • My airport utility does not find my airport express device

    My airport utility does not find my airport express device

    In order for the AirPort Utility on your iOS device to find the Express, both need to be connected to the same Wi-Fi network. By default, the Express will broadcast an unsecured wireless network with a network name of something like: Apple Network NNNNNN. Can you iOS device find this network?

  • My iPad 2 does not find my Big Blue Live speaker! What do I do?

    My iPad 2 does not find my Big Blue Live speaker! What do I do?

    Make sure you're using an original apple ipad charger and plugging into a wall outlet to charge, not computer.
    Its possible that the charger is bad and may need replacing.
    Its also possible that the battery has gone bad and it may need replacing.
    Apple does offer battery replacement, you will have to send to them or take it to an apple store.
    http://support.apple.com/kb/index?page=servicefaq&geo=United_States&product=ipad
    Before you do that though, I would recommend reading through these links first for some more information on how your battery works, needs to be charged and maintained.
    Apple Batteries - iPad
    http://www.apple.com/batteries/ipad.html
    Apple recommends that once a month you let the iPad fully discharge & then recharge to 100%.
    How to Calibrate Your Mac, iPhone, or iPad Battery
    http://www.macblend.com/how-to-calibrate-your-mac-iphone-or-ipad-battery/
    iPhone, iPod, Using the iPad Charger
    http://support.apple.com/kb/HT4327

  • My USB Port does not Find my I POD

    My USB port does not find my I POD. I have Installed all th elatest software.

    Welcome to Apple Discussions!
    Does the iPod show Do Not Disconnect? You may want to try resetting your iPod while it is connected...
    http://docs.info.apple.com/article.html?artnum=61705
    See if this link helps too...
    http://docs.info.apple.com/article.html?artnum=61711
    Finally, more details on the issue such as what your computer (if anything) does and what the iPod does.
    btabz

  • My iTunes does not find my IPOD!? What to do??

    I really need my ipod, but ALL the music disappeared..... then I tried to sync, but my Itunes does not find my ipod. What to do??

    If you are unable to restore, then type "unable to restore" into the search bar at the top of this page by Support and read the resulting help article

  • My ipad does not find my micro sim card? Whats wrong?

    my ipad does not find my micro sim card. Whats wrong

    Where did you get the phone? If it was hacked or jailbroken prior to the update, this is pretty typical. If that's the case, it's now a brick.

  • My iMac does not find my wifi printer or my Chromecast.

    My iMac does not find my wifi printer or my Chromecast. I was able to ping the chrome cast and printer and I'm able to connect to these devices with my windows computer, iPhone and iPad. I have OS X 10.9.2. I'm able to print by setting up the printer using the IP address that was assigned by my router instead of letting my iMac do the finding. It seems that the iMac either does not like the info that is receiving or something is blocking the signal (other than the firewall, which is off). Could someone have an idea what the issue might be?

    Hi MikeMart0923,
    If you are having issues adding or connecting to your WiFi printer from your iMac, you may find the following articles helpful (apologies if you have already seen them):
    OS X Mavericks: Set up a printer
    http://support.apple.com/kb/PH14143
    OS X: Connecting a Wi-Fi printer to your Wi-Fi network
    http://support.apple.com/kb/ht3500
    Note: This is assuming you have a simple network configuration, with only a single router/WiFi access point.
    Regards,
    - Brenden

  • I have the latest ipad2 and trying to print a doc. It does not find my printer . My printer is a canon mp990 wifi

    I have the latest ipad2 and trying to print a doc. It does not find my printer . My printer is a canon mp990 wifi. Can anyone tell me what I am doing wrong?

    Hi,
    If you are trying to utilize AirPrint you need an HP compatible printer listed here.
    http://www.apple.com/ipad/features/airprint.html
    Scroll down.
    Carolyn  

Maybe you are looking for

  • Macbook Air 2013 USB problems (won't connect/ reconnecting)

    I have a new Macbook Air 13-inch Mid 2013 with all the upgrades possible (1.7 Ghz i7, 8GB RAM, 512 GB SSD). I am running Mac OS X 10.8.5. Every software is at the latest version. I am having troubles connecting a couple of USB 2.0 devices to the Macb

  • Windows 7 home premium installing SP1

    After alot of tries I have now got to the stage,where I can install SP1 on to my PC but when it tries to configure SP1 at 10% it fails and reverts back, in the update area it says that,  error code 80070490 has caused the problem. Any ideas onto how

  • Save AS prompt window Confirmation

    Hello, I would like to go through all the steps involved in the process of exporting one document to XHTML in Indesign CS3. I found a scripting block on this forum by Dave Saunders which illustrate how to interact with a menu action. The fact is that

  • How to mute camera sound in n82

    Hi can you please tell me how to mute camera sound in n82

  • /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found

    I am trying to run the firefox from firefox-4.0.tar.bz2 on CentOS 5.6 and get the error message, ./firefox-bin: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by firefox/libxul.so) Firefox does not start. I thought having a copy