Results 1 to 4 of 4
  1. #1
    Clockwork is offline Member
    Join Date
    Jul 2010
    Posts
    3
    Rep Power
    0

    Default Javamail and different servers

    I develop my system on windows, using eclipse.
    the resulting servlet is deployed to an offsite tomcat server.

    This servlet uses javamail, and that seems to be screwing up, but only on the server. It runs fine on the devlopment machine.

    It runs until it gets to the creation of the mimemessage
    Java Code:
    Message msg = new MimeMessage(session);
    At that point, on the server, execution just halts. no errors, nothing, just stops.

    I have no idea what would cause this, especially because It works fine on the development machine.

    Any help would be greatly appreciated.

    Thanks,
    Clockwork

  2. #2
    Clockwork is offline Member
    Join Date
    Jul 2010
    Posts
    3
    Rep Power
    0

    Default

    Got a little further.

    It appears that i am getting a class def not found error.
    The most common cause of this is that activation.jar is not included,
    but i have confirmed that i have one there.

  3. #3
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,789
    Rep Power
    25

    Default

    Sounds like a classpath problem on the server.

  4. #4
    Clockwork is offline Member
    Join Date
    Jul 2010
    Posts
    3
    Rep Power
    0

    Default

    I tried including it in the PATH via the "set" command, but that didn't help.
    its in the tomcat libs folder.
    Is there another place I can put it or include in some variable to help me get this to work?

    Im running CentOS on the server.

Similar Threads

  1. how to connect two servers??
    By init in forum Networking
    Replies: 8
    Last Post: 03-28-2010, 07:59 PM
  2. Copy files between servers
    By mcoto800 in forum Java Servlet
    Replies: 1
    Last Post: 02-05-2010, 02:05 AM
  3. subforum for servers
    By tushar88 in forum Suggestions & Feedback
    Replies: 3
    Last Post: 03-10-2009, 03:25 AM
  4. Servers supporting EJBeans
    By ravian in forum Enterprise JavaBeans (EJB)
    Replies: 3
    Last Post: 01-03-2008, 11:44 AM
  5. Looking for servers on ports
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-13-2007, 10:28 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •