pintu shah

Greenhorn
+ Follow
since Nov 12, 2010
Merit badge: grant badges
For More
Dallas, TX
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by pintu shah

I am using Java 1.6 and SQL Server 2008 for this. I am using windows authentication to connect to MSSQL Server 2008 and windows authentication does not require any username and password.

I have used the following connection URL

private static final String CONNECTION_URL = "Driver={SQL Server Native Client 10.0.1600};Server=http://localhost:1433;Database=DataBases";

Connection conn = DriverManager.getConnection( CONNECTION_URL )

when i run the code I get following exception database is getting loaded though..

Exception in thread "main" java.sql.SQLException: No suitable driver found for Driver={SQL Server Native Client 10.0.1600};Server=http://localhost:1433;Database=DataBases
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at JDBC.TestDatabaseMetadata.main(TestDatabaseMetadata.java:16)
i got following errors while deploying Jwebmail on Jboss AS

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Could not intialize: null
net.wastl.webmail.server.WebMailServlet.init(Unknown Source)
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:189)
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:91)
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:92)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:325)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
java.lang.Thread.run(Thread.java:662)

root cause

javax.servlet.UnavailableException
net.wastl.webmail.server.WebMailServer.initStorage(Unknown Source)
net.wastl.webmail.server.WebMailServer.doInit(Unknown Source)
net.wastl.webmail.server.WebMailServlet.init(Unknown Source)
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:189)
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:91)
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:92)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:325)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
java.lang.Thread.run(Thread.java:662)

note The full stack trace of the root cause is available in the JBoss Web/2.1.1.CR7 logs.

what could be wrong?What do i need to put into classpath?
13 years ago
Again I have onemore problem in running JWebmail application in eclipse as an application..

That is when i try to run Jwebmail source code which i downloaded from this link..
it gives me two options.. 1) Helper - net.wastl.webmail.misc
&2) TEA - net.wastl.webmail.misc
when i choose first one then it gives me following error

"Exception in thread "main" java.lang.IllegalArgumentException: SYNTAX: net.wastl.webmail.misc.Helper 'string to en/decode'
at net.wastl.webmail.misc.Helper.main(Unknown Source)"

and when i choose second one it gives me following error

"Exception in thread "main" java.lang.IllegalArgumentException: SYNTAX: net.wastl.webmail.misc.TEA 'string to en/decode'
at net.wastl.webmail.misc.TEA.main(Unknown Source)"

what do those error mean.?
To build the jwebmail.jar i have included the following jars
commons-logging-1.0.4.jar
mailapi-1.4.1.jar
admc-log4j-1.2.2,jar
smtp-1.4.4.jar
imap.jar
and jaf-1.1.1.jar

in the source code of jwebmail given in this link http://sourceforge.net/projects/jwebmail/files/

when i try to deploy jwebmail.war using tomcat apache 6.0.29 the i get following error

SEVER: ERROR listenerStart
org.apache.catalina.core.StandardContext start
This message is for For @Time Holloway@

if xsltproc runs in linux then what is given in this link http://www.sagehill.net/docbookxsl/InstallingAProcessor.html about installing xsltproc on windows..

what do you have to say about this..
hi when i am trying to build Jwebmail using Ant on eclipse which I downloaded from this link http://jwebmail.sourceforge.net/jwebmail-guide.html it gives me following error

C:\Users\Hitesh\workspace\jwebmail\build.xml:365: Execute failed: java.io.IOException: Cannot run program "xsltproc": CreateProcess error=2, The system cannot find the file specified

help me guys.

whenever you want to deploy third party's war file at that time you have to change the owner of the war file to current system name or user name.
13 years ago
we can change by right clicking on the war file and going to properties..
13 years ago
how to change the owner of the war file in tomcat?
13 years ago
I have downloaded Jwebmail source from the above mentioned link. I added it in eclipse as an existing project..and trying to run it as an application.
it gives me following error

java.lang.NoClassDefFoundError: net/wastl/webmail/misc/Helper
Caused by: java.lang.ClassNotFoundException: net.wastl.webmail.misc.Helper
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)
Exception in thread "main"

net.wastl.webmail.misc.Helper is already there in the source directory. and that too without any errors.
I don't know why it is giving that error..
I want to implement Jwebmail.given in the following link

http://jwebmail.sourceforge.net/jwebmail-guide.html#install


How shall i proceed? We have developed our own authentication system to login into the system. we have to merge our authentication system into Jwebmail..

What should be done for this..
Also, When I run the JWebmail source code given in above website it gives me following error

java.lang.NoClassDefFoundError: net/wastl/webmail/misc/Helper
Caused by: java.lang.ClassNotFoundException: net.wastl.webmail.misc.Helper
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)
Exception in thread "main"

Thanks in advance.
What is the forward equivalent of Struts in Servlets?
And I am looking for an example that works with both Servlets and Struts.

Help me guys.
Thanks in Advance.
13 years ago
I downloaded the ZIPPED MySQL Server 5.2.29 from www.mysql.org and unzipped it. Finally I ran mysqld.exe which is located in the bin folder to start the server by manually clicking on the icon mysqld.exe. Now i can also make connection using MySQL workbench.

The Issue is now resolved.

Thank you everyone for your valuable suggestions. I appreciate them.
I have checked the box in the windows firewall to make an exception for MySQL Workbench...and made a connection using NEW SERVER INSTANCE (Admin@127.0.0.1 Local Type:Windows) but it still says " There is no connection to the MySQL Server. This functionalit requires an established coonection to a running MySQL server to work".