Macromedia application server is unreachable
Hi, we are running a virtual server (p2v) copy of our
production and dev CF6MX sites.
The virtual copy of the dev server, works fine.
However, in production we are getting the dreaded "Macromedia
application server is unreachable or it does not have a mapping to
process this request" server error. Our prod server was installed
differently as it was originally intended to be a load-balanced
server so the services in prod have "Macromedia" in their names,
not in dev.
I've re-booted the server, restarted IIS, ran the
bin/jrun.exe utility, and am still getting the error. The jrun
utility yielded this message: "warning Could not find valid
replication peer- assuming this server is first server running in
replication group." I'm not sure if this is a show-stopper or not.
I also looked at the server log and nothing looked awry.
Any other ideas ? I've checked the forum here, and someone
posted a link for this, but the link was dead...
"warning Could not find valid replication peer-assuming htis
server is first server running in replication group" is telling you
this is the first instance to start up. Not a big deal (unless
you're expecting other instances to be there already or this wasn't
the first instance you expected to start).
If you changed the name of the server or IP addresses during
your p-to-v process then the xml files may be trying to contact the
wrong IP addresses.
When I get the application server is unreachable error, a
quick iisreset or restarting the World Wide Web Publishing service
will fix it. Sometimes a race condition happens and IIS and JRun
seem to grab the connector at the same time and that error ends up
showing up.
Similar Messages
-
What is macromedia application server is unreachable
I have tried repeatedly to reach a website which I have visited previously, but continue to get an error message that reads:
macromedia application server is unreachableAdobe bought out Macromedia years ago. Try the Adobe support forum. <br />
http://forums.adobe.com/index.jspa -
Server Error Either the Macromedia application server(s) are unreachable or none of them has a mapping to process this request.I got this error.I installed coldfusion 8 on windows 7 64 bit.What should I do?Can't I use coldfusion?Is there any suggestion???
Yes I google before and I tried to do all advice.But there is nothing change.Can you explain or send a link for solving this?
-
Server Error - Macromedia application server(s) are unreachable
For my test environment, I've got a ColdFusion 8 instance
running on Windows 2003 Server. Everything was fine until I
rebooted the server. Then I started getting an error message:
quote:
Either the Macromedia application server(s) are unreachable
or none of them has a mapping to process this request.
My first thought was an application mapping error or
something happened to the .cfm mappings. Everything checked out
fine though. So I looked in the wsconfig log files and saw this.
quote:
2008-06-04 16:54:58 jrISAPI[ 760:1048] could not initialize
proxy for 127.0.0.1:51800
2008-06-04 16:54:58 jrISAPI[ 760:1048] Couldn't initialize
from remote server, JRun server(s) probably down.
Something was definitely running on port 51800 though since I
could telnet to it. No clue why it couldn't initialize. Any ideas?
Thanks.
SteveFrom what I can tell, this error displays when the web server connector exists, but JRUN (coldfusion) server is not running.
I have spent 3 days trying to repair this error message on my Windows XP CF9 Standard Edition.We had coincidentally made some network changes which I assumed right away was the culprit. When I would try and start the JRUN server manually (jrun.exe) it would fail and the log would specify an error to the effect of:
"RMI transport layer does not exists." <---- not the whole error. But it should be specific enough for someone else with the same trouble to find.
I deleted the web server connector from wsconfig.exe and tried to re-add it. Which also failed:
"Could not connect to any JRun/ColdFusion servers on host xxxxx.
Possible causes:
-Server not running:
-----Start Macromedia Jrun4 or ColdFusion 9 server
-Server running:
-----JNDI listen port in jndi.properties blocked by TCP/IP filtering or firewall
-----host restriction in security.properties blocking communication with server"
I knew then (since JRun was not running) I wouldn't be able to re-add the connector until I resolved the JRUN "RMI transport layer does not exists" error. After 2 days of unsuccessfully making sure I had done everything I could to allow the ports that JRUN needed, I was still convinced this was a port issue. I also noticed that MSSQL Express (unrelated service) was not starting either. STRANGE!!
Decided to run MalwareBytes and after a "Quick Scan", it did find a few infections. I removed the infections and MalwareBytes requested a reboot, rebooted, and VIOLA!! Working.
If your ColdFusion configuration was working (in my case for at least a year) prior to a reboot, and then suddenly can't start itself, be sure to run a scan to remove any infections. I'm assuming my infection was blocking the ports that JRun needed to startup. Good Day!!! -
We have an IIS install on Windows R2 Standard with a few different websites, 2 of which use ColdFusion 9 successfully.
I've added a new website, but could not get CF to work, getting the message above. To troubleshoot, I've done the following:
Restarted the web server
Manually adding the mappings for cfm, cfml, cfc, cfr etc. and restarted the webserver
Removed the mappings, restarted, then readded
These are the mappings that were in the other 2 websites (I also incrementally increased the numbers to avoid duplicates):
*.cfm, C:\ColdFusion9\runtime\lib\wsconfig\jrun_iis6.dll, AboMapperCustom-27348
*.cfml, C:\ColdFusion9\runtime\lib\wsconfig\jrun_iis6.dll, AboMapperCustom-27349
*.cfc, C:\ColdFusion9\runtime\lib\wsconfig\jrun_iis6.dll, AboMapperCustom-27350
*.cfr, C:\ColdFusion9\runtime\lib\wsconfig\jrun_iis6.dll, AboMapperCustom-27351
*.cfswf, C:\ColdFusion9\runtime\lib\wsconfig\jrun_iis6.dll, AboMapperCustom-27352
Not sure what I am doing wrong and what worse - not sure where to find information to help troublshooting.
TIA to anyone who can point me in the right direction.Let me make some guesses: is this is 9.0.1 or above, on IIS 7 (not running in IIS 6 compatibility mode), and had you chosen to add “all sites” when installing CF or later running the web server config tool? If so, it used to be that in doing that, any newly added site would inherit CF settings, but with the above configuration you can no longer rely on that. Instead, you have to rerun the web server config tool to again add “all sites”.
This is indeed a radical change in behavior from prior release. It is in fact discussed in the installer (if you do “all sites” during installation), as well as in the CF Admin and Config manual, and in the online help for the CF admin. But there’s not too much talk about it, so people only trip over it when they move to IIS 7 (and 9.0.1 or above, which was the first release to formally support IIS 7 other than in IIS 6 compat mode.)
Let us know if that helps, or if, perhaps this is NOT the problem, in which case it could be any number of things. Even then, if you run the web server config tool and connect that site to CF (or again redo the “all sites” config), does it help?
/charlie -
Error while integrating the application server in jdeveloper?
i am using standalone server connection and given the settings ....
test process is good..all the test connections are successful...
but while navigating to SOA folder. i couldn't find deployed files in soa folder.
i found following error
javax.naming.NamingException: javax.naming.CommunicationException [Root exception is java.net.ConnectException: t3://xxxxxxxxxxxxxxxxxxxxxDestination unreachable; nested exception is:
java.net.ConnectException: Connection timed out: connect; No available router to destination] [Root exception is java.lang.RuntimeException: javax.naming.CommunicationException [Root exception is java.net.ConnectException: t3://xxxxxxxxxxxxx: Destination unreachable; nested exception is:
java.net.ConnectException: Connection timed out: connect; No available router to destination]]
at oracle.tip.tools.ide.fabric.asbrowser.SOAServerProvider.listBindingsImpl(SOAServerProvider.java:35)
at oracle.rc.asadapter.context.spi.AbstractContextProvider.listBindings(AbstractContextProvider.java:133)
at oracle.rc.asadapter.context.spi.DefaultMutableAppServerContext$ContextProviderSupport$3.method(DefaultMutableAppServerContext.java:384)
at oracle.rc.asadapter.context.spi.DefaultMutableAppServerContext$ContextProviderSupport$MethodCall.invoke(DefaultMutableAppServerContext.java:421)
at oracle.rc.asadapter.context.spi.DefaultMutableAppServerContext$ContextProviderSupport.listBindings(DefaultMutableAppServerContext.java:381)
at oracle.rc.asadapter.context.spi.DefaultMutableAppServerContext$ContextProviderSupport.access$500(DefaultMutableAppServerContext.java:314)
at oracle.rc.asadapter.context.spi.DefaultMutableAppServerContext.localListBindings(DefaultMutableAppServerContext.java:207)
at oracle.rc.asadapter.context.spi.AbstractEventDirContext.listBindings(AbstractEventDirContext.java:185)
at oracle.adf.rc.spi.jndi.AbstractDirContext.listBindings(AbstractDirContext.java:214)
at oracle.rc.asadapter.context.spi.DefaultAppServerManageableContext.getManageables(DefaultAppServerManageableContext.java:58)
at oracle.jdeveloper.asnav.nodes.DefaultManageableFolder.loadChildren(DefaultManageableFolder.java:327)
at oracle.jdeveloper.asnav.nodes.DefaultManageableFolder$4.run(DefaultManageableFolder.java:288)
Caused by: java.lang.RuntimeException: javax.naming.CommunicationException [Root exception is java.net.ConnectException: t3://xxxxxxxxxxxxx: Destination unreachable; nested exception is:
java.net.ConnectException: Connection timed out: connect; No available router to destination]
at oracle.tip.tools.ide.fabric.asbrowser.WeblogicSOAServer.initPartitions(WeblogicSOAServer.java:89)
at oracle.tip.tools.ide.fabric.asbrowser.WeblogicSOAServer.<init>(WeblogicSOAServer.java:68)
at oracle.tip.tools.ide.fabric.asbrowser.ASBrowserHelper.listWeblogicSOAServers(ASBrowserHelper.java:275)
at oracle.tip.tools.ide.fabric.asbrowser.ASBrowserHelper.listSOAServers(ASBrowserHelper.java:201)
at oracle.tip.tools.ide.fabric.asbrowser.SOAServerProvider.listUserObjects(SOAServerProvider.java:54)
at oracle.tip.tools.ide.fabric.asbrowser.SOAServerProvider.listBindingsImpl(SOAServerProvider.java:21)
... 11 more
Caused by: javax.naming.CommunicationException [Root exception is java.net.ConnectException: t3://xxxxxxxxx:7021: Destination unreachable; nested exception is:
java.net.ConnectException: Connection timed out: connect; No available router to destination]
at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:40)
at weblogic.jndi.WLInitialContextFactoryDelegate.toNamingException(WLInitialContextFactoryDelegate.java:788)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:368)
at weblogic.jndi.Environment.getContext(Environment.java:315)
at weblogic.jndi.Environment.getContext(Environment.java:285)
at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.<init>(InitialContext.java:197)
at oracle.soa.management.internal.facade.ServerManagerImpl.<init>(ServerManagerImpl.java:76)
at oracle.soa.management.internal.facade.ServerManagerFactoryImpl.createServerManager(ServerManagerFactoryImpl.java:28)
at oracle.tip.tools.ide.fabric.asbrowser.WeblogicSOAServer.initPartitions(WeblogicSOAServer.java:85)
... 16 more
Caused by: java.net.ConnectException: t3://xxxxxxxx:7021: Destination unreachable; nested exception is:
java.net.ConnectException: Connection timed out: connect; No available router to destination
at weblogic.rjvm.RJVMFinder.findOrCreateInternal(RJVMFinder.java:216)
at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:170)
at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:153)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:353)
... 26 more
Caused by: java.rmi.ConnectException: Destination unreachable; nested exception is:
java.net.ConnectException: Connection timed out: connect; No available router to destination
at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:470)
at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:321)
at weblogic.rjvm.RJVMManager.findOrCreateRemoteInternal(RJVMManager.java:254)
at weblogic.rjvm.RJVMManager.findOrCreate(RJVMManager.java:197)
at weblogic.rjvm.RJVMFinder.findOrCreateRemoteServer(RJVMFinder.java:238)
at weblogic.rjvm.RJVMFinder.findOrCreateInternal(RJVMFinder.java:200)
... 29 more
i worked out with the statements in help file which is as follows
11.6.1 No available router to destination Message is Displayed When Attempting to Connect to the Administration Server from WLST
When trying to connect to the WebLogic Server Administration Server from WLST using localhost as the host name, the following message may be displayed if the listen-address attribute of the Administration Server has been restricted to certain IP addresses:
javax.naming.CommunicationException [Root exception is
java.net.ConnectException : <t3://HOST:PORT> : Destination unreachable;
nested exception is: java.net.ConnectException: Connection refused; No
available router to destination
Workaround
Use either of the following workarounds:
Check that the listen-address attribute of the Administration Server has been set correctly in the domain configuration file. You can either remove the listen-address line or simply comment it out. Oracle recommends that you comment it out in case you need to know the value at a later time. For example, in the domain configuration file:
<server>
<name>AdminServer</name>
<ssl>
</ssl>
<machine>machine_name</machine>
<!-- listen-address>machine_ip_address</listen-address -->
</server>
Use the host name of the Administration Server, instead of localhost, in the WLST connect command.
i removed listen address in config file..but i am still facing with same error
Edited by: 947453 on Jul 25, 2012 7:09 PMHello,
Were you able to resolve this? I am facing the same issue where my JDev is on a separate machine from the SOA server. Where is the "domain configuration file" located? I am running 11.1.1.6. Within JDev all the other options for the Application Server (Deployments, Servers, Web Services) return results quickly. SOA is throwing the error you mention.
Thank you. -
Starting the application server PE on windows XP
Introduction
I installed JStudio Enterprise 8 with SJS AppServer 8.1
Later uninstalled JStudio Enterprise 8 but the server directory ie C:\Program Files\Sun\jstudio_ent8\Appserv8.1UR2\ remained intact.
The server icon had been removed from the windows startup menu but the server could still be started via the command line
Later installed JStudio Enterprise 8.1 with SJS AppServer 8.2
Installation directories are C:\Program Files\Sun\jstudio_ent81 and C:\Sun\AppServer respectively
After installation I opend a project created using JStudion Enterprise 8 and on trying to run the project I recieved the error below:
[#|2007-02-24T14:30:10.860-0500|SEVERE|sun-appserver-pe8.2|javax.enterprise.system.core|_ThreadID=10;|
Service [email protected] cannot be started! : com.sun.appserv.server.ServerLifecycleException:
Cannot bind to URL [rmi://localhost:8686/management/rmi-jmx-connector]: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is: java.net.SocketTimeoutException: Read timed out]|#]
Please note that the program ( right from the JStudio Ent 8) often complained that spaces had been detected in the class path.
However everything still went on smoothly.
Actions Carried Out
I used asadmin change-master-password --savemasterpassword=true to change password
I used netstat -a to confirm that the port 8080 and other ports as contained in domain.xml were not already in use by the OS
I uninstalled JStudio Ent 8.1 and JDK 5 with JRE, deleted the application files (eg .jstudio folder, .asadmintruststore file etc) I found in user directory
D:\Documents and Settings\user and reinstalled the above mentioned software. Subsequently I tried running a skeletal Enterprise Application but recieved same error.
I used asadmin verify-domain-xml and got the following result:
25-Feb-2007 09:52:30 com.sun.enterprise.config.serverbeans.validation.DomainXMLVerifier invokeConfigValidator
SEVERE /domain[1]/configs[1]: Assertion failed: There is a config element named "default-config"
Despite the above actions and continous trials the server would not start under the JStudioIDE
The server however starts under the command line with the message:
Domain domain1 is ready to receive client requests. Additional services ae being started in background.
However the server would not serve web pages when requested via Internet Explorer. When one eventually tries to stop the server the following message is displayed:
The domain (domain1) isn't running
CLI157 Could not stop domain domain1
Also, I haven't been able to use the admin console for the server and previously for Macromedia ColdFusion Mx v 6.1 Developer
General Info
System web root folder = D:\inetpub\wwwroot\
Java Installed = JDK 5 update 11 with JRE 5 update 11
Product Info
Sun Java System Application Server 8.2 Bundled with JStudio Enterprise Edition 8.1
No patches
System Info
OS Name Microsoft Windows XP Professional
Version 5.1.2600 Service Pack 2 Build 2600
Processor x86 Family 6 Model 9 Stepping 5 GenuineIntel ~1495 Mhz
Total Physical Memory 512.00 MB
Available Physical Memory 194.32 MB
Total Virtual Memory 2.00 GB
Available Virtual Memory 1.96 GB
Page File Space 1.22 GB
Page File D:\pagefile.sysI take it that you would like to run JSE8.1 with AS8.2. Is that right? Or would you like to run both JSE8 and JSE8.1 simultaneously?
One thing to check for the userdir; the userdir should be different for different ide installs. By default of course this should be the case, but one possibility here is that the userdir could be corrupted.
Can you please try with a fresh userdir and see if things work?
Ref: http://blogs.sun.com/karthikr/entry/jse_directories
Also, can you check the server log files? From within the ide, right-click on the server in runtime tab and select 'view server log'. Or cd to <appserver_dir>/domains/domain1/logs directory and check the server.log to see if there are any error messages that may be of help in diagnosing the problem. -
DTR Server is unreachable.
Hi,
I am not able to login in NWDS in the track created in the DTr or DC perpective.I am getting the error as:
DTR Server is unreachable.
Please suggest.Its urgent.
Regards,
Rajaniif you run http://<server>:<port>/ if that does not give a web page then thats a fair indication your system is either still starting or is in trouble. As NWDI takes a couple of minutesmax to start the applications (as opposed to a portal) then I would expect a return on this fairly soon after startup.
It may be that the URL/Port is wrong or there are connection issues.
You can use the stand alone log viewer or the log viewer in visual administrator to look at the dtr logs and the default.trc logs also for issues but a restart first is always good. -
Connection to application server failed using SSL port Why?
Hi
i am trying to deploy my application created in Jdev11.1.1 to WLS10.3.
in creating connection to application server using SSl port 7002 my test connection is failed .the test connection status is
Testing JSR-88 ... failed.
[J2EE Deployment SPI:260010]Unable to connect to 't3s://localhost:7002' as user, 'weblogic'. Error received: null
Testing JSR-88-LOCAL ... failed.
[J2EE Deployment SPI:260010]Unable to connect to 't3s://localhost:7002' as user, 'weblogic'. Error received: null
Testing JSR-160 DomainRuntime ... failed.
t3s://localhost:7002: Destination unreachable; nested exception is:
java.net.ConnectException: Connection refused: connect; No available router to destination
Testing JSR-160 Runtime ... failed.
t3s://localhost:7002: Destination unreachable; nested exception is:
java.net.ConnectException: Connection refused: connect; No available router to destination
Testing JSR-160 Edit ... failed.
t3s://localhost:7002: Destination unreachable; nested exception is:
java.net.ConnectException: Connection refused: connect; No available router to destination
Testing HTTP ... failed.
Unable to open conection: Connection refused: connect
Testing Server MBeans Model ... failed.
t3s://localhost:7002: Destination unreachable; nested exception is:
java.net.ConnectException: Connection refused: connect; No available router to destination
0 of 7 tests successful.
what i have to do inorder to get successfull status.
but when i am using the port 7001,test connection status is successfull .If it fails for your account and not for another, with the same settings on your phone, then the problem is with your account. If you or your IT department can't correct it, it may be corrupt. Delete the account from the Exchange server entirely and re-create it.
-
CF 9.0.1 Update - Cannot Start CF Application Server
Running a dev box with W7 x64. i7 8GB ram. Had CF 9.0.0 (x86) running. Able to get to /CFIDE/Administrator.cfm and add DSNs, etc, but could not access CF websites due to 403 errors.
Installed 9.0.1 x64 update and now CF Application Server service will not start. (Error Code 2) and the Win event log posts "The ColdFusion 9 Application Server service terminated with service-specific error The system cannot find the file specified."
Checking the service properties, it is looking for: "C:\ColdFusion9\runtime\bin\jrunsvc.exe" and I verified that it was there.
Looking at the forum I saw that it may be a JRE error, so I edited my JVM config to "java.home=C:/ColdFusion9/runtime/jre6" (Copied the ../jre6 folder from C:/program files/java/ in case the config file was tripping over the space in "Program Files")
Tried toggling IIS6 compatability on/off - No joy.
I've spent a couple of days chasing this (Tried to load CF9 x64 and it was a bust.)
Any help would be appreciated.
Thanks.I've tried both the x64 & x86 updaters without any success. (The labling on the update package suggested that it related to the OS vs. the Server version.) Same error either way with both the x86 and x64 CF9 servers
I looked at the logs and didn't see much...
(Note: This is back to a straight x86 9.0.0 install, so it won't have the 9.0.1 errors. Doh!)
CFStat Output
Pg/Sec DB/Sec CP/Sec Reqs Reqs Reqs AvgQ AvgReq AvgDB Bytes Bytes Now Hi Now Hi Now Hi Q'ed Run'g TO'ed Time Time Time In/Sec Out/Sec
0 0 0 0 -1 -1 0 0 0 0 -6546 12 0 0
Admin Event
# Created by JRun on 06/06 17:04:45
06/06 17:04:45 info No JDBC data sources have been configured for this server (see jrun-resources.xml)
06/06 17:04:45 info JRun Web Server listening on *:8000
06/06 17:04:45 info Deploying enterprise application "JRun 4.0 Internal J2EE Components" from: file:/C:/ColdFusion9/runtime/lib/jrun-comp.ear
06/06 17:04:45 info Deploying EJB "JRunSQLInvoker" from: file:/C:/ColdFusion9/runtime/lib/jrun-comp.ear
06/06 17:05:08 info No JDBC data sources have been configured for this server (see jrun-resources.xml)
06/06 17:05:08 info JRun Web Server listening on *:8000
06/06 17:05:08 info Deploying enterprise application "JRun 4.0 Internal J2EE Components" from: file:/C:/ColdFusion9/runtime/lib/jrun-comp.ear
06/06 17:05:08 info Deploying EJB "JRunSQLInvoker" from: file:/C:/ColdFusion9/runtime/lib/jrun-comp.ear
06/06 17:06:01 info No JDBC data sources have been configured for this server (see jrun-resources.xml)
06/06 17:06:01 info JRun Web Server listening on *:8000
06/06 17:06:01 info Deploying enterprise application "JRun 4.0 Internal J2EE Components" from: file:/C:/ColdFusion9/runtime/lib/jrun-comp.ear
06/06 17:06:01 info Deploying EJB "JRunSQLInvoker" from: file:/C:/ColdFusion9/runtime/lib/jrun-comp.ear
CF Event
# Created by JRun on 06/06 17:06:08
06/06 17:06:08 info No JDBC data sources have been configured for this server (see jrun-resources.xml)
06/06 17:06:08 info Deploying enterprise application "Adobe_ColdFusion_9" from: file:/C:/ColdFusion9/
06/06 17:06:09 info Deploying web application "Adobe ColdFusion 9" from: file:/C:/ColdFusion9/
06/06 17:06:09 user JSPServlet: init
06/06 17:06:09 user ColdFusionStartUpServlet: init
06/06 17:06:09 user ColdFusionStartUpServlet: ColdFusion: Starting application services
06/06 17:06:09 user ColdFusionStartUpServlet: ColdFusion: VM version = 14.0-b16
06/06 17:06:11 user ColdFusionStartUpServlet: ColdFusion: application services are now available
06/06 17:06:11 user CFMxmlServlet: init
06/06 17:06:11 user CFMxmlServlet: Macromedia Flex Build: 87315.134646
06/06 17:06:12 user CFSwfServlet: init
06/06 17:06:12 user CFCServlet: init
06/06 17:06:12 user FlashGateway: init
06/06 17:06:12 user MessageBrokerServlet: init
06/06 17:06:12 user CFFormGateway: init
06/06 17:06:13 user CFInternalServlet: init
06/06 17:06:13 user WSRPProducer: init
06/06 17:06:13 user ServerCFCServlet: init
06/06 17:06:43 info JRun Proxy Server listening on *:51800
06/06 17:13:01 user RDSServlet: init
06/06 17:13:01 user RDSServlet: init
06/06 17:13:01 user RDSServlet: init
06/06 17:13:01 user RDSServlet: init
06/06 17:13:01 user RDSServlet: init
06/06 17:13:01 user RDSServlet: init
06/06 17:13:01 user RDSServlet: init
06/06 17:13:01 user RDSServlet: init
06/06 17:13:01 user RDSServlet: init -
Process Chain - Delete File from Application Server
Hi Gurus,
Im working with Process chain, and i have a load from a flat file, so my question is :
How can i delete that file from the application server after was loaded ?
THANKS IN ADVANCED !!! I REALLY APRECCIATE YOUR HELP.
Marcoshi,
I have gone through the forum you have posted for deleting files from application server through process chain.
I have similar reuirement in my project.
Can you please provide me the solution?
Your inputs will be highly appreciated.
Thanks in advance.
Regards,
Lavanya. -
How to delete file from application server(Unix)
Hi All,
Using the below code downloading a file from application server(Unix) to client machine. I want to delete the file from application server once it is downloaded to client
We work on Forms 11.1.1.4.0 and Oracle DB 10g. Client machine are Windows 7.
BEGIN
IF webutil_file_transfer.AS_to_Client
(clientFile => Name_In('global.g_file_name')
,serverFile => ls_AppServer_Loc)THEN
message('Data exported Successfully');
ELSE
message('File download from Application Server failed');
END IF;
EXCEPTION
WHEN OTHERS THEN
message('File download failed: '||SUBSTR(sqlerrm,1,200));
END;
I have search for solution on OTN. Few suggested to use HOST.
Can any one help me how to use Host() built_in to delete the file.
Thanks,
MaddyCan any one help me how to use Host() built_in to delete the file.
Host('/bin/rm <complete file path>'); -
Delete file from application server
Hi,
Can any one tell me how to delete a file from application server?
Thanks,
Rahul.Basic question, please search for available information.
Thread locked.
Thomas -
Use of Open and close data set in to pick up files from application server
Hi,
As per my earlier posts i m making a programm which will pick excel sheet from application server and make auto PR by bapi and this all process will be handle by background processing (SM36, SM37). My concer is all proces are working fine but my files are not been picked by application server , when run on my own machine everything is working fine.I never used OPENDATA SET command before , so i have no idea how it will be used , can anyone provide me details with my set of codes where it should be used ....
sou_dir_name = 'Y:\Sucess\'.
tar_dir_name = 'Y:\destination\'.
Open dataset sou_dir_name for input in text mode encoding default.
if sy-subrc eq 0.
do.
read dataset sou_dir_name into file_table.
if sy-subrc ne 0.
exit. " end of file.
enddo.
endif.
CALL FUNCTION 'TMP_GUI_DIRECTORY_LIST_FILES'
EXPORTING
DIRECTORY = sou_dir_name
FILTER = '.'
IMPORTING
FILE_COUNT = file_count
DIR_COUNT = dir_count
TABLES
FILE_TABLE = file_table
DIR_TABLE = dir_table
EXCEPTIONS
CNTL_ERROR = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
ENDIF.
loop at file_table into wa_file_table.
clear : strr , str1 , str2 , str3 .
strr = wa_file_table-PATHNAME .
concatenate sou_dir_name strr into str1 .
concatenate tar_dir_name strr into str2 . " success
concatenate tar_dir_name1 strr into str3 . " failed
FILE = STR1 .
*start-of-selection.
*& Function For Retrieve Data From Excel
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
filename = FILE
i_begin_col = col_start
i_begin_row = row_start
i_end_col = col_end
i_end_row = row_end
tables
intern = excel_bdcdata
EXCEPTIONS
INCONSISTENT_PARAMETERS = 1
UPLOAD_OLE = 2
OTHERS = 3.
IF sy-subrc NE 0.
WRITE : / 'File Error'.
EXIT.
ENDIF.
loop at excel_bdcdata.
translate excel_bdcdata to upper case .
move excel_bdcdata-col to it_index.
assign component it_index of structure wa_file to <fs> .
move excel_bdcdata-value to <fs>.
at end of row.
append wa_file to it_file .
clear wa_file.
endat.
endloop.Parsing XML data:
http://help.sap.com/saphelp_nw04/helpdata/en/86/8280ba12d511d5991b00508b6b8b11/frameset.htm
or alternatively check out ABAP online help for "CALL TRANSFORMATION".
For creating the material master look at BAPI_STANDARDMATERIAL_CREATE.
Thomas -
How to see the file at the application server
HI TO ALL SDNERS ,
THIS IS MY CODE WHERE TO CHECK THE DOWNLOADED FILE AT THE APPLICATION SERVER.IN TCODE AL11 I HAVE SEEN THERE IS NO FILE GETTING CREATED.WHEN TRANSFERRING THE SY-SUBRC VALUE IS ZERO.
Program Name : ZME11_BDC.
Title : PURCHASE INFORMATION RECORD LOAD PROGRAM
Program Objective : THIS PROGRAM READS IN THE PURCHASE
INFORMATION FILE. IT CREATES A BDC SESSION TO
USE TO LOAD THE PURCHASE INFORMATION RECORDS
INTO SAP using the ME11 Transaction.
REPORT ZME11_BDC no standard page heading MESSAGE-ID ZHNC line-size 55.
constants declaration
constants: c_x value 'X',
c_sess type apqi-groupid value 'zcustomer',
c_xd01 type tstc-tcode value 'ME11'.
DECLARING VARIABLES
DATA: V_MSG(255),
V_ERREC TYPE I,"NO OF FAILED RECORDS
V_LINES."NO OF RECORDS
FLAG DECLARATIONS
DATA: FG_DATA_EXIST VALUE 'X',"CHECK FOR DATA
FG_SESSION_OPEN VALUE ''.
STRUCTURES AND INTERNAL TABLE DECLARATIONS
TYPES :BEGIN OF TY_PIR,
LIFNR TYPE EINA-LIFNR,
MATNR TYPE EINA-MATNR,
EKORG TYPE EINE-EKORG,
WERKS TYPE EINE-WERKS,
VERKF TYPE EINA-VERKF,"sales person
TELF1 TYPE EINA-TELF1,"telephone
URZLA TYPE EINA-URZLA,"country
REGIO TYPE EINA-REGIO,"region
APLFZ(5),"plan deleivery time
EKGRP TYPE EINE-EKGRP,"purchase group
NORBM(13),
NETPR(13),
END OF TY_PIR.
DATA : IT_PIR TYPE TABLE OF TY_PIR,
WA_PIR LIKE LINE OF IT_PIR.
DATA: BEGIN OF IT_BDCDATA.
INCLUDE STRUCTURE BDCDATA.
DATA END OF IT_BDCDATA.
DATA : BEGIN OF IT_BDCMSG.
INCLUDE STRUCTURE BDCMSGCOLL.
DATA END OF IT_BDCMSG.
SELECTION SCREEN
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
PARAMETER : FNAME TYPE RLGRAP-FILENAME.
SELECTION-SCREEN END OF BLOCK B1.
AT SELECTION ON VALUE REQUEST
AT SELECTION-SCREEN ON VALUE-REQUEST FOR FNAME.
CALL FUNCTION 'F4_FILENAME'
EXPORTING
PROGRAM_NAME = SYST-CPROG
DYNPRO_NUMBER = SYST-DYNNR
FIELD_NAME = ' '
IMPORTING
FILE_NAME = FNAME.
START OF SELECTION
START-OF-SELECTION.
PERFORM F_GET_DATA USING FNAME
CHANGING IT_PIR.
PERFORM F_GENERATE_DATASET USING FNAME
CHANGING IT_PIR WA_PIR.
*& Form F_GET_DATA
text
-->P_V_FNAME text
<--P_IT_PIR text
FORM F_GET_DATA USING P_FNAME LIKE FNAME
CHANGING P_IT_PIR LIKE IT_PIR.
DATA: LV_FILE TYPE STRING.
LV_FILE = FNAME.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = LV_FILE
FILETYPE = 'DAT'
HAS_FIELD_SEPARATOR = 'X'
HEADER_LENGTH = 0
READ_BY_LINE = 'X'
DAT_MODE = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
CHECK_BOM = ' '
IMPORTING
FILELENGTH =
HEADER =
TABLES
DATA_TAB = P_IT_PIR
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
IF P_IT_PIR IS INITIAL.
FG_DATA_EXIST = ''.
ENDIF.
ENDFORM. " F_GET_DATA
*& Form F_GENERATE_DATASET
text
-->P_V_FNAME text
<--P_IT_PIR text
FORM F_GENERATE_DATASET USING P_V_FNAME LIKE FNAME
CHANGING P_IT_PIR LIKE IT_PIR
P_WA_PIR LIKE WA_PIR.
MESSAGE I001(ZHNC).
*OPENING FILE AT THE APPLICATION SERVER FOR WRITING
OPEN DATASET FNAME FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
IF SY-SUBRC EQ 0.
MESSAGE I002(ZHNC).
LOOP AT P_IT_PIR INTO P_WA_PIR.
SPLIT P_WA_PIR AT '*' INTO P_WA_PIR-LIFNR
P_WA_PIR-MATNR
P_WA_PIR-EKORG
P_WA_PIR-WERKS
P_WA_PIR-VERKF
P_WA_PIR-TELF1
P_WA_PIR-URZLA
P_WA_PIR-REGIO
P_WA_PIR-APLFZ
P_WA_PIR-EKGRP
P_WA_PIR-NORBM.
*TRANSFER THE FILE FROM INTERNAL TABLE TO APPLICATION SERVER
MESSAGE I003(ZHNC).
TRANSFER P_WA_PIR TO FNAME.
ENDLOOP.
*CLOSING THE FILE AT THE APPLICATION SERVER
CLOSE DATASET FNAME.
ENDIF.Hello,
I made a similar program. You can have a look at it.
*& Form write_to_app_server
text
--> p1 text
<-- p2 text
FORM write_to_app_server.
To get filename
PERFORM get_filename.
To write into the application server
OPEN DATASET g_filename_with_path FOR OUTPUT IN TEXT MODE.
IF sy-subrc = 0.
LOOP AT <l_table> INTO <l_line>.
TRANSFER <l_line> TO g_filename_with_path.
ENDLOOP.
CLOSE DATASET g_filename_with_path.
ELSE.
CLOSE DATASET g_filename_with_path.
ENDIF.
To send mail
PERFORM send_mail.
ENDFORM. " write_to_app_server
*& Form get_filename
text
--> p1 text
<-- p2 text
FORM get_filename.
DATA : l_log_path TYPE filepath-pathintern
VALUE 'Y28M_DOWNLOADS_BACKGROUND' .
CALL FUNCTION 'FILE_GET_NAME_USING_PATH'
EXPORTING
client = sy-mandt
logical_path = l_log_path
operating_system = sy-opsys
file_name = p_fname
IMPORTING
file_name_with_path = g_filename_with_path
EXCEPTIONS
path_not_found = 1
missing_parameter = 2
operating_system_not_found = 3
file_system_not_found = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDFORM. " get_filename
You may find it useful.
Regards,
Karuna.
Maybe you are looking for
-
Is there any report in SAP which gives vendor payment report by cost center or internal order. Thanks.
-
HP LJ P1102 - can't resume printing after paper adding
Hello, looks like I need help. I have a laser printer HP LJ P1102, it connected to my PC by USB. Printing is OK but some days ago I shared this printer to local network. User from another computer is trying to print to this shared printer - all is OK
-
FireGL V3200 Driver on Windows 7
Hello everyone I have a Thinkpad T43 with a FireGL V3200 graphic Card. Unfortunately I didn't find a driver. Does anyone know if the exists a driver? Thanx!
-
BrowseForImage() Portrait Landscape issues
Building with Air2.6 Using Adobe's example http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/media/CameraRoll. html I have a landscape app and when I call browseForImage() the image browser always comes up in portrait mode.
-
HT4150 SDXC cards on Mac OS X version 10.5.8 can they be used
Can SDXC cards be used to transfer picture from onto the snow leopard 10.5.8 mini mac?