I downloaded the Apache James mailing server Apache-james-3.0-beta4-app . I tried to run it on Windows 7 ultimate by clicking on run.bat file inside following directory
C:\Users\Jack\Desktop\New folder\Servers\MailServer\apache-james-3.0-beta4-app\apache-james-3.0-beta4\bin.
Command prompt started for a while and it is getting disappeared. I am not able to read the error on the command prompt as it is so quick. Any kind of suggestion would be appreciated. When I am running telnet command in command prompt it is showing that command not recognized. I don't know how to turn it on in Windows.
Starting the server
The best way to start Apache James is in the terminal.
From the apache-james\bin folder type:
james.bat
You will see the following instructions:
Usage: james.bat { console : start : pause : resume : stop : restart : install : remove }
Type:
james.bat install
followed by
james.bat start
The server should start at this point. If it does not start you can see any errors in \log\wrapper.log and the server status in \log\james-server.log.
Fixing the JAXB issue
If you are running java 7 or later, it is highly likely the server will not start due to a jaxb issue in the current release of Apache James (version 3.2), which will prevent the server from starting.
To work around this, download the following files
jaxb-api-2.1.jar
jaxb-core-2.1.14.jar
jaxb-impl-2.1.14.jar
And include these files in the folder
/conf/lib
For more information on this point see How to resolve java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException in Java 9
After following these steps, James should start. No modifications to wrapper.conf should be necessary.
To enable telnet on Windows 7 click the Start button, click Control Panel, click Programs, and then click Turn Windows features on or off. Administrator permission required If you are prompted for an administrator password or confirmation, type the password or provide confirmation. In the Windows Features dialog box, select the Telnet Client check box. Click OK.
Apache James requires a Java Runtime Environment (JRE) version 1.5 or higher. In addition, the environment variable JAVA_HOME should be set to the JRE home directory before running James.
If you run JDK7, James will not start due to a bug in JAXB. As temporary workaround, you can download the latest 2.1 version of JAXB from http://jaxb.java.net/2.1.13/JAXB2_20100510.jar and copy the extracted jaxb-impl.jar
into conf/lib
.
Update:
There is, actualy, one more workaround for this. Take the latest version of James (3.0-beta5) from here, it is not affected by this annoying JAXB bug.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With