Can a servlet write over the network?
I need to read/write files into/from a servlet over a network (from/to another computer on the network?
Can it be done?
If yes, how do you write the path? Like Windows, i.e. \\x.y.z.t\sharename\filename, or like Linux, i.e. with //... ?
Thank you all.
1. As far as I know, there are no Applet-like restrictions on what the servlet can do. It is limited by user the servlet container runs under
2. As far as network connection file names, my guess would be that it would be the same as in an application. I am totally uninformed on this issue
Similar Messages
-
Can't save library over the network.
Long ago I replaced my itunes library on my laptop with an alias to the library on my iMac. Maybe this isn't supported, but iTunes was handling it very well and seemed to be well aware that it was not a local library. Just today, however, I was forced to hard boot my laptop while iTunes was open. This seemed to have corrupted my library, or left a lock, or something. I replaced the library and XML from backup, but now my laptop is complaining about not having sufficient privileges to save the file. I set both files to 777 and I still get the same error, so I don't really believe it. Does anyone have any ideas? Thanks!
Problem solved.
The reason is the IP for the printer is set at 192.168.2.20 while my router is 192.168.1.1.
So after I changed the printer's IP to 192.168.1.20, it works. -
Fax over the network with HP LaserJet 400 ColorMFP M475dw
Hi there, I was trying to send fax over the network with HP LaserJet 400 ColorMFP M475dw, I have connected the printer/scan/fax on a wired network, just have 3 computers on it, all of them can scan or print. But I can't find any option to just FAX from Microsoft Word or Adobe Acrobat Reader, going to File ---> Print ---> and select M475dw "FAx", I installed the lasted version of the drivers downloaded from hp.com and there's no way to install this multifunction printer as a FAX.
So I can't see the FAX on Printers in the control panel of windows.
I have never got an error message from any computer during the installation process either.
Does anyone has an idea of what to do here?
Thanks ahead.Thanks for your quick answer, I really appreciate it. But unfortunately, it didn't resolve my problem
Actually any of the workstations after complete the installation (with the last version of drivers downloaded just now from hp.com) can't recognize the HP LaserJet Pro 400 Color MFP M475dw, as a fax. I can print and scan over the network, or connecting the printer with a usb cable. I just can't see the icon "HP LaserJet Pro 400 Color MFP M475dw FAX" in Control Panel ---> Devices and Printers. I did a full installation when I were asked during the installation process... I did then I custom installation and neither of them seems to work to me
This is very strange, it never happened to me with any other models of all-in-on (printer/fax/scanner) -
Can you share a USB hard drive over the network through an Airport Express?
After asking a few individuals at my local Apple Store, I have been consistantly told that I can plug in a usb hard drive into the bottom of my airport express and share it over the network.
However, after making sure my airport express has the latest firmware (6.3) and even donwloading and installing the airport disk utility I still am not having any luck getting my HFS (journaled) usb 2.0 hard drive to be visible on the network.
I have also noticed that when following the instructions on this apple support document (http://docs.info.apple.com/article.html?path=AirportUtility/5.1/en/ap2108.html) that when I get to step 3, the option to click disks is grayed out. I assume this supports my theory that the airport express won't share hard drives, can anyone confirm?
Am I doing something wrong? Or were the reps at my store mistaken and the only hardware that can share a hard drive is the airport extreme not express?
Thanks
Message was edited by: althe3rdThanks for the swift reply.
Continuing my investigation I started to come to the conclusion you just mentioned. I am surprised none of the staff at my store realized this. However, at least I know now.
The basis for me looking to this is... With leopard on the eve of its release, I wanted to get a large network accessible storage solution that would allow my wife's and I's Macbook pros to use time machine on the network drive when we were at home. Since we rarely use our laptops while sitting at a desk connected to an external drive, I figured this would be a great idea and started to look into various NAS solutions.
Surprisingly, most generic (netgear, western digital) network drives require you use proprietary software to connect to them, and are only compatible with windows xp. After seeing the options the airport extreme opens up in terms of network storage I figured it would be the best bet.
Do you have any other suggestions besides getting an airport extreme? I would rather not have to buy a full blown mac that I have to leave on 24/7 to share the drives. Or do you see any possible pitfalls to this idea? Such as, would time machine forget to use the network drive after a while since it wouldn't always be available to it when away from home? -
error -43 when try playback on win7 64bits over the network QT that recide MacPro osx 10.5 however i can play with VLC player, This happend when the QT is inside a Folder with name longer 8 chars other files has no problem with long names just the QT nfs sharing
Never mind, I already found the solution myself.
What I did wrong was:
- not copying the master image to the nbi folder
- selecting the netinstall-restore.dmg image as source to copy to my HD.
The thing is, when you create a netinstall image for 10.5, the image itself is already included in the netinstall image so you don't have to do anything else.
With the 10.4 image however, you also have to copy the master image to the NetBootSP0 directory.
In the *.nbi folder contains an netinstall-restore.dmg file. But that is only to boot you to netrestore, it's not the image itself.
Other alternative is to copy the images to another folder that you share with AFP and adjust the configuration of netrestore like described in this manual:
http://www.shellharbourd.det.nsw.edu.au/pdf/misc/osxrestoringnet.pdf
This manual was also how I figured out that I forgot to copy the image to the NetBootSP0 folder. -
Can object transfer over the network without serialization?
Hi all,
Can we send the objects over the network (from clent to server)
without seraializing it?
Thanks in advanceYes. By sending its values by any other means, like as XML.
-
I cannot print any email or web pages over a wireless home network. I know that I can print my files over this network, just not anything from the web or emails using Firefox. I am using Windows 7 and printing to an Epson.
== This happened ==
Every time Firefox opened
== when I set up the wireless home network.The most likely reason for this is that the wrong printer is chosen in the File->Print window.
In Firefox, go to File->Print and click the dropdown box with printer names. Ensure that the correct network printer is selected, then try printing again. -
i'm using iphone 4s with ios6, but why can't make facetime over the cellular networks?thanx for the answer
Depends on your carrier and data plan.
With ATT in the US for example, you can FaceTime via ATT's cellular network if you have a shared data plan only. -
I want to share my external hard drive over the network
I found a lot of threads and discussions about this, but no answers.
I have a WD My Book External Hard Drive that I'm looking to share over the network. However, when I add the volume to the "Shared Folders" or even a folder within the volume and the "Users:" are grayed out.
When getting info on the volume, Sharing & Permissions says, "You can read and write"
Any ideas?Hi Keith,
Thanks for your response; however, the first screenshot is through the Sharing settings in the System Preferences. -
Make a voice transmitter over the network?
Hi i have read that it is possible in javax.sound to send or transmit live audio over the network or simply make a VoIP phone using the javax.sound api. I would like to ask if how can I be able to send the sound of the network. I have this step by step instruction about capturing and sending the voice in the network:
Use TargetDataLine for streaming capture
The TargetDataLine is wrapped in an AudioInputStream so that it can be converted to the network format with AudioSystem
a capture thread reads from the converted AudioInputStream and writes it to the network connection's OutputStream.
Here is my code:
audioFormat = getAudioFormat();
DataLine.Info dataLineInfo = new DataLine.Info(TargetDataLine.class, audioFormat);
targetDataLine = (TargetDataLine)AudioSystem.getLine(dataLineInfo);
audioInputStream = new AudioInputStream(targetDataLine);I am not sure about this code but I am sure that there must be a targetDataLine associated in sending the voice. Please help me with this. Thank you.TargetDataLines are for reading from, SourceDataLines are for writing to, and AudioInputStreams are for loading/saving from a file.
That said, there will be a TargetDataLine you can read from that's associated with your microphone. You create an AudioInputStream to read from the TargetDataLine (which is just an argument in the constructor), and then you can do...
AudioSystem.write
Give it the AIS associated with hte TDL, and you can either have it write it to a file or to an output stream. If that output stream was, say...an IP socket stream...then you could send it over the network to the other side...where you'd then need to construct an AudioInputStream to read it from the IP socket stream, and then to play it, you'd read some data from the AIS and write it to a SourceDataLine.
Here are some resources to help you with the JavaSound stuff.
JavaSound Example code (take a look at SimpleAudioPlayer & SimpleAudioRecorder in the Audio Playback and Recording section)
[http://www.jsresources.org/examples/]
Programmer's guide
[http://java.sun.com/j2se/1.5.0/docs/guide/sound/programmer_guide/contents.html]
And then just the normal Java SE6 API
[http://java.sun.com/javase/6/docs/api/] -
Hello
I need to copy files over the network PSSession . ( Firewall / DMZ / Etc. )
I have a script where I copy from my local server ( server1) to the remote server ( server2 ), but I can´t not make script that will copy from the remote server to my local by my session. From server2 to server1
Script is as below ...:-)
HELP : ....
winrm s winrm/config/client '@{TrustedHosts="SERVER2"}'
$Source = "D:\test\ok.log"
$Destination = "D:\test\ok.log"
$session = New-PSSession -ComputerName SERVER2
Set-StrictMode -Version Latest
## Get the source file, and then get its content
$sourcePath = (Resolve-Path $source).Path
$sourceBytes = [IO.File]::ReadAllBytes($sourcePath)
$streamChunks = @()
## Now break it into chunks to stream
Write-Progress -Activity "Sending $Source" -Status "Preparing file"
$streamSize = 1MB
for($position = 0; $position -lt $sourceBytes.Length;
$position += $streamSize)
$remaining = $sourceBytes.Length - $position
$remaining = [Math]::Min($remaining, $streamSize)
$nextChunk = New-Object byte[] $remaining
[Array]::Copy($sourcebytes, $position, $nextChunk, 0, $remaining)
$streamChunks += ,$nextChunk
$remoteScript = {
param($destination, $length)
## Convert the destination path to a full filesytem path (to support
## relative paths)
$Destination = $executionContext.SessionState.`
Path.GetUnresolvedProviderPathFromPSPath($Destination)
## Create a new array to hold the file content
$destBytes = New-Object byte[] $length
$position = 0
## Go through the input, and fill in the new array of file content
foreach($chunk in $input)
Write-Progress -Activity "Writing $Destination" `
-Status "Sending file" `
-PercentComplete ($position / $length * 100)
[GC]::Collect()
[Array]::Copy($chunk, 0, $destBytes, $position, $chunk.Length)
$position += $chunk.Length
## Write the content to the new file
[IO.File]::WriteAllBytes($destination, $destBytes)
## Show the result
Get-Item $destination
[GC]::Collect()
## Stream the chunks into the remote script
$streamChunks | Invoke-Command -Session $session $remoteScript `
-ArgumentList $destination,$sourceBytes.Length
Remove-PSSession -Session $sessionBut have will the script look, if i need to copy from
From server2 to server1.
My script copy from server1 to server2 and working, but I need server2
to server1. -
HP Laserjet M1132 MFP is too slow over the network!
Hi,
My HP Laserjet M1132 MFP is too slow over the network!
I have connect the printer to a windows XP 32bit SP3 using UBS port. The printer works fine on the local computer but when sharing it over the network it works too slow, for example with print test page it takes about 45 seconds to print and for other documents it takes much longer time.
I have installed the latest driver form HP website and upgrade the firmware it the latest version.
It happens on other Windows XP machines as well.
I connected the printer to my laptop (Windows 7 64bit) and it works fine (No delays over the network) and it seems that this problem have some relations with the windows XP Driver.
I have used local port trick on remote machines (instead of regular method) like this:
''add a local printer;
'new port'
'localport'
\\XPcomputer\HPPrinterName as port name
but still nothing!
There is nothing wrong with the network, we use to use a Samsung printer on the same machines over the network with no problem.
I Really appreciate your HELP!
This question was solved.
View Solution.BEHZAD_T, how is the printer connected to the network (wireless or Ethernet)? If it is slow wirelessly, I would suggest trying to connect the printer to your router with the Ethernet cord and install it to the networked computer that way.
Another question is, relatively speaking, how close to your router are the Samsung printer and the HP printer? Depending on the distance (and what stands between the devices) there can be a lag between sending a print job and it being received by the printer.
Let me know! -
The Exchange Management Shell fails to connect in Exchange 2013 environment, this is a DAG environment and previously it indicates another error message, which is in my another thread. We fixed that error by delete the retired proxy entry in the server registry,
after that the error is gone but changed to below one, anyway the EMS still fails to connect to all servers:
VERBOSE: Connecting to NSWVIP999WTMBX.air.abc.au.
New-PSSession : [NSWVIP999WTMBX.air.abc.au] Connecting to remote server NSWVIP999WTMBX.air.abc.au failed with the
following error message : WinRM cannot complete the operation. Verify that the specified computer name is valid, that
the computer is accessible over the network, and that a firewall exception for the WinRM service is enabled and allows
access from this computer. By default, the WinRM firewall exception for public profiles limits access to remote
computers within the same local subnet. For more information, see the about_Remote_Troubleshooting Help topic.
At line:1 char:1
+ New-PSSession -ConnectionURI "$connectionUri" -ConfigurationName Microsoft.Excha ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotin
gTransportException
+ FullyQualifiedErrorId : WinRMOperationTimeout,PSSessionOpenFailed
Failed to connect to an Exchange server in the current site.
Enter the server FQDN where you want to connect.:
Then it just show can't connect to all the exchange servers, from the wording it seems pointing to the Windows firewall settings for winRM, but when I look at the windows firewall found it's turned off. We use Sophos enterprise for the security, but all
other 3 exchange servers didn't have the same issue.Hi Lynn,
Thanks for your analyst and reply, I run the command as you suggested and checked accordingly to Task Manager, but seems none of them indicates a firewall or anti-virus.
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 4
TCP 0.0.0.0:808 0.0.0.0:0 LISTENING 2260
TCP 172.17.2.123:444 172.16.2.127:8050 ESTABLISHED 4
TCP 172.17.2.123:444 172.16.2.127:8069 ESTABLISHED 4
TCP 172.17.2.123:444 172.17.2.127:8053 ESTABLISHED 4
TCP 172.17.2.123:10952 172.16.2.68:80 ESTABLISHED 3296
TCP 172.17.2.123:11185 172.16.2.90:8080 SYN_SENT 468
TCP 172.17.2.123:11190 172.16.2.90:8080 SYN_SENT 15268
TCP 172.17.2.123:11330 172.16.2.90:8080 SYN_SENT 1296
TCP [::]:80 [::]:0 LISTENING
4
TCP [::]:808 [::]:0 LISTENING
2260
TCP [::1]:6001 [::1]:8028 ESTABLISHED 4764
TCP [::1]:6001 [::1]:8029 ESTABLISHED 4764
TCP [::1]:6001 [::1]:8030 ESTABLISHED 4764
TCP [::1]:6001 [::1]:8031 ESTABLISHED 4764
TCP [::1]:6001 [::1]:8032 ESTABLISHED 4764
TCP [::1]:6001 [::1]:8033 ESTABLISHED 4764
TCP [::1]:6001 [::1]:8034 ESTABLISHED 4764
TCP [::1]:6001 [::1]:8035 ESTABLISHED 4764
TCP [::1]:6001 [::1]:8036 ESTABLISHED 4764
TCP [::1]:6001 [::1]:8037 ESTABLISHED 4764
TCP [::1]:6001 [::1]:8040 ESTABLISHED 4764
TCP [::1]:6001 [::1]:8041 ESTABLISHED 4764
TCP [::1]:6001 [::1]:8048 ESTABLISHED 4764
TCP [::1]:6001 [::1]:8049 ESTABLISHED 4764
TCP [::1]:6001 [::1]:8059 ESTABLISHED 4764
TCP [::1]:6001 [::1]:8060 ESTABLISHED 4764
TCP [::1]:8028 [::1]:6001 ESTABLISHED 9980
TCP [::1]:8029 [::1]:6001 ESTABLISHED 9980
TCP [::1]:8030 [::1]:6001 ESTABLISHED 9980
TCP [::1]:8031 [::1]:6001 ESTABLISHED 9980
TCP [::1]:8032 [::1]:6001 ESTABLISHED 9980
TCP [::1]:8033 [::1]:6001 ESTABLISHED 9980
TCP [::1]:8034 [::1]:6001 ESTABLISHED 9980
TCP [::1]:8035 [::1]:6001 ESTABLISHED 9980
TCP [::1]:8036 [::1]:6001 ESTABLISHED 9980
TCP [::1]:8037 [::1]:6001 ESTABLISHED 9980
TCP [::1]:8040 [::1]:6001 ESTABLISHED 9980
TCP [::1]:8041 [::1]:6001 ESTABLISHED 9980
TCP [::1]:8048 [::1]:6001 ESTABLISHED 9980
TCP [::1]:8049 [::1]:6001 ESTABLISHED 9980
TCP [::1]:8059 [::1]:6001 ESTABLISHED 9980
TCP [::1]:8060 [::1]:6001 ESTABLISHED 9980
TCP [fe80::9054:e8f5:f885:8105%20]:808 [fe80::9054:e8f5:f885:8105%20]:9901
ESTABLISHED 2260
TCP [fe80::9054:e8f5:f885:8105%20]:9901 [fe80::9054:e8f5:f885:8105%20]:808
ESTABLISHED 4868
This is the full result, among them
4 -- System -- NT Kernel & System
468 -- There is no process associated with PID 468
1296 -- svchost.exe -- Host Process for Windows Service
2260 -- SMSvcHost.exe -- SMSvcHost.exe
3296 -- CcmExec.exe -- CCM Executive
4764 -- Microsoft.Exchange.RpcClientAccess.Service.exe -- Microsoft.Exchange.RpcClientAccess.Service.exe
4868 -- Microsoft.Exchange.ServiceHost.exe -- Microsoft.Exchange.ServiceHost.exe
9980 -- w3wp.exe -- IIS Worker Process
15268 -- ServerManager.exe -- Server Manager -
Airport won't print over the network
I have a basic HP Photosmart C4200 series printer. It works fine when I plug it directly into my computer but when I plug it into the router, it won't print and this message comes up : "Unable to read response header - short read"
When I delete/add the printer from Preferences, it finds the printer and establishes connection but when I try to print over the network, it gives me that error message.
A weird thing I found was that when connected to the airport, my printer shows up under the iDisks tab under the Airport Utilities instead of being in the Printers tab...Welcome to the discussions!
A number of entry level printers are designed so that they will only work when they are connected directly to a computer, so that may possibly explain your problem.
To verify, you can work your way through Apple's troubleshooting guide to see if this is the case. If you've completed all the steps and still can't print, I think you have your answer.
http://support.apple.com/kb/TS1253
http://support.apple.com/kb/TS1253 -
Printer HP Envy 4500 Series cannot be contacted over the network
My wireless printing chooses when it wants to work, and right now it's really acting up. It is connected wirelessly, it is the default printer, but after troubleshooting it is telling me "Printer HP Envy 4500 Series cannot be contacted over the network." What can I do to get printing again?
Hello featherfamily,
Welcome to the HP Forums.
I see that you are having an issue with the printer not connecting with a wireless connection.
Please click on the following link that deals with when the 'Printer is offline' Message Displays on the Computer and the Printer Does Not Print: Windows 7.
Please make sure that you have the printer power cable connected directly to a wall outlet and not a power bar/strip. Here is a document that uses a LaserJet printer as an example but it is meant for HP products in general. Please click on the following link that explains the Issues when Connected to an Uninterruptible Power Supply/Power Strip/Surge Protector.
If the troubleshooting does not help resolve your issue, I would then suggest calling HP's Technical Support to see about further options for you. If you are calling within North America, the number is 1-800-474-6836 and for all other regions, click here: click here.
Thanks for your time.
Click the “Kudos Thumbs Up" at the bottom of this post to say “Thanks” for helping!
Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
W a t e r b o y 71
I work on behalf of HP
Maybe you are looking for
-
Error message "F" using Menu Builder
I have created two movies, saved them as .cp files and also exported them as EXE files. I inserted the the EXE versions as Items into a MenuBuilder project. I save that project as an .mpg file and exported it as an EXE file as well. What I wanted to
-
"Free Space" Partition disaster on new Mountain Lion iMac
"Help" I just received a new 27 inch iMac as a replacement for my old machine, which apparently disntegrated during warranty. In setting it up, I tried to create a small partition on the hard drive to run a Linux distro for testing purposes. It seems
-
Standard report to view customer master
Hi all, Is there any Transaction code/ Reports to view all existing customer details... Thanx in advance. S.Ramesh
-
Find the IE security settings in BSP
Hello All, I have a BSP application makes use of ActiveX control for displaying a calendar. This ActiveX control is stored in the form of cab file in the mime repository of the server. When the user runs the BSP application for the first time the act
-
Nokia 5800 Low GPRS connection Problem In canada /...
Hi , i bought a Nokia 5800 phone , from Middle East , but they come from europe in general I live in Canada thought and my Connection to FIDO GPRS is veryyy Loww take a minute to log on evry page .....a friend told me that the problem is because you