Discussion:
Can't start james by using ./james start
youth men
2013-01-11 16:30:10 UTC
Permalink
I can not start Apache James Server 3.0 beta4 by using the ./james start in
Quick Start step 5 in Window 7 and Ubuntu 11. But I can start it both in
Window 7 and Ubuntu 11 by using run.bat/run.sh command.

I run the james install command, then james start. I got a message says
james service started, but I still can not connect to the server using
james-cli in Quick Start step 6 either.

What's wrong? Thanks
Eric Charles
2013-01-12 09:51:35 UTC
Permalink
Hi,
What does the log say (log/james-server.log)
What exact cli command do you issue?
What "telnet localhost 25" says?

Thx, Eric
Post by youth men
I can not start Apache James Server 3.0 beta4 by using the ./james start in
Quick Start step 5 in Window 7 and Ubuntu 11. But I can start it both in
Window 7 and Ubuntu 11 by using run.bat/run.sh command.
I run the james install command, then james start. I got a message says
james service started, but I still can not connect to the server using
james-cli in Quick Start step 6 either.
What's wrong? Thanks
youth men
2013-01-12 12:47:55 UTC
Permalink
E:\Programs\James\apache-james-3.0-beta4\bin>james start
wrapper | The james service is not installed - The specified service does
not exist as an installed service. (0x424)
Press any key to continue . . .

E:\Programs\James\apache-james-3.0-beta4\bin>james install
wrapper | Apache James Server App installed.

E:\Programs\James\apache-james-3.0-beta4\bin>james start
wrapper | Starting the Apache James Server App service...
wrapper | Apache James Server App started.

log file james-server
:
INFO 07:36:06,344 |
org.apache.james.container.spring.context.JamesServerApplicationContext |
Refreshing
***@7d742700:
startup date [Sat Jan 12 07:36:06 EST 2013]; root of context hierarchy
INFO 07:36:08,730 |
org.apache.james.container.spring.context.JamesServerApplicationContext |
Bean 'logprovider' of type [class
org.apache.james.container.spring.lifecycle.LogProviderImpl] is not
eligible for getting processed by all BeanPostProcessors (for example: not
eligible for auto-proxying)
INFO 07:36:09,432 | james.mailrepositorystore | JamesMailStore init...
INFO 07:36:09,448 | james.mailrepositorystore | Registering Repository
instance of class org.apache.james.mailrepository.file.FileMailRepository
to handle file protocol requests for repositories with key file
INFO 07:36:09,448 | james.mailrepositorystore | Registering Repository
instance of class org.apache.james.mailrepository.jdbc.JDBCMailRepository
to handle db protocol requests for repositories with key db
INFO 07:36:09,448 | james.mailrepositorystore | Registering Repository
instance of class org.apache.james.mailrepository.jdbc.JDBCMailRepository
to handle dbfile protocol requests for repositories with key dbfile
INFO 07:36:09,448 | james.mailrepositorystore | Registering Repository
instance of class org.apache.james.mailrepository.file.MBoxMailRepository
to handle mbox protocol requests for repositories with key mbox
INFO 07:36:10,290 | james.dnsservice | DNS Server is: 68.204.0.31
INFO 07:36:10,306 | james.dnsservice | Registered cache, resolver and
search paths as DNSJava defaults
INFO 07:36:10,680 | james.domainlist | Set autodetect to: true
INFO 07:36:10,680 | james.domainlist | Set autodetectIP to: true

It looks fine till here. See next below:

E:\Programs\James\apache-james-3.0-beta4\bin>james-cli -h localhost -p 9999
listusers
Error connecting to remote JMX agent!
java.io.IOException: Failed to retrieve RMIServer stub:
javax.naming.ServiceUnavailableException [Root exception is
java.rmi.ConnectException: Connection refused to host: localhost; nested
exception is:
java.net.ConnectException: Connection refused: connect]
at javax.management.remote.rmi.RMIConnector.connect(Unknown Source)
at javax.management.remote.JMXConnectorFactory.connect(Unknown
Source)
at
org.apache.james.cli.probe.impl.JmxServerProbe.connect(JmxServerProbe.java:93)
at
org.apache.james.cli.probe.impl.JmxServerProbe.<init>(JmxServerProbe.java:68)
at org.apache.james.cli.ServerCmd.main(ServerCmd.java:104)
Caused by: javax.naming.ServiceUnavailableException [Root exception is
java.rmi.ConnectException: Connection refused to host: localhost; nested
exception is:
java.net.ConnectException: Connection refused: connect]
at com.sun.jndi.rmi.registry.RegistryContext.lookup(Unknown Source)
at com.sun.jndi.toolkit.url.GenericURLContext.lookup(Unknown Source)
at javax.naming.InitialContext.lookup(Unknown Source)
at
javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(Unknown Source)
at javax.management.remote.rmi.RMIConnector.findRMIServer(Unknown
Source)
... 5 more
Caused by: java.rmi.ConnectException: Connection refused to host:
localhost; nested exception is:
java.net.ConnectException: Connection refused: connect
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
at sun.rmi.server.UnicastRef.newCall(Unknown Source)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
... 10 more
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at
sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(Unknown Source)
at
sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Unknown Source)
... 15 more

E:\Programs\James\apache-james-3.0-beta4\bin>telnet localhost 25
Connecting To localhost...Could not open connection to the host, on port
25: Connect failed

E:\Programs\James\apache-james-3.0-beta4\bin>telnet 127.0.0.1 25
Connecting To 127.0.0.1...Could not open connection to the host, on port
25: Connect failed
Post by Eric Charles
Hi,
What does the log say (log/james-server.log)
What exact cli command do you issue?
What "telnet localhost 25" says?
Thx, Eric
Post by youth men
I can not start Apache James Server 3.0 beta4 by using the ./james start in
Quick Start step 5 in Window 7 and Ubuntu 11. But I can start it both in
Window 7 and Ubuntu 11 by using run.bat/run.sh command.
I run the james install command, then james start. I got a message says
james service started, but I still can not connect to the server using
james-cli in Quick Start step 6 either.
What's wrong? Thanks
------------------------------**------------------------------**---------
Eric Charles
2013-01-12 19:31:32 UTC
Permalink
(snipped)
Post by youth men
INFO 07:36:10,306 | james.dnsservice | Registered cache, resolver and
search paths as DNSJava defaults
INFO 07:36:10,680 | james.domainlist | Set autodetect to: true
INFO 07:36:10,680 | james.domainlist | Set autodetectIP to: true
No more log after?
If no, can you check you dns settings?

The rest (below) confirms that the server is not started.
The strange things is that there is no exception in the log (it should
continue after "Set autodetectIP to: true").

Thx, Eric
Post by youth men
E:\Programs\James\apache-james-3.0-beta4\bin>james-cli -h localhost -p 9999
listusers
Error connecting to remote JMX agent!
javax.naming.ServiceUnavailableException [Root exception is
java.rmi.ConnectException: Connection refused to host: localhost; nested
java.net.ConnectException: Connection refused: connect]
at javax.management.remote.rmi.RMIConnector.connect(Unknown Source)
at javax.management.remote.JMXConnectorFactory.connect(Unknown
Source)
at
org.apache.james.cli.probe.impl.JmxServerProbe.connect(JmxServerProbe.java:93)
at
org.apache.james.cli.probe.impl.JmxServerProbe.<init>(JmxServerProbe.java:68)
at org.apache.james.cli.ServerCmd.main(ServerCmd.java:104)
Caused by: javax.naming.ServiceUnavailableException [Root exception is
java.rmi.ConnectException: Connection refused to host: localhost; nested
java.net.ConnectException: Connection refused: connect]
at com.sun.jndi.rmi.registry.RegistryContext.lookup(Unknown Source)
at com.sun.jndi.toolkit.url.GenericURLContext.lookup(Unknown Source)
at javax.naming.InitialContext.lookup(Unknown Source)
at
javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(Unknown Source)
at javax.management.remote.rmi.RMIConnector.findRMIServer(Unknown
Source)
... 5 more
java.net.ConnectException: Connection refused: connect
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
at sun.rmi.server.UnicastRef.newCall(Unknown Source)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
... 10 more
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at
sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(Unknown Source)
at
sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Unknown Source)
... 15 more
E:\Programs\James\apache-james-3.0-beta4\bin>telnet localhost 25
Connecting To localhost...Could not open connection to the host, on port
25: Connect failed
E:\Programs\James\apache-james-3.0-beta4\bin>telnet 127.0.0.1 25
Connecting To 127.0.0.1...Could not open connection to the host, on port
25: Connect failed
Post by Eric Charles
Hi,
What does the log say (log/james-server.log)
What exact cli command do you issue?
What "telnet localhost 25" says?
Thx, Eric
Post by youth men
I can not start Apache James Server 3.0 beta4 by using the ./james start in
Quick Start step 5 in Window 7 and Ubuntu 11. But I can start it both in
Window 7 and Ubuntu 11 by using run.bat/run.sh command.
I run the james install command, then james start. I got a message says
james service started, but I still can not connect to the server using
james-cli in Quick Start step 6 either.
What's wrong? Thanks
------------------------------**------------------------------**---------
youth men
2013-01-12 22:59:34 UTC
Permalink
I used default settings. what should my dns settings be?
Post by Eric Charles
(snipped)
INFO 07:36:10,306 | james.dnsservice | Registered cache, resolver and
Post by youth men
search paths as DNSJava defaults
INFO 07:36:10,680 | james.domainlist | Set autodetect to: true
INFO 07:36:10,680 | james.domainlist | Set autodetectIP to: true
No more log after?
If no, can you check you dns settings?
The rest (below) confirms that the server is not started.
The strange things is that there is no exception in the log (it should
continue after "Set autodetectIP to: true").
Thx, Eric
E:\Programs\James\apache-**james-3.0-beta4\bin>james-cli -h localhost -p
Post by youth men
9999
listusers
Error connecting to remote JMX agent!
javax.naming.**ServiceUnavailableException [Root exception is
java.rmi.ConnectException: Connection refused to host: localhost; nested
java.net.ConnectException: Connection refused: connect]
at javax.management.remote.rmi.**RMIConnector.connect(Unknown
Source)
at javax.management.remote.**JMXConnectorFactory.connect(**
Unknown
Source)
at
org.apache.james.cli.probe.**impl.JmxServerProbe.connect(**
JmxServerProbe.java:93)
at
org.apache.james.cli.probe.**impl.JmxServerProbe.<init>(**
JmxServerProbe.java:68)
at org.apache.james.cli.**ServerCmd.main(ServerCmd.java:**104)
Caused by: javax.naming.**ServiceUnavailableException [Root exception is
java.rmi.ConnectException: Connection refused to host: localhost; nested
java.net.ConnectException: Connection refused: connect]
at com.sun.jndi.rmi.registry.**RegistryContext.lookup(Unknown
Source)
at com.sun.jndi.toolkit.url.**GenericURLContext.lookup(**Unknown
Source)
at javax.naming.InitialContext.**lookup(Unknown Source)
at
javax.management.remote.rmi.**RMIConnector.**findRMIServerJNDI(Unknown
Source)
at javax.management.remote.rmi.**RMIConnector.findRMIServer(**
Unknown
Source)
... 5 more
java.net.ConnectException: Connection refused: connect
at sun.rmi.transport.tcp.**TCPEndpoint.newSocket(Unknown Source)
at sun.rmi.transport.tcp.**TCPChannel.createConnection(**Unknown
Source)
at sun.rmi.transport.tcp.**TCPChannel.newConnection(**Unknown
Source)
at sun.rmi.server.UnicastRef.**newCall(Unknown Source)
at sun.rmi.registry.RegistryImpl_**Stub.lookup(Unknown Source)
... 10 more
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.**socketConnect(Native Method)
at java.net.PlainSocketImpl.**doConnect(Unknown Source)
at java.net.PlainSocketImpl.**connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.**connect(Unknown Source)
at java.net.SocksSocketImpl.**connect(Unknown Source)
at java.net.Socket.connect(**Unknown Source)
at java.net.Socket.connect(**Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at
sun.rmi.transport.proxy.**RMIDirectSocketFactory.**createSocket(Unknown
Source)
at
sun.rmi.transport.proxy.**RMIMasterSocketFactory.**createSocket(Unknown
Source)
... 15 more
E:\Programs\James\apache-**james-3.0-beta4\bin>telnet localhost 25
Connecting To localhost...Could not open connection to the host, on port
25: Connect failed
E:\Programs\James\apache-**james-3.0-beta4\bin>telnet 127.0.0.1 25
Connecting To 127.0.0.1...Could not open connection to the host, on port
25: Connect failed
Hi,
Post by Eric Charles
What does the log say (log/james-server.log)
What exact cli command do you issue?
What "telnet localhost 25" says?
Thx, Eric
I can not start Apache James Server 3.0 beta4 by using the ./james start
Post by youth men
in
Quick Start step 5 in Window 7 and Ubuntu 11. But I can start it both in
Window 7 and Ubuntu 11 by using run.bat/run.sh command.
I run the james install command, then james start. I got a message says
james service started, but I still can not connect to the server using
james-cli in Quick Start step 6 either.
What's wrong? Thanks
------------------------------****----------------------------**
--**---------
------------------------------**------------------------------**---------
youth men
2013-01-13 00:15:02 UTC
Permalink
Hi Eric

I noticed there is a wrapper.log file in bin folder, That file logs error
message.

I use mysql database and put mysql-connector-java-5.1.15-bin.jar file in
conf/lib folder. But the wrapper cannot load JDBC driver class
'com.mysql.jdbc.Driver'.

I changed "wrapper.java.classpath.2=../conf" to
"wrapper.java.classpath.2=../conf/lib" in conf/wrapper.conf file. Now I can
start the James server by using ./james start

Thanks Eric.

-James
Post by youth men
I used default settings. what should my dns settings be?
Post by Eric Charles
(snipped)
INFO 07:36:10,306 | james.dnsservice | Registered cache, resolver and
Post by youth men
search paths as DNSJava defaults
INFO 07:36:10,680 | james.domainlist | Set autodetect to: true
INFO 07:36:10,680 | james.domainlist | Set autodetectIP to: true
No more log after?
If no, can you check you dns settings?
The rest (below) confirms that the server is not started.
The strange things is that there is no exception in the log (it should
continue after "Set autodetectIP to: true").
Thx, Eric
E:\Programs\James\apache-**james-3.0-beta4\bin>james-cli -h localhost
Post by youth men
-p 9999
listusers
Error connecting to remote JMX agent!
javax.naming.**ServiceUnavailableException [Root exception is
java.rmi.ConnectException: Connection refused to host: localhost; nested
java.net.ConnectException: Connection refused: connect]
at javax.management.remote.rmi.**RMIConnector.connect(Unknown
Source)
at javax.management.remote.**JMXConnectorFactory.connect(**
Unknown
Source)
at
org.apache.james.cli.probe.**impl.JmxServerProbe.connect(**
JmxServerProbe.java:93)
at
org.apache.james.cli.probe.**impl.JmxServerProbe.<init>(**
JmxServerProbe.java:68)
at org.apache.james.cli.**ServerCmd.main(ServerCmd.java:**104)
Caused by: javax.naming.**ServiceUnavailableException [Root exception is
java.rmi.ConnectException: Connection refused to host: localhost; nested
java.net.ConnectException: Connection refused: connect]
at com.sun.jndi.rmi.registry.**RegistryContext.lookup(Unknown
Source)
at com.sun.jndi.toolkit.url.**GenericURLContext.lookup(**Unknown
Source)
at javax.naming.InitialContext.**lookup(Unknown Source)
at
javax.management.remote.rmi.**RMIConnector.**findRMIServerJNDI(Unknown
Source)
at javax.management.remote.rmi.**RMIConnector.findRMIServer(**
Unknown
Source)
... 5 more
java.net.ConnectException: Connection refused: connect
at sun.rmi.transport.tcp.**TCPEndpoint.newSocket(Unknown Source)
at sun.rmi.transport.tcp.**TCPChannel.createConnection(**Unknown
Source)
at sun.rmi.transport.tcp.**TCPChannel.newConnection(**Unknown
Source)
at sun.rmi.server.UnicastRef.**newCall(Unknown Source)
at sun.rmi.registry.RegistryImpl_**Stub.lookup(Unknown Source)
... 10 more
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.**socketConnect(Native Method)
at java.net.PlainSocketImpl.**doConnect(Unknown Source)
at java.net.PlainSocketImpl.**connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.**connect(Unknown Source)
at java.net.SocksSocketImpl.**connect(Unknown Source)
at java.net.Socket.connect(**Unknown Source)
at java.net.Socket.connect(**Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at
sun.rmi.transport.proxy.**RMIDirectSocketFactory.**createSocket(Unknown
Source)
at
sun.rmi.transport.proxy.**RMIMasterSocketFactory.**createSocket(Unknown
Source)
... 15 more
E:\Programs\James\apache-**james-3.0-beta4\bin>telnet localhost 25
Connecting To localhost...Could not open connection to the host, on port
25: Connect failed
E:\Programs\James\apache-**james-3.0-beta4\bin>telnet 127.0.0.1 25
Connecting To 127.0.0.1...Could not open connection to the host, on port
25: Connect failed
Hi,
Post by Eric Charles
What does the log say (log/james-server.log)
What exact cli command do you issue?
What "telnet localhost 25" says?
Thx, Eric
I can not start Apache James Server 3.0 beta4 by using the ./james
Post by youth men
start
in
Quick Start step 5 in Window 7 and Ubuntu 11. But I can start it both in
Window 7 and Ubuntu 11 by using run.bat/run.sh command.
I run the james install command, then james start. I got a message says
james service started, but I still can not connect to the server using
james-cli in Quick Start step 6 either.
What's wrong? Thanks
------------------------------****----------------------------**
--**---------
------------------------------**------------------------------**---------
youth men
2013-01-13 00:52:17 UTC
Permalink
Hold on, changed from "wrapper.java.classpath.2=../conf" to
"wrapper.java.classpath.2=../conf/lib" in conf/wrapper.conf file was wrong.
The James server doesn't point to mysql database.

Copied mysql-connector-java-5.1.15-bin.jar file into lib folder, added
"wrapper.java.classpath.120=%REPO_DIR%/mysql-connector-java-5.1.15-bin.jar"
in conf/wrapper.conf file. The James server starts. And emails can be read.
But the server doesn't receive email. Still something does not config
correctly.
Post by youth men
Hi Eric
I noticed there is a wrapper.log file in bin folder, That file logs error
message.
I use mysql database and put mysql-connector-java-5.1.15-bin.jar file in
conf/lib folder. But the wrapper cannot load JDBC driver class
'com.mysql.jdbc.Driver'.
I changed "wrapper.java.classpath.2=../conf" to
"wrapper.java.classpath.2=../conf/lib" in conf/wrapper.conf file. Now I can
start the James server by using ./james start
Thanks Eric.
-James
Post by youth men
I used default settings. what should my dns settings be?
Post by Eric Charles
(snipped)
INFO 07:36:10,306 | james.dnsservice | Registered cache, resolver and
Post by youth men
search paths as DNSJava defaults
INFO 07:36:10,680 | james.domainlist | Set autodetect to: true
INFO 07:36:10,680 | james.domainlist | Set autodetectIP to: true
No more log after?
If no, can you check you dns settings?
The rest (below) confirms that the server is not started.
The strange things is that there is no exception in the log (it should
continue after "Set autodetectIP to: true").
Thx, Eric
E:\Programs\James\apache-**james-3.0-beta4\bin>james-cli -h localhost
Post by youth men
-p 9999
listusers
Error connecting to remote JMX agent!
javax.naming.**ServiceUnavailableException [Root exception is
java.rmi.ConnectException: Connection refused to host: localhost; nested
java.net.ConnectException: Connection refused: connect]
at javax.management.remote.rmi.**RMIConnector.connect(Unknown
Source)
at javax.management.remote.**JMXConnectorFactory.connect(**
Unknown
Source)
at
org.apache.james.cli.probe.**impl.JmxServerProbe.connect(**
JmxServerProbe.java:93)
at
org.apache.james.cli.probe.**impl.JmxServerProbe.<init>(**
JmxServerProbe.java:68)
at org.apache.james.cli.**ServerCmd.main(ServerCmd.java:**104)
Caused by: javax.naming.**ServiceUnavailableException [Root exception is
java.rmi.ConnectException: Connection refused to host: localhost; nested
java.net.ConnectException: Connection refused: connect]
at com.sun.jndi.rmi.registry.**RegistryContext.lookup(Unknown
Source)
at com.sun.jndi.toolkit.url.**GenericURLContext.lookup(**Unknown
Source)
at javax.naming.InitialContext.**lookup(Unknown Source)
at
javax.management.remote.rmi.**RMIConnector.**findRMIServerJNDI(Unknown
Source)
at javax.management.remote.rmi.**RMIConnector.findRMIServer(**
Unknown
Source)
... 5 more
java.net.ConnectException: Connection refused: connect
at sun.rmi.transport.tcp.**TCPEndpoint.newSocket(Unknown Source)
at sun.rmi.transport.tcp.**TCPChannel.createConnection(**Unknown
Source)
at sun.rmi.transport.tcp.**TCPChannel.newConnection(**Unknown
Source)
at sun.rmi.server.UnicastRef.**newCall(Unknown Source)
at sun.rmi.registry.RegistryImpl_**Stub.lookup(Unknown Source)
... 10 more
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.**socketConnect(Native Method)
at java.net.PlainSocketImpl.**doConnect(Unknown Source)
at java.net.PlainSocketImpl.**connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.**connect(Unknown Source)
at java.net.SocksSocketImpl.**connect(Unknown Source)
at java.net.Socket.connect(**Unknown Source)
at java.net.Socket.connect(**Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at
sun.rmi.transport.proxy.**RMIDirectSocketFactory.**createSocket(Unknown
Source)
at
sun.rmi.transport.proxy.**RMIMasterSocketFactory.**createSocket(Unknown
Source)
... 15 more
E:\Programs\James\apache-**james-3.0-beta4\bin>telnet localhost 25
Connecting To localhost...Could not open connection to the host, on port
25: Connect failed
E:\Programs\James\apache-**james-3.0-beta4\bin>telnet 127.0.0.1 25
Connecting To 127.0.0.1...Could not open connection to the host, on port
25: Connect failed
Hi,
Post by Eric Charles
What does the log say (log/james-server.log)
What exact cli command do you issue?
What "telnet localhost 25" says?
Thx, Eric
I can not start Apache James Server 3.0 beta4 by using the ./james
Post by youth men
start
in
Quick Start step 5 in Window 7 and Ubuntu 11. But I can start it both in
Window 7 and Ubuntu 11 by using run.bat/run.sh command.
I run the james install command, then james start. I got a message says
james service started, but I still can not connect to the server using
james-cli in Quick Start step 6 either.
What's wrong? Thanks
------------------------------****----------------------------**
--**---------
------------------------------**------------------------------**
---------
Eric Charles
2013-01-13 07:06:45 UTC
Permalink
Hi,
For the mysql jar, yes, we had an bug in beta4 (now fixed in trunk).
For the mail mails not received:
- Do you see any exception in the logs?
- Did you create the domains and users and reuse the same in your email
client?

Thx, Eric
Post by youth men
Hold on, changed from "wrapper.java.classpath.2=../conf" to
"wrapper.java.classpath.2=../conf/lib" in conf/wrapper.conf file was wrong.
The James server doesn't point to mysql database.
Copied mysql-connector-java-5.1.15-bin.jar file into lib folder, added
"wrapper.java.classpath.120=%REPO_DIR%/mysql-connector-java-5.1.15-bin.jar"
in conf/wrapper.conf file. The James server starts. And emails can be read.
But the server doesn't receive email. Still something does not config
correctly.
Post by youth men
Hi Eric
I noticed there is a wrapper.log file in bin folder, That file logs error
message.
I use mysql database and put mysql-connector-java-5.1.15-bin.jar file in
conf/lib folder. But the wrapper cannot load JDBC driver class
'com.mysql.jdbc.Driver'.
I changed "wrapper.java.classpath.2=../conf" to
"wrapper.java.classpath.2=../conf/lib" in conf/wrapper.conf file. Now I can
start the James server by using ./james start
Thanks Eric.
-James
Post by youth men
I used default settings. what should my dns settings be?
Post by Eric Charles
(snipped)
INFO 07:36:10,306 | james.dnsservice | Registered cache, resolver and
Post by youth men
search paths as DNSJava defaults
INFO 07:36:10,680 | james.domainlist | Set autodetect to: true
INFO 07:36:10,680 | james.domainlist | Set autodetectIP to: true
No more log after?
If no, can you check you dns settings?
The rest (below) confirms that the server is not started.
The strange things is that there is no exception in the log (it should
continue after "Set autodetectIP to: true").
Thx, Eric
E:\Programs\James\apache-**james-3.0-beta4\bin>james-cli -h localhost
Post by youth men
-p 9999
listusers
Error connecting to remote JMX agent!
javax.naming.**ServiceUnavailableException [Root exception is
java.rmi.ConnectException: Connection refused to host: localhost; nested
java.net.ConnectException: Connection refused: connect]
at javax.management.remote.rmi.**RMIConnector.connect(Unknown
Source)
at javax.management.remote.**JMXConnectorFactory.connect(**
Unknown
Source)
at
org.apache.james.cli.probe.**impl.JmxServerProbe.connect(**
JmxServerProbe.java:93)
at
org.apache.james.cli.probe.**impl.JmxServerProbe.<init>(**
JmxServerProbe.java:68)
at org.apache.james.cli.**ServerCmd.main(ServerCmd.java:**104)
Caused by: javax.naming.**ServiceUnavailableException [Root exception is
java.rmi.ConnectException: Connection refused to host: localhost; nested
java.net.ConnectException: Connection refused: connect]
at com.sun.jndi.rmi.registry.**RegistryContext.lookup(Unknown
Source)
at com.sun.jndi.toolkit.url.**GenericURLContext.lookup(**Unknown
Source)
at javax.naming.InitialContext.**lookup(Unknown Source)
at
javax.management.remote.rmi.**RMIConnector.**findRMIServerJNDI(Unknown
Source)
at javax.management.remote.rmi.**RMIConnector.findRMIServer(**
Unknown
Source)
... 5 more
java.net.ConnectException: Connection refused: connect
at sun.rmi.transport.tcp.**TCPEndpoint.newSocket(Unknown Source)
at sun.rmi.transport.tcp.**TCPChannel.createConnection(**Unknown
Source)
at sun.rmi.transport.tcp.**TCPChannel.newConnection(**Unknown
Source)
at sun.rmi.server.UnicastRef.**newCall(Unknown Source)
at sun.rmi.registry.RegistryImpl_**Stub.lookup(Unknown Source)
... 10 more
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.**socketConnect(Native Method)
at java.net.PlainSocketImpl.**doConnect(Unknown Source)
at java.net.PlainSocketImpl.**connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.**connect(Unknown Source)
at java.net.SocksSocketImpl.**connect(Unknown Source)
at java.net.Socket.connect(**Unknown Source)
at java.net.Socket.connect(**Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at
sun.rmi.transport.proxy.**RMIDirectSocketFactory.**createSocket(Unknown
Source)
at
sun.rmi.transport.proxy.**RMIMasterSocketFactory.**createSocket(Unknown
Source)
... 15 more
E:\Programs\James\apache-**james-3.0-beta4\bin>telnet localhost 25
Connecting To localhost...Could not open connection to the host, on port
25: Connect failed
E:\Programs\James\apache-**james-3.0-beta4\bin>telnet 127.0.0.1 25
Connecting To 127.0.0.1...Could not open connection to the host, on port
25: Connect failed
Hi,
Post by Eric Charles
What does the log say (log/james-server.log)
What exact cli command do you issue?
What "telnet localhost 25" says?
Thx, Eric
I can not start Apache James Server 3.0 beta4 by using the ./james
Post by youth men
start
in
Quick Start step 5 in Window 7 and Ubuntu 11. But I can start it both in
Window 7 and Ubuntu 11 by using run.bat/run.sh command.
I run the james install command, then james start. I got a message says
james service started, but I still can not connect to the server using
james-cli in Quick Start step 6 either.
What's wrong? Thanks
------------------------------****----------------------------**
--**---------
------------------------------**------------------------------**
---------
Eleonore Charles
2013-01-13 06:15:30 UTC
Permalink
Hi,

For the mysql jar, yes, we had a bug in beta4 (now fixed in trunk).
To debug them mail receive:
- Did you addd domain and user?
- What does the log say

Thx, Eric
Post by youth men
Hold on, changed from "wrapper.java.classpath.2=../conf" to
"wrapper.java.classpath.2=../conf/lib" in conf/wrapper.conf file was wrong.
The James server doesn't point to mysql database.
Copied mysql-connector-java-5.1.15-bin.jar file into lib folder, added
"wrapper.java.classpath.120=%REPO_DIR%/mysql-connector-java-5.1.15-bin.jar"
in conf/wrapper.conf file. The James server starts. And emails can be read.
But the server doesn't receive email. Still something does not config
correctly.
Post by youth men
Hi Eric
I noticed there is a wrapper.log file in bin folder, That file logs error
message.
I use mysql database and put mysql-connector-java-5.1.15-bin.jar file in
conf/lib folder. But the wrapper cannot load JDBC driver class
'com.mysql.jdbc.Driver'.
I changed "wrapper.java.classpath.2=../conf" to
"wrapper.java.classpath.2=../conf/lib" in conf/wrapper.conf file. Now I can
start the James server by using ./james start
Thanks Eric.
-James
Post by youth men
I used default settings. what should my dns settings be?
Post by Eric Charles
(snipped)
INFO 07:36:10,306 | james.dnsservice | Registered cache, resolver and
Post by youth men
search paths as DNSJava defaults
INFO 07:36:10,680 | james.domainlist | Set autodetect to: true
INFO 07:36:10,680 | james.domainlist | Set autodetectIP to: true
No more log after?
If no, can you check you dns settings?
The rest (below) confirms that the server is not started.
The strange things is that there is no exception in the log (it should
continue after "Set autodetectIP to: true").
Thx, Eric
E:\Programs\James\apache-**james-3.0-beta4\bin>james-cli -h localhost
Post by youth men
-p 9999
listusers
Error connecting to remote JMX agent!
javax.naming.**ServiceUnavailableException [Root exception is
java.rmi.ConnectException: Connection refused to host: localhost; nested
java.net.ConnectException: Connection refused: connect]
at javax.management.remote.rmi.**RMIConnector.connect(Unknown
Source)
at javax.management.remote.**JMXConnectorFactory.connect(**
Unknown
Source)
at
org.apache.james.cli.probe.**impl.JmxServerProbe.connect(**
JmxServerProbe.java:93)
at
org.apache.james.cli.probe.**impl.JmxServerProbe.<init>(**
JmxServerProbe.java:68)
at org.apache.james.cli.**ServerCmd.main(ServerCmd.java:**104)
Caused by: javax.naming.**ServiceUnavailableException [Root exception is
java.rmi.ConnectException: Connection refused to host: localhost; nested
java.net.ConnectException: Connection refused: connect]
at com.sun.jndi.rmi.registry.**RegistryContext.lookup(Unknown
Source)
at com.sun.jndi.toolkit.url.**GenericURLContext.lookup(**Unknown
Source)
at javax.naming.InitialContext.**lookup(Unknown Source)
at
javax.management.remote.rmi.**RMIConnector.**findRMIServerJNDI(Unknown
Source)
at javax.management.remote.rmi.**RMIConnector.findRMIServer(**
Unknown
Source)
... 5 more
java.net.ConnectException: Connection refused: connect
at sun.rmi.transport.tcp.**TCPEndpoint.newSocket(Unknown Source)
at sun.rmi.transport.tcp.**TCPChannel.createConnection(**Unknown
Source)
at sun.rmi.transport.tcp.**TCPChannel.newConnection(**Unknown
Source)
at sun.rmi.server.UnicastRef.**newCall(Unknown Source)
at sun.rmi.registry.RegistryImpl_**Stub.lookup(Unknown Source)
... 10 more
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.**socketConnect(Native Method)
at java.net.PlainSocketImpl.**doConnect(Unknown Source)
at java.net.PlainSocketImpl.**connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.**connect(Unknown Source)
at java.net.SocksSocketImpl.**connect(Unknown Source)
at java.net.Socket.connect(**Unknown Source)
at java.net.Socket.connect(**Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at
sun.rmi.transport.proxy.**RMIDirectSocketFactory.**createSocket(Unknown
Source)
at
sun.rmi.transport.proxy.**RMIMasterSocketFactory.**createSocket(Unknown
Source)
... 15 more
E:\Programs\James\apache-**james-3.0-beta4\bin>telnet localhost 25
Connecting To localhost...Could not open connection to the host, on port
25: Connect failed
E:\Programs\James\apache-**james-3.0-beta4\bin>telnet 127.0.0.1 25
Connecting To 127.0.0.1...Could not open connection to the host, on port
25: Connect failed
Hi,
Post by Eric Charles
What does the log say (log/james-server.log)
What exact cli command do you issue?
What "telnet localhost 25" says?
Thx, Eric
I can not start Apache James Server 3.0 beta4 by using the ./james
Post by youth men
start
in
Quick Start step 5 in Window 7 and Ubuntu 11. But I can start it both in
Window 7 and Ubuntu 11 by using run.bat/run.sh command.
I run the james install command, then james start. I got a message says
james service started, but I still can not connect to the server using
james-cli in Quick Start step 6 either.
What's wrong? Thanks
------------------------------****----------------------------**
--**---------
------------------------------**------------------------------**
---------
youthmen.ca
2013-01-15 00:12:09 UTC
Permalink
Yes, I added a domain and users. When I start James by using "run" command,
I can receive email from both the added domain's users and outside(etc,
hotmail).

When I start James by using "james start", I can not receive email from
outside (hotmail). No exception found in log files. If I send an email from
the added domain's one user to another user, I saw errors in imapserver.log:

INFO 18:40:43,499 | james.imapserver | ID=149461997 Unable to append
message to mailbox #private:***@mydomain.com:Sent
org.apache.james.mailbox.exception.MailboxException: Unable to parse message
at
org.apache.james.mailbox.store.StoreMessageManager.appendMessage(StoreMessageManager.java:383)
at
org.apache.james.imap.processor.AppendProcessor.appendToMailbox(AppendProcessor.java:135)
at
org.apache.james.imap.processor.AppendProcessor.doProcess(AppendProcessor.java:72)
at
org.apache.james.imap.processor.AppendProcessor.doProcess(AppendProcessor.java:48)
at
org.apache.james.imap.processor.AbstractMailboxProcessor.doProcess(AbstractMailboxProcessor.java:100)
at
org.apache.james.imap.processor.AbstractMailboxProcessor.process(AbstractMailboxProcessor.java:89)
at
org.apache.james.imap.processor.AbstractMailboxProcessor.doProcess(AbstractMailboxProcessor.java:83)
at
org.apache.james.imap.processor.AbstractMailboxProcessor.doProcess(AbstractMailboxProcessor.java:66)
at
org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:52)
at
org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
at
org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
at
org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
at
org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
at
org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
at
org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
at
org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
at
org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
at
org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
at
org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
at
org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
at
org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
at
org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
at
org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
at
org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
at
org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
at
org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
at
org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
at
org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
at
org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
at
org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
at
org.apache.james.imapserver.netty.ImapChannelUpstreamHandler.messageReceived(ImapChannelUpstreamHandler.java:181)
at
org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:75)
at
org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:558)
at
org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:777)
at
org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296)
at
org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:327)
at
org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:305)
at
org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:218)
at
org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:75)
at
org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:558)
at
org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:777)
at
org.jboss.netty.handler.execution.ChannelUpstreamEventRunnable.run(ChannelUpstreamEventRunnable.java:44)
at
org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:312)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.io.IOException: The system cannot find the path specified
at java.io.WinNTFileSystem.createFileExclusively(Native Method)
at java.io.File.checkAndCreate(File.java:1705)
at java.io.File.createTempFile0(File.java:1726)
at java.io.File.createTempFile(File.java:1838)
at
org.apache.james.mailbox.store.StoreMessageManager.appendMessage(StoreMessageManager.java:260)
... 45 more

