1000 Directory

11 views
Skip to first unread message

Loulou

unread,
Jul 31, 2010, 10:00:36 PM7/31/10
to Java Email Server
Hello,

I worked 2 weeks ago on 2.0b3, and when i tried to launch the server,
after filled conffiles, it indicated that 1000/conf/conf-files were
notfound.

Indeed, i made a 1000 symbolic link with JES Server installation
directory target, in bin directory, and after that server started
successfully.

What is the role of 1000 directory?

Andreas Kyrmegalos

unread,
Aug 2, 2010, 12:46:41 PM8/2/10
to java-ema...@googlegroups.com
I believe that the testing suite found itself not executing
properly. The JES2 testing procedure (via maven)
creates temporary folders in the system temporary
directory named as a constantly incrementing integer
number.

If you check out the JESBaseCase1-2 classes you'll see the
1000 figure having a prominent place.

I can not see however how this can interfere with normal
operations other than having the launch scripts point to
the testing directories. I don't think you need symbolic
links pointing to your JES install dir, it's too elaborate and
most likely confusing.

Andreas

Loulou

unread,
Aug 2, 2010, 6:14:38 PM8/2/10
to Java Email Server
But ....

I moved 1000 directory to 1000.old and :

server:/servers/JESBeta/bin# ls -rtl
total 356
-rwxr-xr-x 1 root root 204800 jui 16 11:39 wrapper.exe
-rwxr-xr-x 1 root root 99401 jui 16 11:39 wrapper
-rw-r--r-- 1 root root 1275 jui 16 11:39 Uninstalljes-NT.bat
-rw-r--r-- 1 root root 428 jui 16 11:39 mail.sh
-rw-r--r-- 1 root root 440 jui 16 11:39 mail.bat
-rw-r--r-- 1 root root 911 jui 16 11:39 lookup.sh
-rw-r--r-- 1 root root 909 jui 16 11:39 lookup.bat
-rw-r--r-- 1 root root 15246 jui 16 11:39 jes.sh
-rw-r--r-- 1 root root 342 jui 16 11:39 jeserver
-rw-r--r-- 1 root root 1441 jui 16 11:39 jes.bat
-rw-r--r-- 1 root root 1271 jui 16 11:39 Installjes-NT.bat
lrwxrwxrwx 1 root root 17 aoû 1 03:41 1000.old -> /servers/
JESBeta/

INFO | jvm 1 | 2010/08/03 00:10:49 | 3 août 2010 00:10:49
com.ericdaugherty.mail.server.Mail <init>

INFO | jvm 1 | 2010/08/03 00:10:49 | ATTENTION: JES Starting
Up...

INFO | jvm 1 | 2010/08/03 00:10:49 | The application failed to
initialize.

INFO | jvm 1 | 2010/08/03 00:10:49 | Invalid mail.conf
ConfigurationFile! /servers/JESBeta/bin/1000/conf/mail.conf

INFO | jvm 1 | 2010/08/03 00:10:49 | java.lang.RuntimeException:
Invalid mail.conf ConfigurationFile! /servers/JESBeta/bin/1000/conf/
mail.conf

And i didn't touched anything to the script.

Andreas Kyrmegalos

unread,
Aug 5, 2010, 4:32:50 PM8/5/10
to java-ema...@googlegroups.com
I am assuming that you
are using Java Service Wrapper to start JES
either in windows or linux (ubuntu?). Can you
post a copy of the wrapper.conf file? The entry
wrapper.app.parameter.2 is of particular interest.
It should read /servers/JESBeta/bin/1000. This
entry is to point to your install dir. That should
actually be /servers/JESBeta. This is a manual
only entry. Ideally, zip up the entire install dir
and mail it to me directly so I can draw a more
concise opinion.

Andreas

Loulou wrote:
> But ....
>
> I moved 1000 directory to 1000.old and :
>
> server:/servers/JESBeta/bin# ls -rtl
> total 356
> -rwxr-xr-x 1 root root 204800 jui 16 11:39 wrapper.exe
> -rwxr-xr-x 1 root root 99401 jui 16 11:39 wrapper
> -rw-r--r-- 1 root root 1275 jui 16 11:39 Uninstalljes-NT.bat
> -rw-r--r-- 1 root root 428 jui 16 11:39 mail.sh
> -rw-r--r-- 1 root root 440 jui 16 11:39 mail.bat
> -rw-r--r-- 1 root root 911 jui 16 11:39 lookup.sh
> -rw-r--r-- 1 root root 909 jui 16 11:39 lookup.bat
> -rw-r--r-- 1 root root 15246 jui 16 11:39 jes.sh
> -rw-r--r-- 1 root root 342 jui 16 11:39 jeserver
> -rw-r--r-- 1 root root 1441 jui 16 11:39 jes.bat
> -rw-r--r-- 1 root root 1271 jui 16 11:39 Installjes-NT.bat

> lrwxrwxrwx 1 root root 17 ao� 1 03:41 1000.old -> /servers/
> JESBeta/
>
> INFO | jvm 1 | 2010/08/03 00:10:49 | 3 ao�t 2010 00:10:49

Loulou

unread,
Aug 6, 2010, 2:39:38 PM8/6/10
to Java Email Server
Here is the process if you want to reproduce :

mkdir /servers/JES2BETA3
cd /servers/JES2BETA3
wget http://switch.dl.sourceforge.net/project/javaemailserver/JES%202/Version%203.0%20Beta%203/jes-2.0-beta3.zip
unzip jes-2.0-beta3.zip
rm -rf jes-2.0-beta3.zip
cp ../JESBeta/conf/user.conf ./conf/user.conf
cp ../JESBeta/conf/realms.conf ./conf/realms.conf
cp ../JESBeta/conf/mail.conf ./conf/mail.conf
cd bin
chmod +x wrapper
sh jes.sh start
cd ../logs
cat wrapper.log

INFO | jvm 1 | 2010/08/06 20:30:51 | The application failed to
initialize.
INFO | jvm 1 | 2010/08/06 20:30:51 | Invalid mail.conf
ConfigurationFile! /servers/JES2BETA3/bin/1000/conf/mail.conf
INFO | jvm 1 | 2010/08/06 20:30:51 | java.lang.RuntimeException:
Invalid mail.conf ConfigurationFile! /servers/JES2BETA3/bin/1000/conf/
mail.conf

cd ../conf
grep 1000 *

So the 1000 reference is in the package, because grep returns nothing.
No reference to 1000 directory in conf files. And i just copied those
3 files, for the user and realms definition. I just modified the HELO
conf point in mail.conf.

Andreas Kyrmegalos

unread,
Aug 7, 2010, 5:53:08 AM8/7/10
to Java Email Server
jes.sh is to be used only after following the process dictated in
installation.txt. If root privileges are not required use mail.sh.

Please read the updated additionalNotes and installation docus.

Thanks for bringing this to our attention. If you encounter any issues
after trying to use JES2 as laid out in the docus do come back.

Andreas

On Aug 6, 9:39 pm, Loulou <arthiolis2...@gmail.com> wrote:
> Here is the process if you want to reproduce :
>
> mkdir /servers/JES2BETA3
> cd /servers/JES2BETA3
> wgethttp://switch.dl.sourceforge.net/project/javaemailserver/JES%202/Vers...

Loulou

unread,
Aug 7, 2010, 7:26:51 AM8/7/10
to Java Email Server
I think you will hate me Andreas ;-)

I'm in root, and as you said, and written in installation doc, the
wrapper.app.parameter.2 conf line is to specify where are located
server files.

So I filled it with : wrapper.app.parameter.2=/servers/JES2BETA3

After that, I tried to start the server with ./jes.sh start, and in
the log , and ...

INFO | jvm 1 | 2010/08/07 13:14:46 | GRAVE: Error creating users
directory: /servers/JES2BETA3/users. No mail will be delivered to
local users!
INFO | jvm 1 | 2010/08/07 13:14:46 | The application failed to
initialize.
INFO | jvm 1 | 2010/08/07 13:14:46 | Unable to create users
Directory.
INFO | jvm 1 | 2010/08/07 13:14:46 | java.lang.RuntimeException:
Unable to create users Directory.

So if this line is filled, directories can't be created, otherwise,
1000 directory appears as not existing.

My mistake, as specified in Installation docus, jes.sh should only be
used under a specified user. So il will try a normal installation as
described, and will come back.Otherwise, mail.sh script is already
good in root user, just we can't stop properly the server with it.

Maybe i will translate the documentation for french users, as me :-)

Loulou.

Andreas Kyrmegalos

unread,
Aug 7, 2010, 11:44:59 AM8/7/10
to java-ema...@googlegroups.com
The user used to launch JES should have the privileges
that will allow creating folders in your /servers/JES2BETA3
folder. I believe (from taking a look at your previous messages
in this thread) that /servers/JES2BETA3 is owned by the root
user. Only a user with root access can create folders in this
folder. One option is to run chown on the install dir and
change the user/group ownership to one of your liking.

Andreas

Reply all
Reply to author
Forward
0 new messages