#25 not working

closed
nobody
5
2009-07-18
2007-11-29
Anonymous
No

Webdisk version: 0.44
server OS : Redhat Linux 4 AS
webserver version: Tomcat 5.5.25
Client Platform: Windows XP
Web Browser : firefox 2.0.0.10 and IE 7.0
my name : rasika sudasinghe
email: rasikas@qatar.net.qa

I configured apache tomcat 5.5.25 , it's working fine.
tomcat base dir: /tomcat/apache-tomcat-5.5.25

I created a folder called "ba" under /tomcat/apache-tomcat-5.5.25/webapps and places webdisk extracted files under "ba" directory.

And created "ba.xml" and placed it under /tomcat/apache-tomcat-5.5.25/conf/Catalina/localhost dir.

and configured web.xml by assigning the correct IP for samba server as well .This file is in /tomcat/apache-tomcat-5.5.25/webapps/ba/webapp/WEB-INF dir.

And restart tomcat.
but I can not access using "http://<my_machine>:8080/ba"

It returns http status 404 error that requested resource not available.

my ba.xml is as

<Context path="/ba" docBase="/tomcat/apache-tomcat-5.5.25/webapps/ba/webapp" debug="0" reloadable="true">
<Manager className="org.apache.catalina.session.PersistentManager" saveOnRestart="false" />
</Context>

