Win a copy of Head First Android this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Problem in mailing when java web server is started using jre of Java Development Kit

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
i am developing an application in jsp, servlets. I have started my Java Web Server by this command
httpdnojre -javahome C:\jdk1.3
I am using jre of JDK 1.3 to start java web server instead of jre of java web server because i want to use HashMap class in my application. As HashMap.class is not included in rt.jar of javawebserver2.0's jre. After doing this i have developed the application. Everything works fine but as i need to insert mailing module in my application, problem started as mail cannot be sent. It gives me exception like this.
access denied (java.net.SocketPermission 198.165.34.150:25 resolve)
i have tried to discover the cause behind this and i found that as i am using jre of JDK to start java web server, it is giving me this exception. Then i closed java web server and start it once again using jre of java web server itself by giving command:
httpd
this way my mailing module works fine but my application doesnot run as i have mention above that it doesnot get HashMap class. Now i am confused what to do as my application are not running on (httpd) and i cannot send mail on (httpdnojre -javahome C:\jdk1.3). Please try to send me the solution as early as possible as i am helpless now.
Thank You.
Nilesh Soni

------------------
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic