Welcome-file to point to file in directory
Hi,
I'm having trouble getting my servlet to launch the correct file from startup. I have a .vm file located at:
/WEB-INF/pages/teaser.vm
and in my web.xml file, I put:
<welcome-file-list>
<welcome-file>/pages/teaser.vm</welcome-file>
</welcome-file-list>
This ends up showing the directory structure of my project.
I even tried using
<welcome-file-list>
<welcome-file>/WEB-INF/pages/teaser.vm</welcome-file>
</welcome-file-list>
which just says "resource can not be found"
But if I put teaser.vm outside the WEB-INF folder and use:
<welcome-file-list>
<welcome-file>teaser.vm</welcome-file>
</welcome-file-list>
then it shows up... I don't want to have to do this, however, since I would like to keep my directory structure as clean as possible.
nvermind, i got it to work by placing the directory outside of the WEB-INF folder... I guess i'm too new at this stuff ^_^"'
Similar Messages
-
Hard Drive Error after Erasing - "No Such File or Directory"
I have a Western Digital My Passport 400GB external HD (bought in April 09). It's been working great but I had it on FAT formatting and let's just say transfers are slow. I borrowed another external drive to back everything up so I could reformat this drive to Mac OS.
Problem came after I backed up everything...I ran Disk Utility to erase the HD and format it in Mac OS Extended (journaled). It successfully erased the Hard Drive on All Zeros, taking 6 days, 5 hours, 50 minutes. Then when it tried to partition, I got the error No Such File or Directory. Here's the log:
"Preparing to zero disk : “Untitled”
Secure Erase completed successfully in 6 days, 5 hours, 50 minutes.
Preparing to erase : “Untitled”
Creating Partition Map
Disk Erase failed with the error:
No such file or directory
Erase complete."
So now the hard drive icon doesn't show up on my desktop, but is recognized in DU (without a volume however). Therefore there is no Mount Point and the drive remains unformatted. Any attempt in DU to partition or erase yields the same error message. Searched these discussions for days now without any luck. Please help!Welcome to the Apple discussions.
I'm not following your problem description .... You said that you successfully erased the hard drive. The next step would be to partition it by giving it a name (you can give it a name under partition or under the erase function) - don't leave it as 'untitled', using Mac OS extended (journaled), a partition size, and ensure under options it says Apple partition map. There are no erasures involved when you partition the drive, which is where I'm confused over your problem description. -
8.1 EE can't find page and appends the welcome-file name to the url
I have a problem where you enter a url that points to a static file in the xxxEar-WebModule_war directory. That is the "docroot" directory for the application. Somewhere along the line the welcome-file (index.html) is appended to the url. For example I enter http://server.com/app/file.xml and it gets changed to http://server.com/app/file.xml/index.html, which is not found.
This was not a problem in 8.1 platform. Now that we upgraded to 8.1 enterprise it is a problem.
All urls that are mapped to servlets work fine. I just can't seem to access static content.
Thanks!select l.group#, f.member, l.sequence#, l.status, f.status
from v$log l, v$logfile f
where l.group#=f.group#
order by 1;
GROUP#
MEMBER
SEQUENCE# STATUS STATUS
1
D:\ORACLE\ORADATA\DBMAG98\LOG1.RDO
41002 INACTIVE STALE
2
D:\ORACLE\ORADATA\DBMAG98\LOG2.RDO
41003 INACTIVE
GROUP#
MEMBER
SEQUENCE# STATUS STATUS
3
D:\ORACLE\ORADATA\DBMAG98\LOG3.RDO
41004 CURRENT STALE
sorry for inconvenient view -
Here's a strange one.
I've successfully deployed a test application
with welcome-file-list directive as the only
entry (besides required ?xml and DOCTYPE headers).
When I attempt to access my page e.g., http://myMachine:port/testApp, the URL
changes to read http://myMachine:port/testApp/welcome.htm as expected
but I get 404 errors saying the page cannot be found.
Web.xml successfully passes my XML parser so I don't think
that is the problem.
Any ideas?
Thanks,
TC YoungHi.
What's the layout of your webapp directory structure? More to the point,
your welcome.htm file should be in the root directory of your webapp. Can
you confirm this is where you have it?
Also, please post the relevant bits of your web.xml file here.
Thanks,
Michael
TC Young wrote:
My apologies.
I'm running WL 6.1 on Solaris 2.6.
The weblogic logs do not mention any 'Resource not found'
exceptions.
Thanks.
"TC Young" <[email protected]> wrote:
Here's a strange one.
I've successfully deployed a test application
with welcome-file-list directive as the only
entry (besides required ?xml and DOCTYPE headers).
When I attempt to access my page e.g., http://myMachine:port/testApp,
the URL
changes to read http://myMachine:port/testApp/welcome.htm as expected
but I get 404 errors saying the page cannot be found.
Web.xml successfully passes my XML parser so I don't think
that is the problem.
Any ideas?
Thanks,
TC Young
Michael Young
Developer Relations Engineer
BEA Support -
Change welcome file for webapp
Hi,
I just installed SunOne web server 6.1 SP4, and deployed the [simple] webapp coming with the server distribution by following the steps in "Sun One Web Server 6.1 Getting Started Guide". I pointed my browser to http://my-sunone-61-server/simple, I got the index page for [simple] webapp. Easy !
I want to see if I can change the welcome page for the webapp, so I create a login.html in the root directory for the [simple] webapp, change the welcom-file from index.html to login.html in web.xml, and restart the server. Now I expect to get the login page when I point my browser to http://my-sunone-61-server/simple, I thought this should be simple and straightforward enough. But unfortunately it is not. The login page does not show up. I still get the index page.
Do I have to add the login.html to the admin server's index filenames list ? Or am I missing anything in my configuration? Please advice. Thx.If you config the web.xml as this:
<welcome-file-list>
<welcome-file>index.html</welcome-file>
</welcome-file-list>The <welcom-file-list/> unit must be the last unit of web.xml just like this:
<web-app>
<servlet-mapping>
<servlet-name>aa</servlet-name>
<url-pattern>/aaServlet</url-pattern>
</servlet-mapping>
<mime-mapping>
<extension>doc</extension>
<mime-type>application/msword</mime-type>
</mime-mapping>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
</welcome-file-list></web-app>
I don't know whether it is helpful with you.But try ! Good Luck! -
Brand new Mac Book Pro
Purchased in Mexico's Department store Liverpool on June 20th 2012
Purchased Memory upgade to 8Gb, on june 27th, at Apple Store Memorial City, Houston
Upgraded memory from 4Gb to 8Gb on June 28th.
Tried to write on my external HD (previously written on a windows based PC) with no success.
Upon reccomendation from a Mac assistant, copied all my external HD contents into my Mac Hard drive.
Then formatted my external HD and copied back all my information to it.
deleted all the information from my MacBook Pro HD.
Attempted to repeat the same operation with another external HD, but got a message saying there was not enough epace on the computer HD (even though I have a 750Gb Hard Drive.
Looked in the trash bin and there it was, all the information previously deleted..
Could not empty the trash bin, although I got a message asking me to safely delete all the information from the trash bin,
Could not get enough space released, after several attpempts the trash bin was finally emptied.
All happy getting acquainted with my new MacBook Pro. Two days later, got a gray screen and not able to start the computer.
Looking in to Mac support I found article http://support.apple.com/kb/TS2570 and followed instructions to perform a safe boot:
"Perform a Safe Boot
Simply performing the Safe Boot may resolve this issue.
Shut down your Mac. If necessary, hold your Mac's power button for several seconds to force it to power down.
Start your Mac, then immediately hold the Shift key. This performs a Safe Boot. Advanced tip: If you want to
see the status of a Safe Boot as it progresses, you can hold Shift-Command-V during start up (instead of just Shift).
Note: A Safe Boot takes longer than a typical start up because it includes a disk check and other operations.
The following is the script that appears on the screen upon safe boot. and halt after the last line.
AppleACPICPU:Processor Id=6 LocalAplicId=255 Disabled
AppleACPICPU:Processor Id=7 LocalAplicId=255 Disabled
AppleACPICPU:Processor Id=8 LocalAplicId=255 Disabled
calling mpo_policy_init for TMSafetyNet
Security policy loaded: Safety net for Time Machine (TMSafetyNet)
calling mpo_policy_init for Sandbox
Security policy loaded: Seatbelt sandbox policy (Sandbox)
calling mpo_policy_init for Quarantine
Security policy loaded: Quarantine Policy (Quarantine)
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All Rights Reserved.
MAC Framework Succesfully initializad
using 16384 buffer headers and 10240 cluster IO buffer headers
IOAPIC: Version 0x20 Vextors 64:87
ACPI: System State [SO S3 S4 S5] (S3)
PFM64 (36cpu) 0xf10000000, 0xf0000000
Aplconsole relocated to 0xf1000000
PCI configuration changed (bridge=16 device=4 cardbus=0)
[ PCI configuration end, bridges 12 devices 16 ]
Firewire (OHCI) Lucent ID 5901 built-in now active, GUID 3c0754fffe9b2aa2; max speed s800.
Pthread support ABORTS when sync kernel primitives misused
com.apple.AppleFSCompressionTypeZlib kmod start
com.apple.AppleFSCompressionTypeDataless kmod start
com.apple.AppleFSCompressionTypeZlib load succeeded
com.apple.AppleFSCompressionTypeDateless load succeeded
AppleIntelCPUPowerManagementClient: ready
BTCOEXIST off
wl0: Broadcom BCM4331 802.11 Wireless controller
5.100.98.75
AppleUSBMultitouchDriver::checkStatus - received Status Packet, Payload 2: device was reinitializad
rooting via boot-uuid from /chosen: 6E918706-FC0D-37460-A3A0-6268A51DF93B
Waiting on <dict ID="0"><key><string ID="1">IOResources</string><key>IOResourceMatch</key><string ID="2">boot-uuid-media</string></dict>
Got boot device = IOService:/AppleACPIPlatformExpert/PCI0@0/AppleAPIPCI/SATA@1F,2/AppleIntelPchSe riesAHCI/PRT0@0/AOAHCIDevice@0/AppleAHCIDiskDriver/IOAHCIBlock
storageevice /IoBlockStorageDriver/TOSHIBA MK7559GSXF Media/IOGUIDPartit
BSD root: disk0s2, major 14, minor 2
Kernel is LP64
com.apple.launchd 1 com.apple.launchd 1 *** launchd[1] has started up. ***
com.apple.launchd 1 com.apple.launchd 1 *** Verbose boot, will log to /dev/console. ***
Running fsck on the boot volume...
** /dev/rdisk0s2 (NO WRITE)
** Root file system
Executing FSCK_HFS (version diskdev_cmds-540.1~25).
BootCacheControl: UNable to open /Var/db/BootCache.playlist:2 No such file or directory
launchctl:Dubious permissions on file (skipping): /Library/LaunchDaemons
launchctl:Dubious permissions on file (skipping): /System/Library/LaunchDaemons
Any help or suggestions on what to do next would be welcomed.
I am in the middle of the Atlantick, stuck with a brand new, non working Apple MacBook Pro.
Best regards
Sergio RamosReinstalling MacOS does NOT fix the problem for me. I'm still searching a solution !
Bernard -
Getting `No such file or directory` error while trying to open bdb database
I have four multi-threaded processes (2 writer and 2 reader processes), which make use of Berkeley DB transactional data store. I have multiple environments and the associated database files and log files are located in separate directories (please refer to the DB_CONFIG below). When all these four processes start to perform open and close of databases in the environments very quickly, one of the reader process is throwing a No such file or directory error even though the file actually exists.
I am making use of Berkeley DB 4.7.25 for testing out these applications.
The four application names are as follows:
Writer 1
Writer 2
Reader 1
Reader 2
The application description is as follows:
‘*Writer 1*’ owns 8 environments and each environment having 123 Berkeley databases created using HASH access method. At any point of time, ‘*Writer 1*’ will be acting on 24 database files across 8 environments (3 database files per environment) for carrying out write operation. Where as reader process will be accessing all 123 database files / per environment (Total = 123 * 8 environments = 984 database files) for read activities. Similar configuration for Writer 2 as well – 8 separate environments and so on.
Writer 1, Reader 1 and Reader 2 processes share the environments created by Writer 1
Writer 2 and Reader 2 processes share the environments created by Writer 2
My DB_CONFIG file is configured as follows
set_cachesize 0 104857600 1 # 100 MB
set_lg_bsize 2097152 # 2 MB
set_data_dir ../../vol1/data/
set_lg_dir ../../vol31/logs/SUBID/
set_lk_max_locks 1500
set_lk_max_lockers 1500
set_lk_max_objects 1500
set_flags db_auto_commit
set_tx_max 200
mutex_set_increment 7500
Has anyone come across this problem before or is it something to do with the configuration?Hi Michael,
I should have included about how we are making use of DB_TRUNCATE flag in my previous reply itself. Sorry for that.
From writers, DB truncation happens periodically. During truncate (DB handle is not associated with any environment handle i.e. stand-alone DB
) following parameters are passed to db->open function call:
DB->open(DB *db,
DB_TXN *txnid, => NULL
const char *file, => file name (absolute DB file path)
const char *database, => NULL
DBTYPE type, => DB_HASH
u_int32_t flags, => DB_READ_UNCOMMITTED | DB_TRUNCATE | DB_CREATE | DB_THREAD
int mode); => 0
Also, DB_DUP flag is set.
As you have rightly pointed out, `No such file or directory` is occuring during truncation.
While a database is being truncated it will not be found by others trying to open it. We simulated this by stopping the writer process (responsible for truncation) and by opening & closing the databases repeatedly via readers. The reader process did not crash. When readers and writers were run simultaneously, we got `No such file or directory` error.Is there any solution to tackle this problem (because in our case writers and readers are run independently. So readers won't come to know about truncation from writers)?
Also, we are facing one more issue related to DB_TRUNCATE. Consider the following scenario:
<ul><li>Reader process holds reference of database (X) handle in environment 'Y' at time t1
</li>
<li>Writer process opens the database (X) in DB_TRUNCATE mode at time t2 (where t2 > t1)</li>
<li>After truncation, writer process closes the database and joins the environment 'Y'</li>
<li>After this any writes to database X is not visible to the reader process</li>
<li>Once reader process closes the database X and re-joins the environment, all the records inserted from writer process are visible</li>
</ul>
Is it the right behavior? If yes, how to make any writes visible to a reader process without closing and re-opening the database in the above-mentioned scenario?
Also, when [db_set_errfile|http://www.oracle.com/technology/documentation/berkeley-db/db/api_c/db_set_errfile.html] was set, we did not get any additional information in the error file.
Thanks,
Magesh -
Hi all,
I have tried to upgrade my iMac 2009 running 10.6.8, 3.06GHZ, 4GB ram machine and hit upon a grey load up screen and nothing more after the update. I have worked back through everything I could find in these forums as the bellow:
1. Completed all of the grey screen advice from Apple bar a full wipe and rebuild, but have left this as the last resort
2. Launched again from back up and reloaded Mavericks only to get the same problem
3. Tried to launch in Safe mode and the computer quits half way through the status bar and will not launch into Safe mode
4. Corrected all disk permissions in Disk Utility
5. Checked my EFI update and am running the latest version
6. Tried resetting the NVRAM but computer will not work from the keyboard shortcuts
7. Run Verbose mode where I could see the problem with loading Bootcache which produces the following script /var/db/BootCaches.playlist 2:no such file or directory
8. Created a carbon copy backup also and am now considering a full wipe
I have updated to Mac Book Airs in the last few weeks, and after the computer auto restarts the program then moves to a new processing screen where it finalises writing script, this point never happened on my iMac and after it restarted it just hung on the grey screen with the Apple logo. It is definitely in the Bootcache problem as this is one of te last processes and matches the amount of time the computer starts working before it heads into the grey hanging screen of death. This is definitely something that mavericks script alters, moves or deletes as I have seen this problem littered across the forums as well as the in ability for Safe mode now to work.
I am back up and running 10.6.8 at current and downloading a new version of Mavericks (more fool me). It could be a drive corruption but am unsure, but the computer s working well on 10.6.8 and has done for a very long time. Has anyone solved this yet, as t s driving me crazy!!!
Any Jedi's out there, I would be most indebted to you!
M-AHi all,
Well I thought I would re-post as have found a solution.
I created a bootable USB version of Mavericks using this article here which was very informative: http://www.techrepublic.com/blog/apple-in-the-enterprise/how-to-create-a-bootabl e-usb-to-install-os-x-mavericks/
I then rebooted via it, this again caused the grey screen of death as I thought it would, from reboot to reach this screen I held the Option Button. Before I did this I took a cloned copy of the hard drive and also backed-up again to Time Machine. Have over 470GB of music, photos and films, so yes was being a little over precautious.
I then rebooted and went into recovery mode (Cmd and R) and erased my hard drive.
I then rebooted once again but booted from my Mavericks USB version now with a clean hard drive, and set-up completed as expected with no problems. Its working beautifully at current but am yet to migrate files using the migration assistant, but once I have the new Mavericks version of my machine backed-up I will complete the migration, fingers crossed!
A few days of pain, but was a good learning experience. It was more difficult than it should be to created a bootable USB, but luckily I had another mac to work on and a decent back-up drive.
Hopefully helpful to others!
M-A -
Mac Book Pro, late 2011. Purchased in a department store in Mexico.
Was running ok for several days after I purchased it.
Had some software installed and memory upgraded from 4 to 8Gb.
Suddenly at start up, got a gray screen with a spinning wheel and never boot.
Followed advise from http://support.apple.com/kb/TS2570 and performed a safe boot. (hold Shift-Command-V during startup instead of just Shift).
The boot sequence starts then stops and nothing happens. these are the last lines of the boot sequence.
BSD root: disk0s2, major 14, minor 2
Kernel is LP64
com.apple.launchd 1 com.apple.launchd 1 *** launchd[1] has started up. ***
com.apple.launchd 1 com.apple.launchd 1 *** Verbose boot, will log to /dev/console. ***
Running fsck on the boot volume...
** /dev/rdisk0s2 (NO WRITE)
** Root file system
Executing FSCK_HFS (version diskdev_cmds-540.1~25).
BootCacheControl: Unable to open /Var/db/BootCache.playlist:2 No such file or directory
launchctl:Dubious permissions on file (skipping): /Library/LaunchDaemons
launchctl:Dubious permissions on file (skipping): /System/Library/LaunchDaemons
For what little experience I have on Unix systems, it has to do with the libraries which cannot be launched...
Any ideas, solutions, suggestions are welcomed.
Cheers.
DipbajaBoot into Recovery (command-R at startup), launch Disk Utility, select your startup volume, and run Repair Permissions. Then reboot as usual.
-
I am installing OIM/OAM in a cluster configuration using release 11.1.1.7.
I looked at the EDG here:
http://docs.oracle.com/cd/E28280_01/core.1111/e12035/toc.htm
And its pointing me to the 11.1.1.5 version
http://docs.oracle.com/cd/E21764_01/core.1111/e12035/toc.htm
So that is the guide I am following.
I am at this step:
18.1.5.2 Integrating Oracle Access Manager with Oracle Identity Manager by Using idmConfigTool
http://docs.oracle.com/cd/E21764_01/core.1111/e12035/wiring.htm#sthref356
When I run the config tool I get SEVERE messages like this one:
SEVERE: java.io.FileNotFoundException: ./config/jps-config.xml (No such file or directory)
Any suggestions on how to fix this ?
Please note that I can see jps-config.xml under the domain configuration in the fmwconfig directory.
Here is the complete output
Enter sso access gate password :
Enter sso keystore jks password :
Enter sso global passphrase :
Enter mds db schema password :
Enter idstore admin password :
Enter admin server user password :
********* Seeding OAM Passwds in OIM *********
Completed loading user inputs for - CSF Config
Completed loading user inputs for - Dogwood Admin WLS
Connecting to t3://admin.mycompany.com:7001
Connection to domain runtime mbean server established
Seeding credential :SSOAccessKey
Seeding credential :SSOGlobalPP
Seeding credential :SSOKeystoreKey
********* Activating OAM Notifications *********
Completed loading user inputs for - MDS DB Config
Jun 6, 2013 1:46:05 PM oracle.mds
NOTIFICATION: PManager instance is created without multitenancy support as JVM flag "oracle.multitenant.enabled" is not set to enable multitenancy support.
Jun 6, 2013 1:46:06 PM oracle.security.jps.internal.config.xml.XmlConfigurationFactory initDefaultConfiguration
SEVERE: java.io.FileNotFoundException: ./config/jps-config.xml (No such file or directory)
Jun 6, 2013 1:46:06 PM oracle.mds
NOTIFICATION: Auditing is disabled for component MDS.
Initialized MDS resources
Jun 6, 2013 1:46:06 PM oracle.mds
NOTIFICATION: PManager instance is created without multitenancy support as JVM flag "oracle.multitenant.enabled" is not set to enable multitenancy support.
Jun 6, 2013 1:46:06 PM oracle.security.jps.internal.config.xml.XmlConfigurationFactory initDefaultConfiguration
SEVERE: java.io.FileNotFoundException: ./config/jps-config.xml (No such file or directory)
Jun 6, 2013 1:46:06 PM oracle.mds
NOTIFICATION: Auditing is disabled for component MDS.
Jun 6, 2013 1:46:07 PM oracle.mds
NOTIFICATION: transfer operation started.
Jun 6, 2013 1:46:08 PM oracle.mds
NOTIFICATION: transfer is completed. Total number of documents successfully processed : 1, total number of documents failed : 0.
Upload to DB completed
Releasing all resources
Notifications activated.
********* Seeding OAM Config in OIM *********
Completed loading user inputs for - OAM Access Config
Validated input values
Initialized MDS resources
Jun 6, 2013 1:46:08 PM oracle.mds
NOTIFICATION: PManager instance is created without multitenancy support as JVM flag "oracle.multitenant.enabled" is not set to enable multitenancy support.
Jun 6, 2013 1:46:08 PM oracle.security.jps.internal.config.xml.XmlConfigurationFactory initDefaultConfiguration
SEVERE: java.io.FileNotFoundException: ./config/jps-config.xml (No such file or directory)
Jun 6, 2013 1:46:08 PM oracle.mds
NOTIFICATION: Auditing is disabled for component MDS.
Jun 6, 2013 1:46:08 PM oracle.mds
NOTIFICATION: transfer operation started.
Jun 6, 2013 1:46:08 PM oracle.mds
NOTIFICATION: transfer is completed. Total number of documents successfully processed : 1, total number of documents failed : 0.
Download from DB completed
Releasing all resources
Updated /oracle/product/fmw/Oracle_IAM/server/oamMetadata/db/oim-config.xml
Initialized MDS resources
Jun 6, 2013 1:46:08 PM oracle.mds
NOTIFICATION: PManager instance is created without multitenancy support as JVM flag "oracle.multitenant.enabled" is not set to enable multitenancy support.
Jun 6, 2013 1:46:08 PM oracle.security.jps.internal.config.xml.XmlConfigurationFactory initDefaultConfiguration
SEVERE: java.io.FileNotFoundException: ./config/jps-config.xml (No such file or directory)
Jun 6, 2013 1:46:08 PM oracle.mds
NOTIFICATION: Auditing is disabled for component MDS.
Jun 6, 2013 1:46:08 PM oracle.mds
NOTIFICATION: transfer operation started.
Jun 6, 2013 1:46:09 PM oracle.mds
NOTIFICATION: transfer is completed. Total number of documents successfully processed : 1, total number of documents failed : 0.
Upload to DB completed
Releasing all resources
OAM configuration seeded. Please restart oim server.
********* Configuring Authenticators in OIM WLS *********
Completed loading user inputs for - LDAP connection info
Connecting to t3://admin.mycompany.com:7001
Connection to domain runtime mbean server established
Starting edit session
Edit session started
Connected to security realm.
Validating provider configuration
Validated desired authentication providers
OAM Asserter already exists in the security realm
OAMIDAsserter is already configured to support 11g webgate
OIM Signature Authenticator already exists in the security realm
A type of LDAP Authenticator already exists in the security realm. Please create authenticator manually if different LDAP provider is required.
Control flags for authenticators set sucessfully
Reordering of authenticators done sucessfully
Saving the transaction
Transaction saved
Activating the changes
Changes Activated. Edit session ended.
Connection closed sucessfully
The tool has completed its operation. Details have been logged to automation.logi found this task :
JDev 11.1.1.1.0 + ADF+ BC4J application on Tomcat6 -
F4 Help to get the path for a File source directory
There are numerous function modules for browsing a particular file in desktop and getting the file path (including the fine name) , like F4_FILENAME , KD_GET_FILENAME_ON_F4 , WS_FILENAME_GET etc. But can anyone tell me how to fetch only the directory path to the field were the F4 help is given. Actually the filename has to come in some other field in the selection screen. Is there separate funtion modules for these OR will changing parameters in the above function modules work?
Pls Help....
Also are there function modules for providing F4 help for getting the path to a file in application directory?Try this method CL_GUI_FRONTEND_SERVICES.
It is a Global CLASS which is having different methods for different purposes
see the documentation of it and use the methods of it
see
CL CL_GUI_FRONTEND_SERVICES
Short Text
Frontend Services
Functionality
The class CL_GUI_FRONTEND_SERVICES contains static methods for the following areas:
File functions
Directory functions
Registry
Environment
Write to / read from clipboard
Upload / download files
Execute programs / open documents
Query functions, such as Windows directory, Windows version, and so on
Standard dialogs (open, save, directory selection)
Example
Determine the temp directory on your PC:
DATA: TEMP_DIR TYPE STRING.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>GET_TEMP_DIRECTORY
CHANGING
TEMP_DIR = TEMP_DIR
EXCEPTIONS
CNTL_ERROR = 1
ERROR_NO_GUI = 2.
IF SY-SUBRC 0.
Error handling
ENDIF.
flush to send previous call to frontend
CALL METHOD CL_GUI_CFW=>FLUSH
EXCEPTIONS
CNTL_SYSTEM_ERROR = 1
CNTL_ERROR = 2
OTHERS = 3.
IF SY-SUBRC 0.
Error handling
ENDIF.
WRITE: / 'Temporary directory is:', TEMP_DIR.
Notes
The class CL_GUI_FRONTEND_SERVICES is based on the Control Framework. See the documentation for more information, in particular on CL_GUI_CFW=>FLUSH which must be called after many CL_GUI_FRONTEND_SERVICES methods.
Migration Information
The old file transfer model was based on function modules of the function group GRAP. The old features have been replaced by the class CL_GUI_FRONTEND_SERVICES. The following list contains the old function modules (italic) and the new methods (bold) that replace them:
CLPB_EXPORT
CLIPBOARD_EXPORT
CLPB_IMPORT
CLIPBOARD_IMPORT
DOWNLOAD
GUI_DOWNLOAD, dialog replaced by FILE_SAVE_DIALOG
PROFILE_GET
No replacement, use REGISTRY_* methods instead
PROFILE_SET
No replacement, use REGISTRY_* methods instead
REGISTRY_GET
REGISTRY_GET_VALUE, REGISTRY_GET_DWORD_VALUE
REGISTRY_SET
REGISTRY_SET_VALUE, REGISTRY_SET_DWORD_VALUE
UPLOAD
GUI_UPLOAD, dialog replaced by FILE_OPEN_DIALOG
WS_DDE
Obsolete: This function is no longer supported.
SET_DOWNLOAD_AUTHORITY
Obsolete: This function is no longer supported.
WS_DOWNLOAD
GUI_DOWNLOAD
WS_DOWNLOAD_WAN
Obsolete: This function is no longer supported.
WS_EXCEL
Obsolete: This function is no longer supported.
WS_EXECUTE
EXECUTE
WS_FILENAME_GET
FILE_SAVE_DIALOG, FILE_OPEN_DIALOG
WS_FILE_ATTRIB
FILE_SET_ATTRIBUTES, FILE_GET_ATTRIBUTES
WS_FILE_COPY
FILE_COPY
WS_FILE_DELETE
FILE_DELETE
WS_MSG
Obsolete: This function is no longer supported.
WS_QUERY
CD (current directory)
DIRECTORY_GET_CURRENT
EN (read/write environment)
ENVIRONMENT_GET_VARIABLE
ENVIRONMENT_SET_VARIABLE
FL (determine file length)
FILE_GET_SIZE
FE (check if file exists)
FILE_EXIST
DE (check if directory exists)
DIRECTORY_EXIST
WS (determine Windows system)
GET_PLATFORM
OS (operating system)
GET_PLATFORM
WS_UPLDL_PATH
Obsolete: This function is no longer supported.
WS_UPLOAD
GUI_UPLOAD
WS_VOLUME_GET
Obsolete: This function is no longer supported.
Reward points if useful. -
LSO Content Player Error - HTTP Error 404 - File or directory not found
Hi All
Please could you assist.
I have published a course to my ISS CMS and configured the links in both ECC and J2EE lsm/mediator.
Result
Username='username', SystemName='HRD', Client='030', Host='22.22.22.22', Language='EN', SystemNumber='00', EnablePoolSharing='true', MaxConnection=50, AbapDebug=false:
CPCFG.RSURL = http://iiscmshost.domain/LSO600/Content/
CPCFG.REPUS = username
ServerURL=http://iiscmshost.domain/LSO600/Content/ ok!
I was able to successfully publish the course from the Authoring Environment to the CMS server.
When selecting the starting the course from the portal with content player i get the following error.
HTTP Error 404 - File or directory not found
But the URL is referring to - http://iiscmshost.domain/lms/mediator/courseview?sid=8685627505550088697845288091101&language=EN&sys=HRD&client=030&sap-accessibility=X
How does directory http://iiscmshost.domain/lms/mediator get created when the content is in http://iiscmshost.domain/LSO600/Content ??
Secondly can I change this reference to my LSO600/Content directory.
Please advise with any information. Point will be awarded.
Regards
MaahirDear Maahir,
We are facing the same problem. We are pointing over CMS to IIS, instead of KM content of portal. We are successfully able to release and publish the course, then attach to a course participant also.
But. When participants logs into the portal and click on Start Now. It giving 404 file not found Error. Its the same error. All our Course and content pointed to CMS IIS Server Url.
When we did the content player config test, result is NOT OK. We have required R3 authorization and CMS user authorization also with admin rights. Content Player console is working in AE when we start up the course. Its showing the error.
So, it seems like content player is not working properly. Bcoz we are launching course from http://WEBDAV repository server maintained in back end system. Which is the IIS(CMS Server)for us. Do we need to maintain anything separately to launch a course from IIS Server on R3 and SAP Portal. Below sample URL from page.
http://Sever:port/lms/mediator/courseview = xxxxxxxxxxxxxxx
Could you please us know, how did you resolve the issue and tell me the cause of this issue.
Thanks and Regards
Obli -
Welcome file usage: can it be any URL?
Hi,
Do welcome-files have to always be concrete files such as .html or .jsp files? I am finding that when using Tomcat 4.0.1, if I specify a servlet mapping as a welcome file, I end up getting a directory listing.
For example, since I am using Struts, I have specified a Struts action as my welcome-file, but Tomcat seems to ignore this altogether and I end up getting a directory listing. If I request the action directly, then I have no problems.
Has anyone faced any similar issues?
Regards,
SteveHi,
I am also running into the same issue.
Did you get any workaround?
Please let know,
thanx in advance
-Pravir -
Reading files and directory from a directory
ublic static void readFromDirectory(String dirName) {
// stop word ArrayLists
ArabicStop();
EnglishStop();
FrenchStop();
SpanishStop();
DutchStop();
File dir = new File(dirName);
if (dir.isDirectory()) {
String[] child = dir.list();
System.out.println("hi Iam here");
for (int i = 0; i < child.length; i++) {
readFromDirectory(child.toString());
File[] files = dir.listFiles();
if (files == null) {
System.out.println("There are no files in this Directory ");
} else {
for (int j = 0; j < files.length; j++) {
String filename = files[j].toString();
readFile(filename);
if (dirName.equalsIgnoreCase("English")
|| dirName.equalsIgnoreCase("Nonenglish")) {
for (int i = 0; i < a2.size(); i++) {
keyWord = a2.get(i).toString();
//System.out.println("===" + keyWord + "===" + "KeyWord");
for (int a = 0; a < text.size(); a++) {
String t1 = text.get(a).toString();
if (keyWord.equalsIgnoreCase(t1)) {
count++;
//System.out.println("Found at:" + files[j] + " file");
keyWCount = count;
m1.put(keyWord, keyWCount);
//System.out.println(m1.get(keyWord));
count = 0;
} else if (dirName.equalsIgnoreCase("Spanish")) {
for (int i = 0; i < a5.size(); i++) {
keyWord = a5.get(i).toString();
//System.out.println("===" + keyWord + "===" + "KeyWord");
for (int a = 0; a < text.size(); a++) {
String t1 = text.get(a).toString();
if (keyWord.equalsIgnoreCase(t1)) {
count++;
//System.out.println("Found at:" + files[j] + " file");
keyWCount = count;
m1.put(keyWord, keyWCount);
//System.out.println(m1.get(keyWord));
count = 0;
//System.out.println(m1);
} else if (dirName.equalsIgnoreCase("French")) {
for (int i = 0; i < a3.size(); i++) {
keyWord = a3.get(i).toString();
//System.out.println("===" + keyWord + "===" + "KeyWord");
for (int a = 0; a < text.size(); a++) {
String t1 = text.get(a).toString();
if (keyWord.equalsIgnoreCase(t1)) {
count++;
//System.out.println("Found at:" + files[j] + " file");
keyWCount = count;
m1.put(keyWord, keyWCount);
//System.out.println(m1.get(keyWord));
count = 0;
public static void main(String[] args) {
int countText = 0;
int c;
test t1 = new test();
System.out.println("IN NON - ENGLISH DOCUMENTS - P :");
t1.readFromDirectory("NonEnglish");
for (int j = 0; j < text.size(); j++) {
if (!text.get(j).toString().equalsIgnoreCase("")) {
countText++;
c = countText;
//System.out.println(c);
//System.out.println(text.size());
for (int i = 0; i < a2.size(); i++) {
String word = a2.get(i).toString();
String m = (m1.get(word)).toString();
double x = Double.parseDouble(m);
System.out.println(word + ":" + (x / c) * 100 + " %");
I wanna read text files from directory that contain - lots of other directorys... and by using this code I have error,,,
Can anyone help me plzzz
Edited by: Shamma on Oct 9, 2008 3:32 AMYou actually have more than 1 problem: you cannot traverse directories recursively and you get a NullPointerException.
For the first problem you might want to verify what this statement returns:
child.toString() (I honestly don't understand why you are calling toString() on a String object, but that's not the real problem!)
You probably expect it to be a full absolute path.
The NullPointerException has already been pointed out by masijade. -
Error: "The file or directory is corrupted and unreadable"
This is driving me nuts.
I've had my 5th gen. iPod for over a year now, but just two days ago, when I plugged it in to my computer I received a message saying, "The iPod "name here" cannot be synced. The file or directory is corrupted and unreadable."
To solve this problem, I tried using different USB ports, restarting my iPod, and reinstalling iTunes - all to no avail. I'd really like to avoid restoring my iPod, so I haven't tried that option yet. The iPod works fine outside of adding new music. Also, I ran chkdsk and got nothing from it.
I'm very sad about this. I love my iPod and I want to be able to put new music on it! Any suggestions?Thanks for the reply!
I downloaded the program and ran it, got to the point where it says I have errors that need to be fixed... but it appears I have to pay for the rest of the program to actually repair these errors. Is this incorrect?
If I do have to pay, then I'd like to look for an alternative... the program is $40; of course, that's cheaper than buying a new iPod, but I want to avoid that too.
Maybe you are looking for
-
How can I remove invitations from a shared iCloud calendar when I am not actually invited to the event? My wife and I share our calendars and she uses it very frequently. Every time she enters a new event on her calendar I get a notice (invitation?)
-
My Iphone 5 all of a sudden won't connect to my home wifi.
About a week ago, my phone stopped connecting to my home wifi. Every time I try and connect to it, a message pops up that says unable to connect. I've tried restarting my phone, resetting my network settings, turning the data off, turning airplane m
-
Posted in the wrong area. Moved to webOS Software. I am a Volunteer here, not employed by HP. You too can become an HP Expert! Details HERE! If my post has helped you, click the Kudos Thumbs up! If it solved your issue, Click the "Accept as Solution"
-
HT3645 i cant get my sensor to activate on nike+ipod
help me plz
-
Pan image and simultaneous track motion
I have a still photo that I am panning. At the same time, I want the still to move to a different (and smaller) position on the screen. Is there a way to apply a motion path to the video track which is independent of the motion being used on the stil