Discussion

  • Thomas Bley
    Thomas Bley
    2007-11-29

    Logged In: YES
    user_id=922402
    Originator: NO

    Hello,

    you can check the Tomcat log-files and verify that the application gets loaded correctly when the server starts. Also you can check the application's status in "http://<your_machine>:8080/manager/html/". To run the manager, you need to have sth like
    <user username="admin" password="admin" roles="admin,manager"/>
    in "conf/tomcat-users.xml" (giving user "admin" with password "admin" access to the manager).

    bye
    Thomas

     
  • rasikas
    rasikas
    2007-12-01

    Logged In: YES
    user_id=1948400
    Originator: NO

    catalina.out log file shows as follows.

    INFO: Initializing Coyote HTTP/1.1 on http-8080
    Dec 1, 2007 1:07:16 PM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 937 ms
    Dec 1, 2007 1:07:16 PM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Dec 1, 2007 1:07:16 PM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/5.5.25
    Dec 1, 2007 1:07:16 PM org.apache.catalina.core.StandardHost start
    INFO: XML validation disabled
    Dec 1, 2007 1:07:16 PM org.apache.catalina.startup.HostConfig deployDescriptor
    WARNING: A docBase /tomcat/apache-tomcat-5.5.25/webapps/ba/webapp inside the host appBase has been specified, and will be ig
    nored
    Dec 1, 2007 1:07:16 PM org.apache.catalina.session.PersistentManagerBase start
    SEVERE: No Store configured, persistence disabled
    Dec 1, 2007 1:07:18 PM org.apache.coyote.http11.Http11BaseProtocol start
    INFO: Starting Coyote HTTP/1.1 on http-8080
    Dec 1, 2007 1:07:19 PM org.apache.jk.common.ChannelSocket init
    INFO: JK: ajp13 listening on /0.0.0.0:8009
    Dec 1, 2007 1:07:19 PM org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/56 config=null
    Dec 1, 2007 1:07:19 PM org.apache.catalina.storeconfig.StoreLoader load
    INFO: Find registry server-registry.xml at classpath resource
    Dec 1, 2007 1:07:19 PM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 3035 ms

     
  • rasikas
    rasikas
    2007-12-02

    Logged In: YES
    user_id=1948400
    Originator: NO

    I installed jakarta-tomcat-5.0.28 and now I can get the login page. But still I can not login to my samba server running on Linux.

    What could be the reason

     
  • Logged In: NO

    Hello,

    when a connection to a server fails, the error should be in catalina.out. You can check locally with smbmount if the samba configuration is ok. Since there can be a lot of reasons for login failure (account/password expired, wrong password, wrong login time, ...), I recommend to attach the exact error message and a screenshot. Also you might disable "ntlm" in web.xml and check your smb.conf for "server signing". Other problems might be related to Samba using plain text passwords or using DFS. Also the Samba version is relevant, so you might try "3.0.27a".

    bye
    Thomas

     
  • rasikas
    rasikas
    2007-12-03

    Logged In: YES
    user_id=1948400
    Originator: NO

    My samba server is OK . I can login to samba share in linux using "\\&lt;ip_address>\&lt;userId" from windows machine. userid and password is correct.

    I installed 3.0.27a and add "server signing = Auto" in smb.conf file. Earlier there was no entry for "server signing"

    ntlm is disabled in web.xml.

    I can not see any error message in catalina.out. But I can the following entry when I try to log.
    [actionLogin] Mon Dec 03 14:05:03 AST 2007 WebDisk-Debug[login]: domain=, username=rasika

    I can see the following message as well in catalina.out
    [WebDisk] Charset not supported: Cp850

    I can login to the system by guest account.

    This is the error I can see in browser when tring to log.

    Access denied. smb://192.168.10.26/rasika/ (jCIFS: Logon failure: unknown user name or bad password., -1073741715)

     
  • Logged In: NO

    Hello,

    you can send me your smb.conf and I'll check it.

    bye
    Thomas

     
  • rasikas
    rasikas
    2007-12-04

    Logged In: YES
    user_id=1948400
    Originator: NO

    See the file .
    As there is no place to attach a file , I just mentioned the entries with values that are set in the file
    bash-3.00# more /etc/samba/smb.conf-rasika

    #======================= Global Settings =====================================
    [global]

    # workgroup = NT-Domain-Name or Workgroup-Name
    workgroup = mygroup

    # server string is the equivalent of the NT Description field
    server string = Samba Server
    server signing = Auto

    ; Security and file integrity related options
    lock directory = /var/lock/samba
    locking = yes
    strict locking = no
    fake oplocks = no
    share modes = yes

    printcap name = /etc/printcap
    load printers = yes

    # This option tells cups that the data has already been rasterized
    cups options = raw

    security = share

    log file = /var/log/samba/%m.log

    # Put a capping on the size of the log files (in Kb).
    max log size = 50

    ; encrypt passwords = yes
    smb passwd file = /etc/samba/smbpasswd

    ; include = /etc/samba/smb.conf.%m

    socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

    dns proxy = no

    #============================ Share Definitions ==============================
    idmap uid = 16777216-33554431
    idmap gid = 16777216-33554431
    template shell = /bin/false
    username map = /etc/samba/smbusers
    password server = None
    winbind use default domain = no
    [homes]
    comment = Home Directories
    browseable = no
    writeable = yes

    # specifically define each individual printer
    [printers]
    comment = All Printers
    path = /var/spool/samba
    browseable = no
    # Set public = yes to allow user 'guest account' to print
    printable = yes

    [Guest Share]
    comment = Guest access share
    path = /home/share
    browseable = yes
    writeable = yes
    guest ok = yes

    [home]
    path = /home
    writeable = yes
    guest ok = yes

     
  • Logged In: NO

    when I set "security = user" in smb.conf , I can login now.
    Mr. Thomas , Thanks for the support.

    Is there any way to customise login page. For example , to include custom logo etc.?

     
  • Logged In: NO

    Hello,

    thanks for the info. I'll add that to the documentation.

    bye
    Thomas

     
  • Logged In: NO

    Hello Thomas,

    Is there any way to customize login page. For example , to include custom
    logo and string etc.?

    Regards
    Rasika

     
  • Thomas Bley
    Thomas Bley
    2007-12-07

    Logged In: YES
    user_id=922402
    Originator: NO

    Hello,

    the login page is defined in "webapp/login.html". The logo is in "webapp/login_logo.gif".

    bye
    Thomas

     
  • Thomas Bley
    Thomas Bley
    2009-07-18

    • status: open --> closed