Solved

jboss is not able to  acess shared folder in another machine

Posted on 2010-11-09
7
1,240 Views
Last Modified: 2012-05-10
we are using two jboss servers in two different machines. from the one server we need to create a file in another machine which is having shared folder.

if we write a normal java program it is able to create the file, but when we try through jboss it was failed.

is some thing i have to do with jboss configuration?



0
Comment
Question by:ananthkolli
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 19

Expert Comment

by:ramazanyich
ID: 34102837
probably jboss server is started using different user account which doesn't have write permission to the shared folder. Check the owner of jboss process using ps utility on UNIX.
0
 

Author Comment

by:ananthkolli
ID: 34108244
can u please give me how to check the same in windows, because my jboss server is running in windows 2008 server
0
 
LVL 19

Expert Comment

by:ramazanyich
ID: 34115825
how do you start jboss ? using windows service ? or by calling bat file?
0
Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

 

Author Comment

by:ananthkolli
ID: 34117518
using windows service
0
 
LVL 19

Expert Comment

by:ramazanyich
ID: 34120196
I think here is a problem. Usually then you install jboss as service.it is installed as localsystem account. I think you should modify service startup to be started as user which has access to the shared folder.
0
 

Author Comment

by:ananthkolli
ID: 34120989

Thanks for your reply,

can you please explain me how i can do that.  thanks in advance
0
 
LVL 19

Accepted Solution

by:
ramazanyich earned 250 total points
ID: 34124370
open Services window (from Control Panel or by right clicking on Computer icon/Manage and select services there). Right click on your jboss service. Click on 'Log on' tab. There you will see with which user account it is started. Usually it will be Local System Account.
Select "This Account" Click on "Browse" button and you can type user name there or click on advanced button and try to find user which has rights to the shared folder (probably your current account)
Save service definition and restart jboss service
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Samba is the de-facto standard program (or, more correctly: suite of programs) that UNIX and Linux systems use to share files with Microsoft Windows (and more recently, Mac OS-X) systems. Currently, there are 2 common versions of Samba available,…
If, like me, you have a lot of Dell servers in the estate you manage this article should save you a little time. When attempting to login to iDrac on any server I would be presented with two errors. The first reads "Do you want to run this applicati…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question