Display File System With JTree
Greeting,
Are there any suggestions or example which is about displaying file system with JTree??
Thx Advanced
Just create tree model from your filesystem.
If you like to have fancier look, you may also
create renderer which would show
appropriate icons.
Look to classes
DefaultMutableTreeNode
DefaultTreeModel
( all in the javax.swing.tree )
Similar Messages
-
How to read some images from file system with webdynpro for abap?
Hi,experts,
I want to finish webdynpro for abap program to read some photos from file system. I may make MIMES in the webdynpro component and create photos in the MIMES, but my boss doesn't agree with me using this way. He wish me read these photos from file system.
How to read some images from file system with webdynpro for abap?
Thanks a lot!Hello Tao,
The parameter
icm/HTTP/file_access_<xx>
may help you to access the pictures without any db-access.
The following two links may help you to understand the other possibilities as well.
The threads are covering BSP, but it should be useful for WebDynpro as well.
/people/mark.finnern/blog/2003/09/23/bsp-programming-handling-of-non-html-documents
http://help.sap.com/saphelp_sm40/helpdata/de/c4/87153a1a5b4c2de10000000a114084/content.htm
Best regards
Christian -
Hi
Is there a way of creating a spanned file system with any of the current zip utilities (Native LabView or OpenG etc.)?
Effectively the result should be z01, z02, etc. This format is something that both WinRAR and WinZIP accomplish, so the output would have to be compatible.
The main issue is when compressing a whole directory. Files are rearranged in such a way that the output of all z01, z02 etc. is of the same size (users choice), and I don't quite know how the files are re-arranged in order to achieve that.
ThanksOpenG ZIP does not support spanning or stripped datafiles. The
zerotolerance wrote:
First, thanks for your reply.
I actually have a zip utility that compresses strings rather than files. I believe that this utility can be used to create this spanning, but the trouble is it only gives the actual compressed body and not the required headers.
I don't know much about how the headers and how to create them (i.e. the crc32, relative path etc.) in a zip file.
Most likely you just have the deflate algorrtihme in that "ZIP" utility. It is the compression algorithme normally used in ZIP but has nothing to do with ZIP itself. ZLIB is the most commonly used Open Source library for the deflate() algorithme and is also used in the OpenG ZIP library to implement the ZIP functionality. The function ZLIB Deflate.vi in OpenG ZIP exposes this functionality directly and does mthe same.
zerotolerance wrote:
First, thanks for your reply.
But more importantly, how are the files within a directory arranged so that constant zip files (i.e. z01, z02 etc.) come out.
What I mean by this is the convept that WinRAR uses. So, if you have a directory with mixed file sizes in them, and you choose to have split size of 10MB, the output of each compressed file (i.e. z01, z02 etc.) is always 10MB, appart from the last one of course.
Some help in the headers and the rearrangement of files within a nested direcotry would go a long way.
As for the cmd line, I don't like using that feature with labview because its very heavily limited. It does not give any intermitante control when a job is started. Just to see a simple progress as exe runs we have to jump through hoops, i.e. writting the output to file or clipborad and then reading etc. let alone anything else. and I'm also looking to add alot of other small features along the way, i.e. pausing, cancel, resume progress save, etc. So I definatly cannot take this route.
So ZIP uses deflate() to compress the individucal file streams but the ZIP format is about creating management around it that allows to store multiple such streams into one physical file. It is a little like a filesystem inside a file.
Adding Spanning and striping to OpenG ZIP would be possible and most of it could be done in the LabVIEW part of it, but there would also need to be some modifications to the underlaying shared library to support that. The spanning or striping is done in such a way that filestreams are cut up when necessary and continued in the next data file. The unzipping algorithme has then to be smart enough to recognize that and combine the streams again when uncompressing. For that the compression changes various flags in the header for each stream, which is the part where the shared library would need to be modified to allow those changed values to be writting (and also recognized on decompression). All in all quite a serious project undertaking.
Refusing to use command line tools because they are ugly is not really a smart decision.
Under Unix/Linux it is totally normal to do so and it makes the whole unix system very powerful as you don't need to write huge monotlithic monsters that do everything from making coffee, to cleaning the house and making the laundry but simply make a tool for each task and tie them together through command line chaining. Divide and master is the magic here, not not conquer and swallow!
Also you have here the choice to use a command line tool and be done in 5 minutes, or write a tool like OpenG ZIP that took me probably several man months of work over time. Or wait until me or someone else changes OpenG to support this feature which could be 10 years.
Alternatively you can also try to write a LabVIEW library to use the ZIPArchive shared library from http://www.artpol-software.com/ziparchive/KB/0610051553.aspx. But that is likely going to be a similar effort as writing OpenG ZIP was.
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions -
Hi Guys,
Im trying to create a repository .I have a single node OVM server and have presented two LUN's (Hitachi HUS110 direct attached (via FC))
I've created a server pool and unchecked the clustered server pool. I see the LUN's (physical disk from Oracle Virtual manager) .But when creating the repository i'm having this error
"OVMRU_002030E Cannot create OCFS2 file system with local file server: Local FS OVMSRVR. Its server is not in a cluster. [Thu Dec 04 01:33:10 EST 2014]"
Any steps i missed?Appreciate anyone's input
Regards,
RobertHi Robert,
did you actually add the OVS to the server pool, that you created? -
Dfc: Display file system space usage using graph and colors
Hi all,
I wrote a little tool, somewhat similar to df(1) which I named dfc.
To present it, nothing better than a screenshot (because of colors):
And there is a few options available (as of version 3.0.0):
Usage: dfc [OPTIONS(S)] [-c WHEN] [-e FORMAT] [-p FSNAME] [-q SORTBY] [-t FSTYPE]
[-u UNIT]
Available options:
-a print all mounted filesystem
-b do not show the graph bar
-c choose color mode. Read the manpage
for details
-d show used size
-e export to specified format. Read the manpage
for details
-f disable auto-adjust mode (force display)
-h print this message
-i info about inodes
-l only show information about locally mounted
file systems
-m use metric (SI unit)
-n do not print header
-o show mount flags
-p filter by file system name. Read the manpage
for details
-q sort the output. Read the manpage
for details
-s sum the total usage
-t filter by file system type. Read the manpage
for details
-T show filesystem type
-u choose the unit in which
to show the values. Read the manpage
for details
-v print program version
-w use a wider bar
-W wide filename (un truncate)
If you find it interesting, you may install it from the AUR: http://aur.archlinux.org/packages.php?ID=57770
(it is also available on the archlinuxfr repository for those who have it enabled).
For further explanations, there is a manpage or the wiki on the official website.
Here is the official website: http://projects.gw-computing.net/projects/dfc
If you encounter a bug (or several!), it would be nice to inform me. If you wish a new feature to be implemented, you can always ask me by sending me an email (you can find my email address in the manpage or on the official website).
Cheers,
Rolinh
Last edited by Rolinh (2012-05-31 00:36:48)bencahill wrote:There were the decently major changes (e.g. -t changing from 'don't show type' to 'filter by type'), but I suppose this is to be expected from such young software.
I know I changed the options a lot with 2.1.0 release. I thought it would be better to have -t for filtering and -T for printing the file system type so someone using the original df would not be surprised.
I'm sorry for the inconvenience. There should not be any changes like this one in the future though but I thought it was needed (especially because of the unit options).
bencahill wrote:
Anyway, I now cannot find any way of having colored output showing only some mounts (that aren't all the same type), without modifying the code.
Two suggestions:
1. Introduce a --color option like ls and grep (--color=WHEN, where WHEN is always,never,auto)
Ok, I'll implement this one for 2.2.0 release It'll be more like "-c always", "-c never" and "-c auto" (default) because I do not use long options but I think this would be OK, right?
bencahill wrote:2. Change -t to be able to filter multiple types (-t ext4,ext3,etc), and support negative matching (! -t tmpfs,devtmpfs,etc)
This was already planned for 2.2.0 release
bencahill wrote:Both of these would be awesome, if you have time. I've simply reverted for now.
This is what I would have suggested.
bencahill wrote:By the way, awesome software.
Thanks I'm glad you like it!
bencahill wrote:P.S. I'd already written this up before I noticed the part in your post about sending feature requests to your email. I decided to post it anyway, as I figured others could benefit from your answer as well. Please forgive me if this is not acceptable.
This is perfectly fine Moreover, I seem to have some troubles with my e-mail addressee... So it's actually better that you posted your requests here! -
Error when trying to create a Files System with newfs
HI,
I am running Solaris 8 on a Sun Ultra 10 workstation
I am in the process of configuring the slices on my primary 20 gig hard drive. I have partitioned the hard drive as follows.
# prtvtoc /dev/dsk/c0t0d0s2
* /dev/dsk/c0t0d0s2 (volume "edi_main") partition map
* Dimensions:
* 512 bytes/sector
* 63 sectors/track
* 16 tracks/cylinder
* 1008 sectors/cylinder
* 39535 cylinders
* 39533 accessible cylinders
* Flags:
* 1: unmountable
* 10: read-only
* First Sector Last
* Partition Tag Flags Sector Count Sector Mount Directory
0 2 00 27265392 12583872 39849263 /
1 2 00 0 1049328 1049327
2 5 00 0 39849264 39849263
3 2 00 1049328 26216064 27265391 /edi
The root filesystem was created at installation, and I executed newfs on partition 3 to create the /edi filesystem, and both of them are mounted. I now need to create a filesystem on slice 1 but the newfs command is not working. I get the following output from newfs:
# newfs -v /dev/dsk/c0t0d0s1
newfs: /dev/dsk/c0t0d0s1: Unable to read Disk geometry
Could someone tell me what is wrong with this partition.
Any help would be appreciated.I e-mailed tech support and got my answer.
I should have been using /dev/rdsk and not /dev/dsk when specifying the disk slice to put the file system on. -
After many hours setting up OS10.10 from he scratch the last step should be installing m Adobe apps again.
trying this I always get the error message that creative cloud does not accept case sensitive file systems and I shall use another drive.
This means I have to set up the whole machine again after formatting without case sensitive but then having copy problems with my NAS?
I cannot belief that Adobe is really demanding this. If so this would show how urgent this market need alternatives and some more competition...Hi,
You can refer below link for more information.
Error "Case-sensitive drives not supported" or similar install error | Mac OS -
Extending RAID file system with larger disk
Hi,
I have a Mac pro running 10.7.5.
I used to have two 1TB disks in the internal bays configured as a raid 1 set with a single 1TB file system. One of the disks failed and I replaced it with a 2TB disk which seems to be working ok. However, I'm running out of space in the file system and thought to switch to 2TB.
I just got another 2TB disk and thought to replace the 1TB disk with this one. Then I would have two 2TB disks but I guess after the rebuild the file system is still 1TB. Is there any way to extend the file system and underlying raid set on the go or do I need to disband the raid set to two independent disks first, then repartition one of them, copy data from the remaining half to this now 2TB file system and add the source disk to the raid set afterwards?
HannuI too have a 1,1 and continue to "do things" and upgrade it.
Sonnet Tempo Pro SSD PCIe is perfect for Aperture having it on another bus controller with SATA III 6G and 550MB/sec.
$400 was never too much to spend for SCSI or for my first couple 160MB disk drive for perspective.
Mavericks (cannot run normally on ours) was suppose to offer more advantages in RAID features but even that seems to be MIA.
PS: A Sonnet Allegro USB3 PCIe $54 is a nice way to interface instead of using USB2.
I have used mirror but AFTER having a couple good backups and strategy.
So just buy a new set of 2TB or larger drives.
We have had people with iTunes library alone that needed their own 2TB volume when the largest drives were 1TB.
Done right a stripe RAID is fine, and one way I always used to have larger volumes.
"Extended volume support" is more a Windows thing, not a Mac feature.
As you found, Apple mirror RAIDs cannot 'grow' and you can't add a 2TB and suddenly have larger mirror w/o delete and create a new set.
You may be lucky that you never had a disaster. A 3-way mirror is really preferable, take one of the drives out while rebuild and you still have two in a mirror set. AND clone your volume or use something besides or in addition to TimeMachine.
A backup is only as good as your ability to restore and have a recovery plan - hopefully one that you have practiced doing but never need to. -
Sun QFS cluster file system with Veritas Volume Manager
Hi,
Can someone confirm whether it is possible to create a Sun QFS cluster file system (for Oracle RAC datafiles) using a VxVM volume?
Or must we use Solaris Volume Manager with QFS?
Thinking of storing the static part of the Oracle RAC DB on VxVM raw devices, and the dynamic part on a QFS file system to avoid the overhead of constantly adding new raw devices when i want to create datafiles.
Thanks,
SteveSteve,
No, shared QFS is only supported on Solaris Volume Manager. I've not heard of any plans to test it on VxVM.
Why not keep the static parts of the DB on raw SVM devices? Why keep them on raw devices at all?
Tim
--- -
R12 shared application file system with Rac cloning help
Hello,
We have R12 with two application servers(Shared File system) and two db servers(on RAC). The same setup we have on test as well. We are using linux servers. Can anyone help me with cloning steps? Shared file system to Shared file system and RAC to RAC cloning. I am waiting for your replies.
Thanks
MehmoodHi,
Please refer to:
Note: 783188.1 - Certified RAC Scenarios for E-Business Suite Cloning
Note: 559518.1 - Cloning Oracle E-Business Suite Release 12 RAC-Enabled Systems with Rapid Clone
Note: 799735.1 - Rapid Clone Documentation Resources, Release 11i and 12
Note: 756050.1 - Troubleshooting Autoconfig issues with Oracle Applications RAC Databases
Thanks,
Hussein -
During boot..contains a file system with errors ??
Lately when I boot up my system, I receive the error dev/sda3 contains a file syetem with errors, force check. I have to hit CTRL+D to continue. Then it reboots, goes past sda3 to give the same error for sda4 which it checks...then I hit CTRL+D it reboots and usually continues to a working system.
It has happenned many times in the past few weeks, however once boot up the system is fine. Sda3 is my / partition and sda4 is home. Should I check a log for more info, or should I manually run some checks?
This makes my Arch system's boot up time seem to take as long as Ubuntu .
Thanksglenn69 wrote:Thanks for the response, but that will simply perform the disk checks without the need for a reboot in between.
Not quite - the disk checks during boot don't actually fix filesystem errors. That's your job when you're dropped into the shell. You may run fsck /dev/<your hd> (or fsck -y for non-interactive mode) to repair the filesystem.
glenn69 wrote:That does help, but I'm a bit more interested in the WHY it is happening. How do I find that out to determine a long term solution?
Could be any number of reasons; I find an unclean shutdown is the most common cause for me. But if this happens consistently after you manually repair the filesystems, there may be something wrong with your actual hard drive.
Also, if you're not using a journaling filesystem (ex. ext3/4), try using one. -
Problem:Accessing the file system with servlets ???
Hi...
I have a strange problem with my servlets that run on Win2000 with Apache and 2 Tomcat instances.
I cannot open files through servlets whereas exactly the same code lines work in local standalone java programm.
It seems to be somehting like a rights problem...but I dont know what to do.
thanks for any help
here are my configuration files for Apache and Tomcat:
Apache: *******************************************************
### Section 1: Global Environment
ServerRoot "D:/Webserver_and_Applications/Apache2"
PidFile logs/httpd.pid
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
<IfModule mpm_winnt.c>
ThreadsPerChild 250
MaxRequestsPerChild 0
</IfModule>
Listen 80
LoadModule jk_module modules/mod_jk.dll
JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel info
LoadModule access_module modules/mod_access.so
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_module modules/mod_auth.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule dir_module modules/mod_dir.so
LoadModule env_module modules/mod_env.so
LoadModule imap_module modules/mod_imap.so
LoadModule include_module modules/mod_include.so
LoadModule isapi_module modules/mod_isapi.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module modules/mod_mime.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule userdir_module modules/mod_userdir.so
### Section 2: 'Main' server configuration
ServerAdmin [email protected]
ServerName www.testnet.com:80
UseCanonicalName Off
DocumentRoot "D:/Webserver_and_Applications/root"
JkMount /*.jsp loadbalancer
JkMount /servlet/* loadbalancer
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory "D:/Webserver_and_Applications/root">
Order allow,deny
Allow from all
</Directory>
UserDir "My Documents/My Website"
DirectoryIndex index.html index.html.var
AccessFileName .htaccess
<Files ~ "^\.ht">
Order allow,deny
Deny from all
</Files>
TypesConfig conf/mime.types
DefaultType text/plain
<IfModule mod_mime_magic.c>
MIMEMagicFile conf/magic
</IfModule>
HostnameLookups Off
ErrorLog logs/error.log
LogLevel warn
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
CustomLog logs/access.log common
ServerTokens Full
ServerSignature On
Alias /icons/ "D:/Webserver_and_Applications/Apache2/icons/"
<Directory "D:/Webserver_and_Applications/Apache2/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Alias /manual "D:/Webserver_and_Applications/Apache2/manual"
<Directory "D:/Webserver_and_Applications/Apache2/manual">
Options Indexes FollowSymLinks MultiViews IncludesNoExec
AddOutputFilter Includes html
AllowOverride None
Order allow,deny
Allow from all
</Directory>
ScriptAlias /cgi-bin/ "d:/webserver_and_applications/root/cgi-bin/"
<Directory "D:/Webserver_and_Applications/root/cgi-bin/">
AllowOverride None
Options Indexes FollowSymLinks MultiViews
Order allow,deny
Allow from all
</Directory>
IndexOptions FancyIndexing VersionSort
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*
AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core
AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^
DefaultIcon /icons/unknown.gif
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
AddEncoding x-compress Z
AddEncoding x-gzip gz tgz
AddLanguage da .dk
AddLanguage nl .nl
AddLanguage en .en
AddLanguage et .et
AddLanguage fr .fr
AddLanguage de .de
AddLanguage he .he
AddLanguage el .el
AddLanguage it .it
AddLanguage ja .ja
AddLanguage pl .po
AddLanguage ko .ko
AddLanguage pt .pt
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pt-br .pt-br
AddLanguage ltz .ltz
AddLanguage ca .ca
AddLanguage es .es
AddLanguage sv .se
AddLanguage cz .cz
AddLanguage ru .ru
AddLanguage tw .tw
AddLanguage zh-tw .tw
AddLanguage hr .hr
LanguagePriority en da nl et fr de el it ja ko no pl pt pt-br ltz ca es sv tw
ForceLanguagePriority Prefer Fallback
AddDefaultCharset ISO-8859-1
AddCharset ISO-8859-1 .iso8859-1 .latin1
AddCharset ISO-8859-2 .iso8859-2 .latin2 .cen
AddCharset ISO-8859-3 .iso8859-3 .latin3
AddCharset ISO-8859-4 .iso8859-4 .latin4
AddCharset ISO-8859-5 .iso8859-5 .latin5 .cyr .iso-ru
AddCharset ISO-8859-6 .iso8859-6 .latin6 .arb
AddCharset ISO-8859-7 .iso8859-7 .latin7 .grk
AddCharset ISO-8859-8 .iso8859-8 .latin8 .heb
AddCharset ISO-8859-9 .iso8859-9 .latin9 .trk
AddCharset ISO-2022-JP .iso2022-jp .jis
AddCharset ISO-2022-KR .iso2022-kr .kis
AddCharset ISO-2022-CN .iso2022-cn .cis
AddCharset Big5 .Big5 .big5
AddCharset WINDOWS-1251 .cp-1251 .win-1251
AddCharset CP866 .cp866
AddCharset KOI8-r .koi8-r .koi8-ru
AddCharset KOI8-ru .koi8-uk .ua
AddCharset ISO-10646-UCS-2 .ucs2
AddCharset ISO-10646-UCS-4 .ucs4
AddCharset UTF-8 .utf8
AddCharset GB2312 .gb2312 .gb
AddCharset utf-7 .utf7
AddCharset utf-8 .utf8
AddCharset big5 .big5 .b5
AddCharset EUC-TW .euc-tw
AddCharset EUC-JP .euc-jp
AddCharset EUC-KR .euc-kr
AddCharset shift_jis .sjis
AddType application/x-tar .tgz
AddType image/x-icon .ico
AddHandler type-map var
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
<IfModule mod_ssl.c>
Include conf/ssl.conf
</IfModule>
ScriptAlias /php/ "d:/webserver_and_applications/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe"
Tomcat:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
<Server port="11005" shutdown="SHUTDOWN" debug="0">
<!-- Define the Tomcat Stand-Alone Service -->
<Service name="Tomcat-Standalone">
<!-- Define an AJP 1.3 Connector on port 11009 -->
<Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
port="11009" minProcessors="5" maxProcessors="75"
acceptCount="10" debug="0"/>
<!-- Define the top level container in our container hierarchy -->
<Engine jvmRoute="tomcat1" name="Standalone" defaultHost="localhost" debug="0">
<!-- Global logger unless overridden at lower levels -->
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="catalina_log." suffix=".txt"
timestamp="true"/>
<!-- Because this Realm is here, an instance will be shared globally -->
<Realm className="org.apache.catalina.realm.MemoryRealm" />
<!-- Define the default virtual host -->
<Host name="localhost" debug="0" appBase="webapps" unpackWARs="true">
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="localhost_access_log." suffix=".txt"
pattern="common"/>
<Logger className="org.apache.catalina.logger.FileLogger"
directory="logs" prefix="localhost_log." suffix=".txt"
timestamp="true"/>
<!-- Tomcat Root Context -->
<Context path="" docBase="d:/webserver_and_applications/root" debug="0"/>
<!-- Tomcat Manager Context -->
<Context path="/manager" docBase="manager"
debug="0" privileged="true"/>
<Context path="/examples" docBase="examples" debug="0"
reloadable="true" crossContext="true">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="localhost_examples_log." suffix=".txt"
timestamp="true"/>
<Ejb name="ejb/EmplRecord" type="Entity"
home="com.wombat.empl.EmployeeRecordHome"
remote="com.wombat.empl.EmployeeRecord"/>
<Environment name="maxExemptions" type="java.lang.Integer"
value="15"/>
<Parameter name="context.param.name" value="context.param.value"
override="false"/>
<Resource name="jdbc/EmployeeAppDb" auth="SERVLET"
type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/EmployeeAppDb">
<parameter><name>user</name><value>sa</value></parameter>
<parameter><name>password</name><value></value></parameter>
<parameter><name>driverClassName</name>
<value>org.hsql.jdbcDriver</value></parameter>
<parameter><name>driverName</name>
<value>jdbc:HypersonicSQL:database</value></parameter>
</ResourceParams>
<Resource name="mail/Session" auth="Container"
type="javax.mail.Session"/>
<ResourceParams name="mail/Session">
<parameter>
<name>mail.smtp.host</name>
<value>localhost</value>
</parameter>
</ResourceParams>
</Context>
</Host>
</Engine>
</Service>
<!-- Define an Apache-Connector Service -->
<Service name="Tomcat-Apache">
<Engine className="org.apache.catalina.connector.warp.WarpEngine"
name="Apache" debug="0">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="apache_log." suffix=".txt"
timestamp="true"/>
</Engine>
</Service>
</Server>
*** and here is my workers.properties : *******************************
# workers.properties
# In Unix, we use forward slashes:
ps=/
# list the workers by name
worker.list=tomcat1, tomcat2, loadbalancer
# First tomcat server
worker.tomcat1.port=11009
worker.tomcat1.host=localhost
worker.tomcat1.type=ajp13
# Specify the size of the open connection cache.
#worker.tomcat1.cachesize
# Specifies the load balance factor when used with
# a load balancing worker.
# Note:
# ----> lbfactor must be > 0
# ----> Low lbfactor means less work done by the worker.
worker.tomcat1.lbfactor=100
# Second tomcat server
worker.tomcat2.port=12009
worker.tomcat2.host=localhost
worker.tomcat2.type=ajp13
# Specify the size of the open connection cache.
#worker.tomcat2.cachesize
# Specifies the load balance factor when used with
# a load balancing worker.
# Note:
# ----> lbfactor must be > 0
# ----> Low lbfactor means less work done by the worker.
worker.tomcat2.lbfactor=100
# Load Balancer worker
# The loadbalancer (type lb) worker performs weighted round-robin
# load balancing with sticky sessions.
# Note:
# ----> If a worker dies, the load balancer will check its state
# once in a while. Until then all work is redirected to peer
# worker.
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=tomcat1, tomcat2
# END workers.properties
thanks againHi joshman,
no I didn't get error messages as the relevant lines for reading/writing where between try statements, but you were where right it was/is just a simple path problem.
I expected the refering directory without using a path to be the directory where the servlet is in, but it is not !!??
Do you know if I set this in the setclasspath.bat of tomcat ?
*** set JAVA_ENDORSED_DIRS=%BASEDIR%\bin;%BASEDIR%\common\lib ***
thanks again
Huma -
Sharing the root file system with file server in windows embedded compact 7
Seems it is not practical. I actually see the share, and the top level files and folders. But I have no access right for the files.
And usb disk's mount point are not listed too. Is there any solution?I don't recall this problem. How was the share created? Programmatically by your code? What access list did you set? Did you create NTLM users and are you connected from the remote client as one of those users?
I believe that you may have to create a separate share for alternate device mount points under the root (disks, etc.) but I think the basic operation you want should be possible.
Paul T. -
Using FAT files system with External HDD in SL
is it safe to store files in an external hard drive formatted as FAT? or should i format as HFS+? Is there any possibility that OS X will damage its data?
It depends on the type of file. While loose files generally can be safely stored there, FAT32 drives can't be used to store a bootable copy of Mac OS X, applications, or content such as an iPhoto library.
(101652) -
How to Refresh JTree if a file System got changed during Run-time
Hi,
Can anyone tell me how to refresh a JTree(javax.swing.JTree) used for displaying file system(both local and remote).
I'm getting a problem if a file/directoy is added to the file system, after my Applet is loaded. Actually, i have used DefaultTreeModel's reload() method for refreshing and calling it inside SwingUtilities.invokeLater() using Thread, but its not working.
I want that the tree should reflect the latest Files/Directories on the click of a node, if any file or directory is added under that node.
Plz tell me if this is possible or not.
ThanksHi Shay_te,
Thanx for ur reply as i was eagerly waiting for the one.
but the example is using the TreeTable
and i have used JTree and DefaultTreeModel.
I'm calling reload(node) within treeExpand() method
Then, i'm regestring addTreeModelListener() as
m_model.addTreeModelListener(new javax.swing.event. TreeModelListener(){ }
inside which all 4 methods are over-ridden
code snippet is as follows so plz help me and tell if this the right way:
class DirExpansionListener implements TreeExpansionListener{
DirExpansionListener(){
public void treeExpanded(TreeExpansionEvent event) {
final DefaultMutableTreeNode node = getTreeNode(event.getPath());
final FileNode fnode = getFileNode(node);
Thread runner = new Thread() {
public void run() {
if (fnode != null && fnode.expand(node)) {
Runnable runnable = new Runnable() {
public void run() {
try{
m_model.reload(node);
m_model.addTreeModelListener(new javax.swing.event.TreeModelListener() {
public void treeNodesChanged(javax.swing.event.TreeModelEvent evt) {
public void treeStructureChanged(javax.swing.event.TreeModelEvent evt) {
System.out.println("Path of node changed->"+evt.getTreePath());
public void treeNodesInserted(javax.swing.event.TreeModelEvent evt) {
System.out.println("Nodes Inserted method called..");
public void treeNodesRemoved(javax.swing.event.TreeModelEvent evt) {
System.out.println("Run inside DEvent called..");
//Thread.sleep(500);
//fnode.expand(node);
}catch(Exception e){System.out.println("err :" +e);}
SwingUtilities.invokeLater(runnable);
runner.start();
public void treeCollapsed(TreeExpansionEvent event) {}
Please reply...
Maybe you are looking for
-
Help? Can not find external hard drive after upgrading to 10.6.3
I upgraded my iMac to Snow Leopard 10.6.8 and now my external hard drive does not appear. Not sure what to do.
-
USD to Document currency conversion
I have a report that fetches all line item imbalances between a company and its trading partner in USD. I need to sum all imbalances and depending upon the selection criteria like imbalances over 10k/20k/30k, the respective line items need to be disp
-
I keep getting this error when I try to transform an xml file into html. org.apache.jasper.JasperException: Unable to open taglibrary http://jakarta.apache.org/taglibs/xsl-1.0 : null Here is the jsp file <%@taglib uri="http://jakarta.apache.org/tagli
-
Please help - Victim of the disastrous Twist - Thinkpad s230u
I got fancied by a 2 minute preview of the Lenovo Twispad by a store associate and some online videos and decided to buy it. Now I am repenting my decision like a drug addict in rehab. I have multiple issues with this. I would've returned it, got it
-
Edit in Photoshop doesn't return to Lightroom
It seems like I have seen this topic mentioned, but a search didn't produce an answer. At one time, after requesting and performing an edit in Photoshop, the edited file was then saved to its original file. Lightroom then displayed the edited file r