I use mysql database to store mails. The URL, user and password are
configured in james-database.property file.
Post by Eleonore Charles
Hi,
For the mysql jar, yes, we had a bug in beta4 (now fixed in trunk).
- Did you addd domain and user?
- What does the log say
Thx, Eric
Hold on, changed from "wrapper.java.classpath.2=../**conf" to
"wrapper.java.classpath.2=../**conf/lib" in conf/wrapper.conf file was
wrong.
The James server doesn't point to mysql database.
Copied mysql-connector-java-5.1.15-**bin.jar file into lib folder, added
"wrapper.java.classpath.120=%**REPO_DIR%/mysql-connector-**
java-5.1.15-bin.jar"
in conf/wrapper.conf file. The James server starts. And emails can be read.
But the server doesn't receive email. Still something does not config
correctly.
Hi Eric
Post by youth men
I noticed there is a wrapper.log file in bin folder, That file logs error
message.
I use mysql database and put mysql-connector-java-5.1.15-**bin.jar file
in
conf/lib folder. But the wrapper cannot load JDBC driver class
'com.mysql.jdbc.Driver'.
I changed "wrapper.java.classpath.2=../**conf" to
"wrapper.java.classpath.2=../**conf/lib" in conf/wrapper.conf file. Now
I can
start the James server by using ./james start
Thanks Eric.
-James
I used default settings. what should my dns settings be?
Post by Eric Charles
(snipped)
Post by youth men
INFO 07:36:10,306 | james.dnsservice | Registered cache, resolver and
Post by youth men
search paths as DNSJava defaults
INFO 07:36:10,680 | james.domainlist | Set autodetect to: true
INFO 07:36:10,680 | james.domainlist | Set autodetectIP to: true
No more log after?
If no, can you check you dns settings?
The rest (below) confirms that the server is not started.
The strange things is that there is no exception in the log (it should
continue after "Set autodetectIP to: true").
Thx, Eric
E:\Programs\James\apache-****james-3.0-beta4\bin>james-cli -h
localhost
Post by youth men
-p 9999
listusers
Error connecting to remote JMX agent!
javax.naming.****ServiceUnavailableException [Root exception is
java.rmi.ConnectException: Connection refused to host: localhost; nested
java.net.ConnectException: Connection refused: connect]
at javax.management.remote.rmi.****
RMIConnector.connect(Unknown
Source)
at javax.management.remote.****
JMXConnectorFactory.connect(**
Unknown
Source)
at
org.apache.james.cli.probe.****impl.JmxServerProbe.connect(**
JmxServerProbe.java:93)
at
org.apache.james.cli.probe.****impl.JmxServerProbe.<init>(**
JmxServerProbe.java:68)
at org.apache.james.cli.****ServerCmd.main(ServerCmd.java:*
***104)
Caused by: javax.naming.****ServiceUnavailableException [Root
exception
is
java.rmi.ConnectException: Connection refused to host: localhost; nested
java.net.ConnectException: Connection refused: connect]
at com.sun.jndi.rmi.registry.****
RegistryContext.lookup(Unknown
Source)
at com.sun.jndi.toolkit.url.****GenericURLContext.lookup(**
**Unknown
Source)
at javax.naming.InitialContext.****lookup(Unknown Source)
at
javax.management.remote.rmi.****RMIConnector.****
findRMIServerJNDI(Unknown
Source)
at javax.management.remote.rmi.****
RMIConnector.findRMIServer(**
Unknown
Source)
... 5 more
java.net.ConnectException: Connection refused: connect
at sun.rmi.transport.tcp.****TCPEndpoint.newSocket(Unknown
Source)
at sun.rmi.transport.tcp.****TCPChannel.createConnection(**
**Unknown
Source)
at sun.rmi.transport.tcp.****TCPChannel.newConnection(****
Unknown
Source)
at sun.rmi.server.UnicastRef.****newCall(Unknown Source)
at sun.rmi.registry.RegistryImpl_****Stub.lookup(Unknown
Source)
... 10 more
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.****socketConnect(Native
Method)
at java.net.PlainSocketImpl.****doConnect(Unknown Source)
at java.net.PlainSocketImpl.****connectToAddress(Unknown
Source)
at java.net.PlainSocketImpl.****connect(Unknown Source)
at java.net.SocksSocketImpl.****connect(Unknown Source)
at java.net.Socket.connect(****Unknown Source)
at java.net.Socket.connect(****Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at
sun.rmi.transport.proxy.****RMIDirectSocketFactory.****
createSocket(Unknown
Source)
at
sun.rmi.transport.proxy.****RMIMasterSocketFactory.****
createSocket(Unknown
Source)
... 15 more
E:\Programs\James\apache-****james-3.0-beta4\bin>telnet localhost 25
Connecting To localhost...Could not open connection to the host, on port
25: Connect failed
E:\Programs\James\apache-****james-3.0-beta4\bin>telnet 127.0.0.1 25
Connecting To 127.0.0.1...Could not open connection to the host, on port
25: Connect failed
Hi,
Post by Eric Charles
What does the log say (log/james-server.log)
What exact cli command do you issue?
What "telnet localhost 25" says?
Thx, Eric
I can not start Apache James Server 3.0 beta4 by using the ./james
Post by youth men
start
in
Quick Start step 5 in Window 7 and Ubuntu 11. But I can start it
both
in
Window 7 and Ubuntu 11 by using run.bat/run.sh command.
I run the james install command, then james start. I got a message says
james service started, but I still can not connect to the server using
james-cli in Quick Start step 6 either.
What's wrong? Thanks
------------------------------******--------------------------**
--**
--**---------
apache.org<
**
------------------------------****----------------------------**--**
---------
------------------------------**------------------------------**---------
Eric Charles
2013-01-15 19:49:52 UTC
Permalink
Seem like you have a file permssion issue on your temp folder?
Eric
Post by youthmen.ca
Yes, I added a domain and users. When I start James by using "run" command,
I can receive email from both the added domain's users and outside(etc,
hotmail).
When I start James by using "james start", I can not receive email from
outside (hotmail). No exception found in log files. If I send an email from
INFO 18:40:43,499 | james.imapserver | ID=149461997 Unable to append
org.apache.james.mailbox.exception.MailboxException: Unable to parse message
at
org.apache.james.mailbox.store.StoreMessageManager.appendMessage(StoreMessageManager.java:383)
at
org.apache.james.imap.processor.AppendProcessor.appendToMailbox(AppendProcessor.java:135)
at
org.apache.james.imap.processor.AppendProcessor.doProcess(AppendProcessor.java:72)
at
org.apache.james.imap.processor.AppendProcessor.doProcess(AppendProcessor.java:48)
at
org.apache.james.imap.processor.AbstractMailboxProcessor.doProcess(AbstractMailboxProcessor.java:100)
at
org.apache.james.imap.processor.AbstractMailboxProcessor.process(AbstractMailboxProcessor.java:89)
at
org.apache.james.imap.processor.AbstractMailboxProcessor.doProcess(AbstractMailboxProcessor.java:83)
at
org.apache.james.imap.processor.AbstractMailboxProcessor.doProcess(AbstractMailboxProcessor.java:66)
at
org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:52)
at
org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
at
org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
at
org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
at
org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
at
org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
at
org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
at
org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
at
org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
at
org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
at
org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
at
org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
at
org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
at
org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
at
org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
at
org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
at
org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
at
org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
at
org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
at
org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
at
org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
at
org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
at
org.apache.james.imapserver.netty.ImapChannelUpstreamHandler.messageReceived(ImapChannelUpstreamHandler.java:181)
at
org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:75)
at
org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:558)
at
org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:777)
at
org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296)
at
org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:327)
at
org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:305)
at
org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:218)
at
org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:75)
at
org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:558)
at
org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:777)
at
org.jboss.netty.handler.execution.ChannelUpstreamEventRunnable.run(ChannelUpstreamEventRunnable.java:44)
at
org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:312)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.io.IOException: The system cannot find the path specified
at java.io.WinNTFileSystem.createFileExclusively(Native Method)
at java.io.File.checkAndCreate(File.java:1705)
at java.io.File.createTempFile0(File.java:1726)
at java.io.File.createTempFile(File.java:1838)
at
org.apache.james.mailbox.store.StoreMessageManager.appendMessage(StoreMessageManager.java:260)
... 45 more
I use mysql database to store mails. The URL, user and password are
configured in james-database.property file.
Post by Eleonore Charles
Hi,
For the mysql jar, yes, we had a bug in beta4 (now fixed in trunk).
- Did you addd domain and user?
- What does the log say
Thx, Eric
Hold on, changed from "wrapper.java.classpath.2=../**conf" to
"wrapper.java.classpath.2=../**conf/lib" in conf/wrapper.conf file was
wrong.
The James server doesn't point to mysql database.
Copied mysql-connector-java-5.1.15-**bin.jar file into lib folder, added
"wrapper.java.classpath.120=%**REPO_DIR%/mysql-connector-**
java-5.1.15-bin.jar"
in conf/wrapper.conf file. The James server starts. And emails can be read.
But the server doesn't receive email. Still something does not config
correctly.
Hi Eric
Post by youth men
I noticed there is a wrapper.log file in bin folder, That file logs error
message.
I use mysql database and put mysql-connector-java-5.1.15-**bin.jar file
in
conf/lib folder. But the wrapper cannot load JDBC driver class
'com.mysql.jdbc.Driver'.
I changed "wrapper.java.classpath.2=../**conf" to
"wrapper.java.classpath.2=../**conf/lib" in conf/wrapper.conf file. Now
I can
start the James server by using ./james start
Thanks Eric.
-James
I used default settings. what should my dns settings be?
Post by Eric Charles
(snipped)
Post by youth men
INFO 07:36:10,306 | james.dnsservice | Registered cache, resolver and
Post by youth men
search paths as DNSJava defaults
INFO 07:36:10,680 | james.domainlist | Set autodetect to: true
INFO 07:36:10,680 | james.domainlist | Set autodetectIP to: true
No more log after?
If no, can you check you dns settings?
The rest (below) confirms that the server is not started.
The strange things is that there is no exception in the log (it should
continue after "Set autodetectIP to: true").
Thx, Eric
E:\Programs\James\apache-****james-3.0-beta4\bin>james-cli -h
localhost
Post by youth men
-p 9999
listusers
Error connecting to remote JMX agent!
javax.naming.****ServiceUnavailableException [Root exception is
java.rmi.ConnectException: Connection refused to host: localhost; nested
java.net.ConnectException: Connection refused: connect]
at javax.management.remote.rmi.****
RMIConnector.connect(Unknown
Source)
at javax.management.remote.****
JMXConnectorFactory.connect(**
Unknown
Source)
at
org.apache.james.cli.probe.****impl.JmxServerProbe.connect(**
JmxServerProbe.java:93)
at
org.apache.james.cli.probe.****impl.JmxServerProbe.<init>(**
JmxServerProbe.java:68)
at org.apache.james.cli.****ServerCmd.main(ServerCmd.java:*
***104)
Caused by: javax.naming.****ServiceUnavailableException [Root
exception
is
java.rmi.ConnectException: Connection refused to host: localhost; nested
java.net.ConnectException: Connection refused: connect]
at com.sun.jndi.rmi.registry.****
RegistryContext.lookup(Unknown
Source)
at com.sun.jndi.toolkit.url.****GenericURLContext.lookup(**
**Unknown
Source)
at javax.naming.InitialContext.****lookup(Unknown Source)
at
javax.management.remote.rmi.****RMIConnector.****
findRMIServerJNDI(Unknown
Source)
at javax.management.remote.rmi.****
RMIConnector.findRMIServer(**
Unknown
Source)
... 5 more
java.net.ConnectException: Connection refused: connect
at sun.rmi.transport.tcp.****TCPEndpoint.newSocket(Unknown
Source)
at sun.rmi.transport.tcp.****TCPChannel.createConnection(**
**Unknown
Source)
at sun.rmi.transport.tcp.****TCPChannel.newConnection(****
Unknown
Source)
at sun.rmi.server.UnicastRef.****newCall(Unknown Source)
at sun.rmi.registry.RegistryImpl_****Stub.lookup(Unknown
Source)
... 10 more
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.****socketConnect(Native
Method)
at java.net.PlainSocketImpl.****doConnect(Unknown Source)
at java.net.PlainSocketImpl.****connectToAddress(Unknown
Source)
at java.net.PlainSocketImpl.****connect(Unknown Source)
at java.net.SocksSocketImpl.****connect(Unknown Source)
at java.net.Socket.connect(****Unknown Source)
at java.net.Socket.connect(****Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at
sun.rmi.transport.proxy.****RMIDirectSocketFactory.****
createSocket(Unknown
Source)
at
sun.rmi.transport.proxy.****RMIMasterSocketFactory.****
createSocket(Unknown
Source)
... 15 more
E:\Programs\James\apache-****james-3.0-beta4\bin>telnet localhost 25
Connecting To localhost...Could not open connection to the host, on port
25: Connect failed
E:\Programs\James\apache-****james-3.0-beta4\bin>telnet 127.0.0.1 25
Connecting To 127.0.0.1...Could not open connection to the host, on port
25: Connect failed
Hi,
Post by Eric Charles
What does the log say (log/james-server.log)
What exact cli command do you issue?
What "telnet localhost 25" says?
Thx, Eric
I can not start Apache James Server 3.0 beta4 by using the ./james
Post by youth men
start
in
Quick Start step 5 in Window 7 and Ubuntu 11. But I can start it
both
in
Window 7 and Ubuntu 11 by using run.bat/run.sh command.
I run the james install command, then james start. I got a message says
james service started, but I still can not connect to the server using
james-cli in Quick Start step 6 either.
What's wrong? Thanks
------------------------------******--------------------------**
--**
--**---------
apache.org<
**
------------------------------****----------------------------**--**
---------
------------------------------**------------------------------**---------
Loading...