Calling code when a web application is undeployed
My understanding is that you can use load-on-startup to run a servlet
when you deploy a web application. I want to do the opposite - run
some code right before a web application is un-deployed. I want to
have the web application load some configuration-type information into
a singleton when it is deployed, but then have it unload it when it is
undeployed. Anybody know how to do this?
Thanks,
<>< gary
Same thing - load-on-startup servlet. init() will be called when app
is deployed and destroy() when it is undeployed.
If you use 6.1 which supports Servlet 2.3 you can use ServletContextListener
instead of load-on-startup servlet and use contextInitialized() and
contextDestroyed() callbacks.
Gary Bisaga <[email protected]> wrote:
> My understanding is that you can use load-on-startup to run a servlet
> when you deploy a web application. I want to do the opposite - run
> some code right before a web application is un-deployed. I want to
> have the web application load some configuration-type information into
> a singleton when it is deployed, but then have it unload it when it is
> undeployed. Anybody know how to do this?
> Thanks,
> <>< gary
Dimitri
Similar Messages
-
EP 6.0 iView call of NW04s BI web applications/runtime
We have an existing SAP EP 6.0 portal in which we have BW iViews calling BW 3.x web applications. We are upgrading the BW 3.x system to Netweaver 2004s. Since we will still retain (for the time being) the EP 6.0 portal as our primary access point to all of our SAP systems, we have created a second portal/java environment (of the NW04s variety) to satisfy our NW04s BI needs.
Can we somehow "adjust" the existing iViews in our EP 6.0 environment to directly call (without iViews in the NW04s environment) converted versions of these web applications in the new NW04s java/portal runtime? Has anyone successfully done this?
I recall reading something in a posting a while back that (sorry - unable to find it now) that implied this may be possible through the change of a "BW/BI version" parameter on the iView. We don't see any such parameter on our current BW EP 6.0 iViews. If in fact this is part of the solution, can this and/or other parameters be added/imported somehow in EP 6.0, or is this something only available for iViews in NW04s?
Regards,
RodHello Rod!
We have a technical problem to integrate BEx Web Application of NW2004s in a SAP EP 6.0. The general problem is that the Portal has difficulties to display a Portal iView in an iView.
These days, we are testing a solution that will be shipped with EP 6.0 SP17. A fix for SP14, 15 and 16 is under discussion.
As soon as I have more details, I will provide you the documentation. The idea is more or less the same as we are doing currently with integrating BEx Web App of SAP BW 3.5: use a System Alias and the rest of the BI URL. Please be aware that the URL syntax is different between SAP BW 3.5 and NW2004s due the new runtime.
Yours,
Tobias -
Why iPhone 5 keeps asking to input credit card security code when downloading free applications?
To download apps, even free apps, you usually need the payment information associated with your Apple ID. You most likely have your credit card name, billing address, card number and expiration date already on file or you would be asked for these too. Apparently though your security code is not on file with your Apple ID. To avoid being asked each time to download an app go to your Apple ID and edit your payment information to include the security code.
See this link to Manage you Apple ID
https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/ -
Error when creating Web Application
We have a 2 server farm connecting to a SQL cluster. Servers 1 and 2 are web Front Ends. When I want create in central admin a new web app I get the following error. It actually creates the content DB and I can see new web app in
central admin but in IIS folder of this web site is empty - no files, no any folders inside.
I'll be grateful
for the help.
02/03/2014 10:27:37.38 w3wp.exe (0x0CFC) 0x1E18 SharePoint Foundation
Monitoring nasq Medium Entering monitored scope (Request
(GET:http://tstwfe1:8000/systemsettings.aspx))
02/03/2014 10:27:37.38 w3wp.exe (0x0CFC) 0x1E18 SharePoint Foundation
Logging Correlation Data xmnv Medium Name=Request (GET:http://tstwfe1:8000/systemsettings.aspx) 12fc5e18-5b16-43a9-8863-e508d74e7b04
02/03/2014 10:27:37.38 w3wp.exe (0x0CFC) 0x1E18 SharePoint Foundation
Logging Correlation Data xmnv Medium Site=/ 12fc5e18-5b16-43a9-8863-e508d74e7b04
02/03/2014 10:27:37.38 w3wp.exe (0x0CFC) 0x1E18 SharePoint Foundation
Monitoring b4ly High Leaving Monitored Scope
(PostResolveRequestCacheHandler). Execution Time=8.4318 12fc5e18-5b16-43a9-8863-e508d74e7b04
02/03/2014 10:27:37.42 w3wp.exe (0x0CFC) 0x1E18 SharePoint Foundation
Monitoring b4ly Medium Leaving Monitored Scope (Request
(GET:http://tstwfe1:8000/systemsettings.aspx)). Execution Time=28.2169 12fc5e18-5b16-43a9-8863-e508d74e7b04
02/03/2014 10:27:38.17 OWSTIMER.EXE (0x05F8) 0x245C SharePoint Foundation
Monitoring nasq Medium Entering monitored scope (Timer
Job SchedulingApproval) 55797bac-6375-4f51-8dca-a20ff1374183
02/03/2014 10:27:38.17 OWSTIMER.EXE (0x05F8) 0x245C SharePoint Foundation
Monitoring b4ly Medium Leaving Monitored Scope (Timer Job
SchedulingApproval). Execution Time=4.3691 55797bac-6375-4f51-8dca-a20ff1374183
02/03/2014 10:27:40.16 OWSTIMER.EXE (0x05F8) 0x1808 SharePoint Foundation
Monitoring nasq Medium Entering monitored scope (Timer
Job UpdateHiddenListJobDefinition) 90c4a860-31eb-4c79-8074-f1b5dfcc9434
02/03/2014 10:27:40.16 OWSTIMER.EXE (0x05F8) 0x1808 SharePoint Foundation
Database 4ohp High Enumerating
all sites in SPWebApplication Name=SP - xxxT - Edit. 90c4a860-31eb-4c79-8074-f1b5dfcc9434
02/03/2014 10:27:40.16 OWSTIMER.EXE (0x05F8) 0x1808 SharePoint Foundation
Database 4ohq Medium Site Enumeration Stack:
at Microsoft.SharePoint.Administration.SPSiteCollection.get_Item(Int32 index) at Microsoft.SharePoint.Taxonomy.UpdateHiddenListJobDefinition.Execute(Guid targetInstanceId) at Microsoft.SharePoint.Administration.SPTimerJobInvokeInternal.Invoke(SPJobDefinition
jd, Guid targetInstanceId, Boolean isTimerService, Int32& result) at Microsoft.SharePoint.Administration.SPTimerJobInvoke.Invoke(TimerJobExecuteData& data, Int32& result) 90c4a860-31eb-4c79-8074-f1b5dfcc9434
02/03/2014 10:27:40.16 OWSTIMER.EXE (0x05F8) 0x1808 SharePoint Server
Taxonomy hy93 Medium Skipping check for the
metadata hub timer job because no metadata proxies are active 90c4a860-31eb-4c79-8074-f1b5dfcc9434
02/03/2014 10:27:40.16 OWSTIMER.EXE (0x05F8) 0x1808 SharePoint Server
Taxonomy fuc1 Medium Hidden list full sync
timer job is being created and associated with the web application SP - xxxT - Edit. 90c4a860-31eb-4c79-8074-f1b5dfcc9434
02/03/2014 10:27:40.16 OWSTIMER.EXE (0x05F8) 0x1808 SharePoint Server
Taxonomy fuc3 Medium Hidden list full sync
timer job was not created and associated with the web application SP - xxxT - Edit. jobDefinition was already set. 90c4a860-31eb-4c79-8074-f1b5dfcc9434
02/03/2014 10:27:40.16 OWSTIMER.EXE (0x05F8) 0x1808 SharePoint Foundation
Database 4ohp High Enumerating
all sites in SPWebApplication Name=SP - xxxT - Edit. 90c4a860-31eb-4c79-8074-f1b5dfcc9434
02/03/2014 10:27:40.16 OWSTIMER.EXE (0x05F8) 0x1808 SharePoint Foundation
Database 4ohq Medium Site Enumeration Stack:
at Microsoft.SharePoint.Administration.SPSiteCollection.get_Count() at Microsoft.SharePoint.Taxonomy.UpdateHiddenListJobDefinition.Execute(Guid targetInstanceId) at Microsoft.SharePoint.Administration.SPTimerJobInvokeInternal.Invoke(SPJobDefinition
jd, Guid targetInstanceId, Boolean isTimerService, Int32& result) at Microsoft.SharePoint.Administration.SPTimerJobInvoke.Invoke(TimerJobExecuteData& data, Int32& result) 90c4a860-31eb-4c79-8074-f1b5dfcc9434
02/03/2014 10:27:40.16 OWSTIMER.EXE (0x05F8) 0x1808 SharePoint Foundation
Database 4ohp High Enumerating
all sites in SPWebApplication Name=SP - xxxT - Edit. 90c4a860-31eb-4c79-8074-f1b5dfcc9434
02/03/2014 10:27:40.16 OWSTIMER.EXE (0x05F8) 0x1808 SharePoint Foundation
Database 4ohq Medium Site Enumeration Stack:
at Microsoft.SharePoint.Administration.SPSiteCollection.get_Item(Int32 index) at Microsoft.SharePoint.Taxonomy.UpdateHiddenListJobDefinition.Execute(Guid targetInstanceId) at Microsoft.SharePoint.Administration.SPTimerJobInvokeInternal.Invoke(SPJobDefinition
jd, Guid targetInstanceId, Boolean isTimerService, Int32& result) at Microsoft.SharePoint.Administration.SPTimerJobInvoke.Invoke(TimerJobExecuteData& data, Int32& result) 90c4a860-31eb-4c79-8074-f1b5dfcc9434
02/03/2014 10:27:40.16 OWSTIMER.EXE (0x05F8) 0x1808 SharePoint Foundation
Monitoring b4ly Medium Leaving Monitored Scope (Timer Job
UpdateHiddenListJobDefinition). Execution Time=8.8473 90c4a860-31eb-4c79-8074-f1b5dfcc9434
02/03/2014 10:27:41.16 OWSTIMER.EXE (0x05F8) 0x198C SharePoint Foundation
Monitoring nasq Medium Entering monitored scope (Timer
Job Health Statistics Updating) ce9fe0e0-860a-4405-bffa-91bfcac0028f
02/03/2014 10:27:41.16 OWSTIMER.EXE (0x05F8) 0x198C SharePoint Foundation
Topology 8xqz Medium Updating SPPersistedObject
SearchServiceApplicationMonitoring Name=Monitoring_7F19A5D194F942e6A9856FCFD6EE6F63. Version: 3978663 Ensure: False, HashCode: 60815176, Id: 1a82c0b8-4208-4199-9689-7f82fd256b00, Stack: at Microsoft.SharePoint.Administration.SPPersistedObject.BaseUpdate()
at Microsoft.Office.Server.Search.Monitoring.TraceDiagnosticsProvider.UpdateServiceApplicationHealthStats() at Microsoft.SharePoint.Administration.SPTimerJobInvokeInternal.Invoke(SPJobDefinition jd, Guid targetInstanceId, Boolean isTimerService,
Int32& result) at Microsoft.SharePoint.Administration.SPTimerJobInvoke.Invoke(TimerJobExecuteData& data, Int32& result) ce9fe0e0-860a-4405-bffa-91bfcac0028f
02/03/2014 10:27:41.20 OWSTIMER.EXE (0x05F8) 0x198C SharePoint Foundation
Monitoring b4ly Medium Leaving Monitored Scope (Timer Job
Health Statistics Updating). Execution Time=25.0976 ce9fe0e0-860a-4405-bffa-91bfcac0028f
02/03/2014 10:27:43.46 w3wp.exe (0x0CFC) 0x168C SharePoint Foundation
Monitoring nasq Medium Entering monitored scope (Request
(GET:http://tstwfe1:8000/_admin/SelectCrossFirewallAccessZone.aspx))
02/03/2014 10:27:43.46 w3wp.exe (0x0CFC) 0x168C SharePoint Foundation
Logging Correlation Data xmnv Medium Name=Request (GET:http://tstwfe1:8000/_admin/SelectCrossFirewallAccessZone.aspx) 746d4c9b-761b-431e-90cc-0557bc3826d4
02/03/2014 10:27:48.16 OWSTIMER.EXE (0x05F8) 0x18EC SharePoint Foundation
Monitoring nasq Medium Entering monitored scope (Timer
Job SchedulingApproval) 9855194f-cb44-486f-b282-a578f72a938f
02/03/2014 10:27:48.16 OWSTIMER.EXE (0x05F8) 0x18EC SharePoint Foundation
Monitoring b4ly Medium Leaving Monitored Scope (Timer Job
SchedulingApproval). Execution Time=3.6232 9855194f-cb44-486f-b282-a578f72a938f
02/03/2014 10:27:50.16 OWSTIMER.EXE (0x05F8) 0x0928 SharePoint Foundation
Monitoring nasq Medium Entering monitored scope (Timer
Job Search Health Monitoring - Trace Events) 6755d54d-03bd-42ed-8bd6-d0fa097e7daf
02/03/2014 10:27:50.16 OWSTIMER.EXE (0x05F8) 0x0928 SharePoint Foundation
Monitoring b4ly Medium Leaving Monitored Scope (Timer Job
Search Health Monitoring - Trace Events). Execution Time=6.6128 6755d54d-03bd-42ed-8bd6-d0fa097e7daf
02/03/2014 10:27:53.94 SPUCHostService.exe (0x09EC) 0x0ACC SharePoint Foundation
Sandboxed Code Service fe8b Medium - - Unable to activate worker process proxy object within the worker process: ipc://29ffade5-9a06-4ec5-b96b-f3b69c7a6952:7000
02/03/2014 10:27:53.94 SPUCHostService.exe (0x09EC) 0x0ACC SharePoint Foundation
Sandboxed Code Service fe8c Medium - - Error activating the worker process manager instance within the worker process. - Inner Exception: System.InvalidOperationException:
Unable to activate worker process proxy object within the worker process: ipc://29ffade5-9a06-4ec5-b96b-f3b69c7a6952:7000 at Microsoft.SharePoint.UserCode.SPUserCodeWorkerProcess.CreateWorkerProcessProxies()
02/03/2014 10:27:53.94 SPUCHostService.exe (0x09EC) 0x0ACC SharePoint Foundation
Sandboxed Code Service ei0t Medium - Process creation/initialization threw an exception. Stopping this process. "ipc://ca3d652e-8f80-4789-b527-65b8376a1da8:7000"
02/03/2014 10:27:53.94 SPUCHostService.exe (0x09EC) 0x0ACC SharePoint Foundation
Sandboxed Code Service i0o2 Monitorable - Stopping shim process. Shim process name: "SPUCWorkerProcess" Shim PID: "0x29E8" Shim service
url: "ipc://ca3d652e-8f80-4789-b527-65b8376a1da8:7000"
02/03/2014 10:27:53.94 SPUCHostService.exe (0x09EC) 0x0ACC SharePoint Foundation
Sandboxed Code Service i0o3 Monitorable - Stopping proxy process. Proxy process name: "SPUCWorkerProcessProxy" Proxy PID: "0x236C" Proxy
service url: "ipc://29ffade5-9a06-4ec5-b96b-f3b69c7a6952:7000"
02/03/2014 10:27:53.94 SPUCHostService.exe (0x09EC) 0x0ACC SharePoint Foundation
Sandboxed Code Service fe87 Medium - - Error activating the worker process manager instance within the worker process. - Starting worker process
threw - Inner Exception: System.InvalidOperationException: Unable to activate worker process proxy object within the worker process: ipc://29ffade5-9a06-4ec5-b96b-f3b69c7a6952:7000 at Microsoft.SharePoint.UserCode.SPUserCodeWorkerProcess.CreateWorkerProcessProxies()
02/03/2014 10:27:54.93 w3wp.exe (0x0CFC) 0x168C SharePoint Foundation
Logging Correlation Data xmnv Medium Site=/ 746d4c9b-761b-431e-90cc-0557bc3826d4
02/03/2014 10:27:55.08 w3wp.exe (0x0CFC) 0x168C SharePoint Foundation
Monitoring b4ly Medium Leaving Monitored Scope (Request
(GET:http://tstwfe1:8000/_admin/SelectCrossFirewallAccessZone.aspx)). Execution Time=11622.9457 746d4c9b-761b-431e-90cc-0557bc3826d4
02/03/2014 10:27:57.18 OWSTIMER.EXE (0x05F8) 0x1B24 SharePoint Foundation
Monitoring nasq Medium Entering monitored scope (Timer
Job SchedulingApproval) 824bd8e1-df0a-432b-9f18-5824b5c10e6d
02/03/2014 10:27:57.18 OWSTIMER.EXE (0x05F8) 0x1B24 SharePoint Foundation
Monitoring b4ly Medium Leaving Monitored Scope (Timer Job
SchedulingApproval). Execution Time=7.0564 824bd8e1-df0a-432b-9f18-5824b5c10e6d
02/03/2014 10:28:00.17 OWSTIMER.EXE (0x05F8) 0x245C SharePoint Foundation
Monitoring nasq Medium Entering monitored scope (Timer
Job job-immediate-alerts) 9a92f513-e5bc-4475-91e3-a9c178554748
02/03/2014 10:28:00.21 OWSTIMER.EXE (0x05F8) 0x245C SharePoint Foundation
Monitoring b4ly Medium Leaving Monitored Scope (Timer Job
job-immediate-alerts). Execution Time=16.4731 9a92f513-e5bc-4475-91e3-a9c178554748
02/03/2014 10:28:00.35 SPUCHostService.exe (0x09EC) 0x0CB8 SharePoint Foundation
Sandboxed Code Service f2yg Medium - CreateSandBoxedProcessWorker() is called
02/03/2014 10:28:00.38 SPUCHostService.exe (0x09EC) 0x0CB8 SharePoint Foundation
Sandboxed Code Service b10e Medium - Created desktop: Service-0x0-86b8876$\Microsoft Office Isolated Environment
02/03/2014 10:28:00.67 SPUCWorkerProcess.exe (0x26B4) 0x1D98 SharePoint Foundation Unified
Logging Service b8fx High ULS Init Completed (SPUCWorkerProcess.exe, onetnative.dll)
02/03/2014 10:28:05.72 SPUCWorkerProcess.exe (0x26B4) 0x26BC SharePoint Foundation Unified
Logging Service 7a8a Medium LogWMIData: ConnectServer failed: 0x80041003
02/03/2014 10:28:06.17 OWSTIMER.EXE (0x05F8) 0x1808 SharePoint Foundation
Monitoring nasq Medium Entering monitored scope (Timer
Job job-application-server-admin-service) 2bdc150f-c10c-4fdc-9630-76f5fe204fb4
02/03/2014 10:28:06.17 OWSTIMER.EXE (0x05F8) 0x1808 SharePoint Server Search
Administration dkd5 High synchronizing search service instance
2bdc150f-c10c-4fdc-9630-76f5fe204fb4
02/03/2014 10:28:06.17 OWSTIMER.EXE (0x05F8) 0x1808 SharePoint Server Search
Administration eff0 High synchronizing search data access service instance
2bdc150f-c10c-4fdc-9630-76f5fe204fb4
02/03/2014 10:28:07.36 OWSTIMER.EXE (0x05F8) 0x1808 SharePoint Server Search
Administration dl2i Medium Search application 'Search Service Application': Provision
start addresses in default content source. 2bdc150f-c10c-4fdc-9630-76f5fe204fb4
02/03/2014 10:28:07.36 OWSTIMER.EXE (0x05F8) 0x1808 SharePoint Server Search
Administration fa0w Medium Search application name is 'Search Service Application'.
2bdc150f-c10c-4fdc-9630-76f5fe204fb4
02/03/2014 10:28:07.36 OWSTIMER.EXE (0x05F8) 0x1808 SharePoint Server Search
Administration fa0x Medium Fetching UserProfileApplicationCollection...
2bdc150f-c10c-4fdc-9630-76f5fe204fb4
02/03/2014 10:28:07.36 OWSTIMER.EXE (0x05F8) 0x1808 SharePoint Server Search
Administration fa0y Medium Fetching UserProfileApplication... 2bdc150f-c10c-4fdc-9630-76f5fe204fb4
02/03/2014 10:28:07.39 OWSTIMER.EXE (0x05F8) 0x1808 SharePoint Foundation
Monitoring b4ly Medium Leaving Monitored Scope (Timer Job
job-application-server-admin-service). Execution Time=1227.1104 2bdc150f-c10c-4fdc-9630-76f5fe204fb4
02/03/2014 10:28:10.17 OWSTIMER.EXE (0x05F8) 0x198C SharePoint Foundation
Monitoring nasq Medium Entering monitored scope (Timer
Job SchedulingUnpublish) 77ac5e41-7215-4783-b3ca-e9ff8aec57fd
02/03/2014 10:28:10.19 OWSTIMER.EXE (0x05F8) 0x198C SharePoint Foundation
Monitoring b4ly Medium Leaving Monitored Scope (Timer Job
SchedulingUnpublish). Execution Time=4.763 77ac5e41-7215-4783-b3ca-e9ff8aec57fd
Hi Iron34,
Looks like the SharePoint Foundation Sandboxed Code Service is having an issue. You could see if the SharePoint 2010 User Code Host Service is enabled via services.msc, and then either disable it, or go to Manage Services on Server under system settings
and turn off Microsoft SharePoint Foundation Sandboxed Code Service, if you're not concerned with containing user solutions, and then give the deployment another run.
if the issue persists, adjust >
http://www.sharepointpapa.com/blog/_layouts/15/start.aspx#/Lists/Posts/Post.aspx?ID=20
Cheers,
Stacy
Stacy Anothersharepointblog.blogspot.com -
Call rfc from Java Web application.
Hi:
I am new to SAP Java programming.
I am developing a java web application on SAP NW SP16.
I need to call a rfc and process the data to be displayed on a jsp page.
I have few questions...
1) Can I use the JCO destination created in thru wed dynpro content administrator, to connect to sap and execute the rfc/bapi?
2) How would I create and access the model (rfc)?
3) Are the required jar and dll(rfc32.dll ... ) files available on the server?
Any help would be greatly appreciated.
Thanks.Hi,
See the follwoing links which contains sample code to ceate JCO and execute BAPI.
http://help.sap.com/saphelp_nw2004s/helpdata/en/6a/14e13d8ee4535ee10000000a114084/frameset.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/6a/14e13d8ee4535ee10000000a114084/frameset.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/6a/14e13d8ee4535ee10000000a114084/frameset.htm
Kind Regards,
S.Saravanan. -
How to call Xcelsius in Java Web application without OpenDoc
Hi,
We require to call Xcelsius Dashboard from a Java Web application. We cann't use OpenDoc function as result of some client preferences/restrictions
Please let me know, what would be the other method to call the Xcelsius Dashboard from a Web application.
Regards,
SachinXcelsius docs are in swf format. You could probably just host them without security and view with flash.
-
Call Oracle forms using web application
Hi,
I am newbie for configuring oracle forms with web application.
what are all the steps needs to be done for calling oracle forms 6i from web application.
Thanks
RajIn which case I would suggest you go to 10g or 11g of Forms since 6 is no longer supported.
then check out
http://www.oracle.com/technology/documentation/forms/index.html
http://download.oracle.com/docs/cd/B25016_04/doc/dl/web/B14032_03/B14032_03.pdf
http://otn.oracle.com/formsupgrade
Its all documented here
Regards
Grant -
Calling Reports from bc4j Web Application
Hello:
I want to call a report from my bc4j web application, basically I want the user to hit a button that
will process a report, any examples of how this can be done or if it can be done.Hi Sheena,
This really depends on what you want to do. Submitting a report to the Reports Server is simply running a url in some variant of the following format:
http://<server>:<port>/reports/rwservlet?report=<reportName>&destype=cache&desformat=pdf
(Take a look at the Reports documentation for all the options).
The above will run the report and return the result to the browser in PDF format. If you just want to mail the output the URL would change to something like:
http://<server>:<port>/reports/rwservlet?report=<reportName>&destype=mail&desformat=pdf&desname=<[email protected]>
Robin. -
Got 404 erro when open Web application
I create a web application: http://webapp.com
and created some site collections:
http://webapp.com
http://webapp.com/it
http://webapp.com/hr
but I got 404 error when open "http://webapp.com" ;
and got the below error when open "http://webapp.com/it" or "http://webapp.com/hr" :
Something went wrong
Technical Details
SharePoint returned the following error: Invalid URI: The URI is empty. Contact your system administrator for help in resolving this problem.
Anybody know what's wrong? Thanks in advance.
AwenHi Awen,
According to your description, my understanding is that the error occurred when you accessed the newly created site collection.
From your post, I can see that you created host header for the web application.
I recommend to verify the things below:
Please check the AAM for your web application, make sure the "Internal URL" and "public URL for Zone" both are your host name URL in Default zone.
Please check the SharePoint site bindings from IIS manager, make sure the host name is the same.
Add the host name and IP in your client hosts file under drivers folder, and make sure you can ping the host name successfully.
Access your SharePoint site collection through your host name in IE browser.
If access denied after login (may 3 times login pop up), you can disable the loopback check, then test again.
http://technet.microsoft.com/en-us/library/cc262366(v=office.15).aspx
http://technet.microsoft.com/en-us/library/cc424952(v=office.15).aspx
Thanks,
Victoria
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Victoria Xia
TechNet Community Support -
Calling AP7.0 from web applications
Hi,
We have some java web applications in which we want to display our pricing information. Is there a way to get pricing information from AP7.0 to java web applications?
Note: Web application is running on tomcat.
Thanks,
Kumar.Try a class that executes a Function Miodule(For Pricing) in AP7.0 with the help of SAP JCO.
Thanks
Jack
<b>Allot points if my post helps !</b> -
Is there a setting to wrap code when resizing the application window?
I find it very annoying that I have to scroll horizontally to get to specific areas of my code. Is there some sort of preference that I can set to wrap my code so that it wouldn't extend past the visible area of the application window? Thanks.
It's June 16 and no word wrap. Maybe there was word wrap. When I downloaded Edge Code, I immediately started installing some brackets plugins. Could one of them eliminated word wrap?
Speaking of brackets plugins, it's hard to know whether one is or isn't compatible with Edge Code. Of the ones I installed, none of them has prompted Edge Code to warn me of anything, however, some of them seem to work and some of them appear in the interface but don't seem to work, and some of them just aren't there at all.
Perhaps I need a cheat sheet like with brackets so I know what magical key combination will make something work or reveal something hidden?
Anyway, support for plugins needs to be clarified. If there are going to be plugins, there needs to be a pluins manager (the one from brackets doesn't work).
But I was mentioning Word Wrap... Is that part of the current build and I destroyed it with a plugin? -
Hi, I'm running Eclipse. I have been given a link from which to run some code, as in:
"The code is called from: http://somewebsiteaddress.com/somejavafile.java"
The Java code which I need to run is at the website address. But I don't know how to run it in Eclipse. I have tried copying and pasting the code into eclipse, but that didn't work. Surely there is a faster way? Thanks.how am I going to help you if you don't want thecode
to be seen??Well that's obvious, isn't it? As quickly as
possible, of course!and that's what I'm doing. currently "as quickly as possible" is coming out at something like "three thousand years from the time you actually post some code", though sigh -
How to call the function before web application close
How we can call a flex function before closing the browser in web application
hello
this link may help you http://cookbooks.adobe.com/post_Close_event_of_browser_or_browser_tab-18211.html.
Gajanan Hiroji | [email protected] | www.isacglobal.com -
Part of our installation, we want to deploy our web application on to a managed server.
So, we use the JMX API calls to deploy the web application. But, at the time of this deployment the managed server is not brought up. So, our expectation was that when the managed server is brought up later, it will automatically STAGE the web application from Admin Server and then, deploy it in the managed server.
But, what is happending is that the web application is not being deployed to the managed server (even though the web application is configured to be deployed in the specified managed server in the config.xml and it is set as the default application of the managed server application).
We are using WebLogic 7.0 SP2 on RedHat Linux 7.2.
Can anyone help to deploy web application on to a managed server when the managed server is down ?
Thanks,
Selva-
[att1.html]This is currently being fixed in 7.0 line, contact [email protected] and reference
CR110687
Cheers
mbg
"Selvamohan Neethiraj" <[email protected]> wrote in message news:[email protected]..
Part of our installation, we want to deploy our web application on to a managed server.
So, we use the JMX API calls to deploy the web application. But, at the time of this deployment the managed server is not brought up. So, our expectation was that when the managed server is brought up later, it will automatically STAGE the web application from Admin Server and then, deploy it in the managed server.
But, what is happending is that the web application is not being deployed to the managed server (even though the web application is configured to be deployed in the specified managed server in the config.xml and it is set as the default application of the managed server application).
We are using WebLogic 7.0 SP2 on RedHat Linux 7.2.
Can anyone help to deploy web application on to a managed server when the managed server is down ?
Thanks,
Selva-
[att1.html] -
Problem with Configuring Tomcat for running jsp web applications..Plz HELP
I am using Tomcat 5.5 and Jdk 1.5.0_12 and Oracle 10g. I am using jdbc-odbc bridge connection
to connect to the database. I have placed my project folder called
tdm under the webapps folder in Tomcat. This 'tdm' folder consists of
a collection of html pages,jsp pages and images of my project. Also I created a
WEB-INF folderand in that I have lib folder which contains catalina-root.jar
, classes12.jar and nls_charset.jar files. And also in the WEB-INF folder I have the web.xml
file which looks like this
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
Copyright 2004 The Apache Software Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<web-app>
<resource-ref>
<description>Oracle Datasource example</description>
<res-ref-name>jdbc/gdn</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</web-app>
My Server.xml file in Tomcat\conf folder is as follows
<!-- Example Server Configuration File -->
<!-- Note that component elements are nested corresponding to their
parent-child relationships with each other -->
<!-- A "Server" is a singleton element that represents the entire JVM,
which may contain one or more "Service" instances. The Server
listens for a shutdown command on the indicated port.
Note: A "Server" is not itself a "Container", so you may not
define subcomponents such as "Valves" or "Loggers" at this level.
-->
<Server port="8005" shutdown="SHUTDOWN">
<!-- Comment these entries out to disable JMX MBeans support used for the
administration web application -->
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
<!-- Global JNDI resources -->
<GlobalNamingResources>
<!-- Test entry for demonstration purposes -->
<Environment name="simpleValue" type="java.lang.Integer" value="30"/>
<!-- Editable user database that can also be used by
UserDatabaseRealm to authenticate users -->
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml" />
<Resource name="jdbc/gdn" auth="Container"
type="javax.sql.DataSource" driverClassName="sun.jdbc.odbc.JdbcOdbcDriver"
url="jdbc:odbc:gdn"
username="system" password="tiger" maxActive="20" maxIdle="10"
maxWait="-1"/>
</GlobalNamingResources>
<!-- A "Service" is a collection of one or more "Connectors" that share
a single "Container" (and therefore the web applications visible
within that Container). Normally, that Container is an "Engine",
but this is not required.
Note: A "Service" is not itself a "Container", so you may not
define subcomponents such as "Valves" or "Loggers" at this level.
-->
<!-- Define the Tomcat Stand-Alone Service -->
<Service name="Catalina">
<!-- A "Connector" represents an endpoint by which requests are received
and responses are returned. Each Connector passes requests on to the
associated "Container" (normally an Engine) for processing.
By default, a non-SSL HTTP/1.1 Connector is established on port 8080.
You can also enable an SSL HTTP/1.1 Connector on port 8443 by
following the instructions below and uncommenting the second Connector
entry. SSL support requires the following steps (see the SSL Config
HOWTO in the Tomcat 5 documentation bundle for more detailed
instructions):
* If your JDK version 1.3 or prior, download and install JSSE 1.0.2 or
later, and put the JAR files into "$JAVA_HOME/jre/lib/ext".
* Execute:
%JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows)
$JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA (Unix)
with a password value of "changeit" for both the certificate and
the keystore itself.
By default, DNS lookups are enabled when a web application calls
request.getRemoteHost(). This can have an adverse impact on
performance, so you can disable it by setting the
"enableLookups" attribute to "false". When DNS lookups are disabled,
request.getRemoteHost() will return the String version of the
IP address of the remote client.
-->
<!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
<Connector
port="5050" maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />
<!-- Note : To disable connection timeouts, set connectionTimeout value
to 0 -->
<!-- Note : To use gzip compression you could set the following properties :
compression="on"
compressionMinSize="2048"
noCompressionUserAgents="gozilla, traviata"
compressableMimeType="text/html,text/xml"
-->
<!-- Define a SSL HTTP/1.1 Connector on port 8443 -->
<!--
<Connector port="8443"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" disableUploadTimeout="true"
acceptCount="100" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" />
-->
<!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector port="8009"
enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />
<!-- Define a Proxied HTTP/1.1 Connector on port 8082 -->
<!-- See proxy documentation for more information about using this. -->
<!--
<Connector port="8082"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" acceptCount="100" connectionTimeout="20000"
proxyPort="80" disableUploadTimeout="true" />
-->
<!-- An Engine represents the entry point (within Catalina) that processes
every request. The Engine implementation for Tomcat stand alone
analyzes the HTTP headers included with the request, and passes them
on to the appropriate Host (virtual host). -->
<!-- You should set jvmRoute to support load-balancing via AJP ie :
<Engine name="Standalone" defaultHost="localhost" jvmRoute="jvm1">
-->
<!-- Define the top level container in our container hierarchy -->
<Engine name="Catalina" defaultHost="localhost">
<!-- The request dumper valve dumps useful debugging information about
the request headers and cookies that were received, and the response
headers and cookies that were sent, for all requests received by
this instance of Tomcat. If you care only about requests to a
particular virtual host, or a particular application, nest this
element inside the corresponding <Host> or <Context> entry instead.
For a similar mechanism that is portable to all Servlet 2.4
containers, check out the "RequestDumperFilter" Filter in the
example application (the source for this filter may be found in
"$CATALINA_HOME/webapps/examples/WEB-INF/classes/filters").
Request dumping is disabled by default. Uncomment the following
element to enable it. -->
<!--
<Valve className="org.apache.catalina.valves.RequestDumperValve"/>
-->
<!-- Because this Realm is here, an instance will be shared globally -->
<!-- This Realm uses the UserDatabase configured in the global JNDI
resources under the key "UserDatabase". Any edits
that are performed against this UserDatabase are immediately
available for use by the Realm. -->
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>
<!-- Comment out the old realm but leave here for now in case we
need to go back quickly -->
<!--
<Realm className="org.apache.catalina.realm.MemoryRealm" />
-->
<!-- Replace the above Realm with one of the following to get a Realm
stored in a database and accessed via JDBC -->
<!--
<Realm className="org.apache.catalina.realm.JDBCRealm"
driverName="org.gjt.mm.mysql.Driver"
connectionURL="jdbc:mysql://localhost/authority"
connectionName="test" connectionPassword="test"
userTable="users" userNameCol="user_name" userCredCol="user_pass"
userRoleTable="user_roles" roleNameCol="role_name" />
-->
<!--
<Realm className="org.apache.catalina.realm.JDBCRealm"
driverName="oracle.jdbc.driver.OracleDriver"
connectionURL="jdbc:oracle:thin:@ntserver:1521:ORCL"
connectionName="scott" connectionPassword="tiger"
userTable="users" userNameCol="user_name" userCredCol="user_pass"
userRoleTable="user_roles" roleNameCol="role_name" />
-->
<!--
<Realm className="org.apache.catalina.realm.JDBCRealm"
driverName="sun.jdbc.odbc.JdbcOdbcDriver"
connectionURL="jdbc:odbc:CATALINA"
userTable="users" userNameCol="user_name" userCredCol="user_pass"
userRoleTable="user_roles" roleNameCol="role_name" />
-->
<!-- Define the default virtual host
Note: XML Schema validation will not work with Xerces 2.2.
-->
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<!-- Defines a cluster for this node,
By defining this element, means that every manager will be changed.
So when running a cluster, only make sure that you have webapps in there
that need to be clustered and remove the other ones.
A cluster has the following parameters:
className = the fully qualified name of the cluster class
name = a descriptive name for your cluster, can be anything
mcastAddr = the multicast address, has to be the same for all the nodes
mcastPort = the multicast port, has to be the same for all the nodes
mcastBindAddr = bind the multicast socket to a specific address
mcastTTL = the multicast TTL if you want to limit your broadcast
mcastSoTimeout = the multicast readtimeout
mcastFrequency = the number of milliseconds in between sending a "I'm alive" heartbeat
mcastDropTime = the number a milliseconds before a node is considered "dead" if no heartbeat is received
tcpThreadCount = the number of threads to handle incoming replication requests, optimal would be the same amount of threads as nodes
tcpListenAddress = the listen address (bind address) for TCP cluster request on this host,
in case of multiple ethernet cards.
auto means that address becomes
InetAddress.getLocalHost().getHostAddress()
tcpListenPort = the tcp listen port
tcpSelectorTimeout = the timeout (ms) for the Selector.select() method in case the OS
has a wakup bug in java.nio. Set to 0 for no timeout
printToScreen = true means that managers will also print to std.out
expireSessionsOnShutdown = true means that
useDirtyFlag = true means that we only replicate a session after setAttribute,removeAttribute has been called.
false means to replicate the session after each request.
false means that replication would work for the following piece of code: (only for SimpleTcpReplicationManager)
<%
HashMap map = (HashMap)session.getAttribute("map");
map.put("key","value");
%>
replicationMode = can be either 'pooled', 'synchronous' or 'asynchronous'.
* Pooled means that the replication happens using several sockets in a synchronous way. Ie, the data gets replicated, then the request return. This is the same as the 'synchronous' setting except it uses a pool of sockets, hence it is multithreaded. This is the fastest and safest configuration. To use this, also increase the nr of tcp threads that you have dealing with replication.
* Synchronous means that the thread that executes the request, is also the
thread the replicates the data to the other nodes, and will not return until all
nodes have received the information.
* Asynchronous means that there is a specific 'sender' thread for each cluster node,
so the request thread will queue the replication request into a "smart" queue,
and then return to the client.
The "smart" queue is a queue where when a session is added to the queue, and the same session
already exists in the queue from a previous request, that session will be replaced
in the queue instead of replicating two requests. This almost never happens, unless there is a
large network delay.
-->
<!--
When configuring for clustering, you also add in a valve to catch all the requests
coming in, at the end of the request, the session may or may not be replicated.
A session is replicated if and only if all the conditions are met:
1. useDirtyFlag is true or setAttribute or removeAttribute has been called AND
2. a session exists (has been created)
3. the request is not trapped by the "filter" attribute
The filter attribute is to filter out requests that could not modify the session,
hence we don't replicate the session after the end of this request.
The filter is negative, ie, anything you put in the filter, you mean to filter out,
ie, no replication will be done on requests that match one of the filters.
The filter attribute is delimited by ;, so you can't escape out ; even if you wanted to.
filter=".*\.gif;.*\.js;" means that we will not replicate the session after requests with the URI
ending with .gif and .js are intercepted.
The deployer element can be used to deploy apps cluster wide.
Currently the deployment only deploys/undeploys to working members in the cluster
so no WARs are copied upons startup of a broken node.
The deployer watches a directory (watchDir) for WAR files when watchEnabled="true"
When a new war file is added the war gets deployed to the local instance,
and then deployed to the other instances in the cluster.
When a war file is deleted from the watchDir the war is undeployed locally
and cluster wide
-->
<!--
<Cluster className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"
managerClassName="org.apache.catalina.cluster.session.DeltaManager"
expireSessionsOnShutdown="false"
useDirtyFlag="true"
notifyListenersOnReplication="true">
<Membership
className="org.apache.catalina.cluster.mcast.McastService"
mcastAddr="228.0.0.4"
mcastPort="45564"
mcastFrequency="500"
mcastDropTime="3000"/>
<Receiver
className="org.apache.catalina.cluster.tcp.ReplicationListener"
tcpListenAddress="auto"
tcpListenPort="4001"
tcpSelectorTimeout="100"
tcpThreadCount="6"/>
<Sender
className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"
replicationMode="pooled"
ackTimeout="15000"/>
<Valve className="org.apache.catalina.cluster.tcp.ReplicationValve"
filter=".*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;"/>
<Deployer className="org.apache.catalina.cluster.deploy.FarmWarDeployer"
tempDir="/tmp/war-temp/"
deployDir="/tmp/war-deploy/"
watchDir="/tmp/war-listen/"
watchEnabled="false"/>
</Cluster>
-->
<!-- Normally, users must authenticate themselves to each web app
individually. Uncomment the following entry if you would like
a user to be authenticated the first time they encounter a
resource protected by a security constraint, and then have that
user identity maintained across all web applications contained
in this virtual host. -->
<!--
<Valve className="org.apache.catalina.authenticator.SingleSignOn" />
-->
<!-- Access log processes all requests for this virtual host. By
default, log files are created in the "logs" directory relative to
$CATALINA_HOME. If you wish, you can specify a different
directory with the "directory" attribute. Specify either a relative
(to $CATALINA_HOME) or absolute path to the desired directory.
-->
<!--
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="localhost_access_log." suffix=".txt"
pattern="common" resolveHosts="false"/>
-->
<!-- Access log processes all requests for this virtual host. By
default, log files are created in the "logs" directory relative to
$CATALINA_HOME. If you wish, you can specify a different
directory with the "directory" attribute. Specify either a relative
(to $CATALINA_HOME) or absolute path to the desired directory.
This access log implementation is optimized for maximum performance,
but is hardcoded to support only the "common" and "combined" patterns.
-->
<!--
<Valve className="org.apache.catalina.valves.FastCommonAccessLogValve"
directory="logs" prefix="localhost_access_log." suffix=".txt"
pattern="common" resolveHosts="false"/>
-->
<Context path="/tdm" docBase="tdm" debug="0" reloadable="true" />
</Host>
</Engine>
</Service>
</Server>
I have set the context path to /tdm in the server.xml file. Should this be placed in context.xml?
My first page in the project is called Homepage.html. To start my project I give http://localhost:5050/tdm/homepage.html
in a browser. Here I accept a username and password from the user and then do the validation in
a valid.jsp file, where I connect to the database and check and use jsp:forward to go to next pages
accordingly. However when I enter the username and password and click Go in the homepage, nothing is
displayed on the next page. The URL in the browser says valid.jsp but a blank screen appears.
WHY DOES IT HAPPEN SO? DOES IT MEAN THAT TOMCAT IS NOT RECOGNIZING JAVA IN MY SYSTEM OR IS IT A PROBLEM
WITH THE DATABASE CONNECTION OR SOMETHING ELSE? I FEEL THAT TOMCAT IS NOT EXECUTING JSP COMMANDS?
IS IT POSSIBLE?WHY WILL THIS HAPPEN?
I set the JAVA_HOME and CATALINA_HOME environment to the jdk and tomcat folders resp.
Is there any other thing that I need to set in classpath? Should I have my project as a
WAR file in the webapps of TOMCAT or just a folder i.e. directory structure will fine?I am using Tomcat 5.5 and Jdk 1.5.0_12 and Oracle 10g. I am using jdbc-odbc bridge connection
to connect to the database. I have placed my project folder called
tdm under the webapps folder in Tomcat. This 'tdm' folder consists of
a collection of html pages,jsp pages and images of my project. Also I created a
WEB-INF folderand in that I have lib folder which contains catalina-root.jar
, classes12.jar and nls_charset.jar files. And also in the WEB-INF folder I have the web.xml
file which looks like this
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
Copyright 2004 The Apache Software Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<web-app>
<resource-ref>
<description>Oracle Datasource example</description>
<res-ref-name>jdbc/gdn</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</web-app>
My Server.xml file in Tomcat\conf folder is as follows
<!-- Example Server Configuration File -->
<!-- Note that component elements are nested corresponding to their
parent-child relationships with each other -->
<!-- A "Server" is a singleton element that represents the entire JVM,
which may contain one or more "Service" instances. The Server
listens for a shutdown command on the indicated port.
Note: A "Server" is not itself a "Container", so you may not
define subcomponents such as "Valves" or "Loggers" at this level.
-->
<Server port="8005" shutdown="SHUTDOWN">
<!-- Comment these entries out to disable JMX MBeans support used for the
administration web application -->
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
<!-- Global JNDI resources -->
<GlobalNamingResources>
<!-- Test entry for demonstration purposes -->
<Environment name="simpleValue" type="java.lang.Integer" value="30"/>
<!-- Editable user database that can also be used by
UserDatabaseRealm to authenticate users -->
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml" />
<Resource name="jdbc/gdn" auth="Container"
type="javax.sql.DataSource" driverClassName="sun.jdbc.odbc.JdbcOdbcDriver"
url="jdbc:odbc:gdn"
username="system" password="tiger" maxActive="20" maxIdle="10"
maxWait="-1"/>
</GlobalNamingResources>
<!-- A "Service" is a collection of one or more "Connectors" that share
a single "Container" (and therefore the web applications visible
within that Container). Normally, that Container is an "Engine",
but this is not required.
Note: A "Service" is not itself a "Container", so you may not
define subcomponents such as "Valves" or "Loggers" at this level.
-->
<!-- Define the Tomcat Stand-Alone Service -->
<Service name="Catalina">
<!-- A "Connector" represents an endpoint by which requests are received
and responses are returned. Each Connector passes requests on to the
associated "Container" (normally an Engine) for processing.
By default, a non-SSL HTTP/1.1 Connector is established on port 8080.
You can also enable an SSL HTTP/1.1 Connector on port 8443 by
following the instructions below and uncommenting the second Connector
entry. SSL support requires the following steps (see the SSL Config
HOWTO in the Tomcat 5 documentation bundle for more detailed
instructions):
* If your JDK version 1.3 or prior, download and install JSSE 1.0.2 or
later, and put the JAR files into "$JAVA_HOME/jre/lib/ext".
* Execute:
%JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows)
$JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA (Unix)
with a password value of "changeit" for both the certificate and
the keystore itself.
By default, DNS lookups are enabled when a web application calls
request.getRemoteHost(). This can have an adverse impact on
performance, so you can disable it by setting the
"enableLookups" attribute to "false". When DNS lookups are disabled,
request.getRemoteHost() will return the String version of the
IP address of the remote client.
-->
<!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
<Connector
port="5050" maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />
<!-- Note : To disable connection timeouts, set connectionTimeout value
to 0 -->
<!-- Note : To use gzip compression you could set the following properties :
compression="on"
compressionMinSize="2048"
noCompressionUserAgents="gozilla, traviata"
compressableMimeType="text/html,text/xml"
-->
<!-- Define a SSL HTTP/1.1 Connector on port 8443 -->
<!--
<Connector port="8443"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" disableUploadTimeout="true"
acceptCount="100" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" />
-->
<!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector port="8009"
enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />
<!-- Define a Proxied HTTP/1.1 Connector on port 8082 -->
<!-- See proxy documentation for more information about using this. -->
<!--
<Connector port="8082"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" acceptCount="100" connectionTimeout="20000"
proxyPort="80" disableUploadTimeout="true" />
-->
<!-- An Engine represents the entry point (within Catalina) that processes
every request. The Engine implementation for Tomcat stand alone
analyzes the HTTP headers included with the request, and passes them
on to the appropriate Host (virtual host). -->
<!-- You should set jvmRoute to support load-balancing via AJP ie :
<Engine name="Standalone" defaultHost="localhost" jvmRoute="jvm1">
-->
<!-- Define the top level container in our container hierarchy -->
<Engine name="Catalina" defaultHost="localhost">
<!-- The request dumper valve dumps useful debugging information about
the request headers and cookies that were received, and the response
headers and cookies that were sent, for all requests received by
this instance of Tomcat. If you care only about requests to a
particular virtual host, or a particular application, nest this
element inside the corresponding <Host> or <Context> entry instead.
For a similar mechanism that is portable to all Servlet 2.4
containers, check out the "RequestDumperFilter" Filter in the
example application (the source for this filter may be found in
"$CATALINA_HOME/webapps/examples/WEB-INF/classes/filters").
Request dumping is disabled by default. Uncomment the following
element to enable it. -->
<!--
<Valve className="org.apache.catalina.valves.RequestDumperValve"/>
-->
<!-- Because this Realm is here, an instance will be shared globally -->
<!-- This Realm uses the UserDatabase configured in the global JNDI
resources under the key "UserDatabase". Any edits
that are performed against this UserDatabase are immediately
available for use by the Realm. -->
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>
<!-- Comment out the old realm but leave here for now in case we
need to go back quickly -->
<!--
<Realm className="org.apache.catalina.realm.MemoryRealm" />
-->
<!-- Replace the above Realm with one of the following to get a Realm
stored in a database and accessed via JDBC -->
<!--
<Realm className="org.apache.catalina.realm.JDBCRealm"
driverName="org.gjt.mm.mysql.Driver"
connectionURL="jdbc:mysql://localhost/authority"
connectionName="test" connectionPassword="test"
userTable="users" userNameCol="user_name" userCredCol="user_pass"
userRoleTable="user_roles" roleNameCol="role_name" />
-->
<!--
<Realm className="org.apache.catalina.realm.JDBCRealm"
driverName="oracle.jdbc.driver.OracleDriver"
connectionURL="jdbc:oracle:thin:@ntserver:1521:ORCL"
connectionName="scott" connectionPassword="tiger"
userTable="users" userNameCol="user_name" userCredCol="user_pass"
userRoleTable="user_roles" roleNameCol="role_name" />
-->
<!--
<Realm className="org.apache.catalina.realm.JDBCRealm"
driverName="sun.jdbc.odbc.JdbcOdbcDriver"
connectionURL="jdbc:odbc:CATALINA"
userTable="users" userNameCol="user_name" userCredCol="user_pass"
userRoleTable="user_roles" roleNameCol="role_name" />
-->
<!-- Define the default virtual host
Note: XML Schema validation will not work with Xerces 2.2.
-->
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<!-- Defines a cluster for this node,
By defining this element, means that every manager will be changed.
So when running a cluster, only make sure that you have webapps in there
that need to be clustered and remove the other ones.
A cluster has the following parameters:
className = the fully qualified name of the cluster class
name = a descriptive name for your cluster, can be anything
mcastAddr = the multicast address, has to be the same for all the nodes
mcastPort = the multicast port, has to be the same for all the nodes
mcastBindAddr = bind the multicast socket to a specific address
mcastTTL = the multicast TTL if you want to limit your broadcast
mcastSoTimeout = the multicast readtimeout
mcastFrequency = the number of milliseconds in between sending a "I'm alive" heartbeat
mcastDropTime = the number a milliseconds before a node is considered "dead" if no heartbeat is received
tcpThreadCount = the number of threads to handle incoming replication requests, optimal would be the same amount of threads as nodes
tcpListenAddress = the listen address (bind address) for TCP cluster request on this host,
in case of multiple ethernet cards.
auto means that address becomes
InetAddress.getLocalHost().getHostAddress()
tcpListenPort = the tcp listen port
tcpSelectorTimeout = the timeout (ms) for the Selector.select() method in case the OS
has a wakup bug in java.nio. Set to 0 for no timeout
printToScreen = true means that managers will also print to std.out
expireSessionsOnShutdown = true means that
useDirtyFlag = true means that we only replicate a session after setAttribute,removeAttribute has been called.
false means to replicate the session after each request.
false means that replication would work for the following piece of code: (only for SimpleTcpReplicationManager)
<%
HashMap map = (HashMap)session.getAttribute("map");
map.put("key","value");
%>
replicationMode = can be either 'pooled', 'synchronous' or 'asynchronous'.
* Pooled means that the replication happens using several sockets in a synchronous way. Ie, the data gets replicated, then the request return. This is the same as the 'synchronous' setting except it uses a pool of sockets, hence it is multithreaded. This is the fastest and safest configuration. To use this, also increase the nr of tcp threads that you have dealing with replication.
* Synchronous means that the thread that executes the request, is also the
thread the replicates the data to the other nodes, and will not return until all
nodes have received the information.
* Asynchronous means that there is a specific 'sender' thread for each cluster node,
so the request thread will queue the replication request into a "smart" queue,
and then return to the client.
The "smart" queue is a queue where when a session is added to the queue, and the same session
already exists in the queue from a previous request, that session will be replaced
in the queue instead of replicating two requests. This almost never happens, unless there is a
large network delay.
-->
<!--
When configuring for clustering, you also add in a valve to catch all the requests
coming in, at the end of the request, the session may or may not be replicated.
A session is replicated if and only if all the conditions are met:
1. useDirtyFlag is true or setAttribute or removeAttribute has been called AND
2. a session exists (has been created)
3. the request is not trapped by the "filter" attribute
The filter attribute is to filter out requests that could not modify the session,
hence we don't replicate the session after the end of this request.
The filter is negative, ie, anything you put in the filter, you mean to filter out,
ie, no replication will be done on requests that match one of the filters.
The filter attribute is delimited by ;, so you can't escape out ; even if you wanted to.
filter=".*\.gif;.*\.js;" means that we will not replicate the session after requests with the URI
ending with .gif and .js are intercepted.
The deployer element can be used to deploy apps cluster wide.
Currently the deployment only deploys/undeploys to working members in the cluster
so no WARs are copied upons startup of a broken node.
The deployer watches a directory (watchDir) for WAR files when watchEnabled="true"
When a new war file is added the war gets deployed to the local instance,
and then deployed to the other instances in the cluster.
When a war file is deleted from the watchDir the war is undeployed locally
and cluster wide
-->
<!--
<Cluster className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"
managerClassName="org.apache.catalina.cluster.session.DeltaManager"
expireSessionsOnShutdown="false"
useDirtyFlag="true"
notifyListenersOnReplication="true">
<Membership
className="org.apache.catalina.cluster.mcast.McastService"
mcastAddr="228.0.0.4"
mcastPort="45564"
mcastFrequency="500"
mcastDropTime="3000"/>
<Receiver
className="org.apache.catalina.cluster.tcp.ReplicationListener"
tcpListenAddress="auto"
tcpListenPort="4001"
tcpSelectorTimeout="100"
tcpThreadCount="6"/>
<Sender
className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"
replicationMode="pooled"
ackTimeout="15000"/>
<Valve className="org.apache.catalina.cluster.tcp.ReplicationValve"
filter=".*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;"/>
<Deployer className="org.apache.catalina.cluster.deploy.FarmWarDeployer"
tempDir="/tmp/war-temp/"
deployDir="/tmp/war-deploy/"
watchDir="/tmp/war-listen/"
watchEnabled="false"/>
</Cluster>
-->
<!-- Normally, users must authenticate themselves to each web app
individually. Uncomment the following entry if you would like
a user to be authenticated the first time they encounter a
resource protected by a security constraint, and then have that
user identity maintained across all web applications contained
in this virtual host. -->
<!--
<Valve className="org.apache.catalina.authenticator.SingleSignOn" />
-->
<!-- Access log processes all requests for this virtual host. By
default, log files are created in the "logs" directory relative to
$CATALINA_HOME. If you wish, you can specify a different
directory with the "directory" attribute. Specify either a relative
(to $CATALINA_HOME) or absolute path to the desired directory.
-->
<!--
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="localhost_access_log." suffix=".txt"
pattern="common" resolveHosts="false"/>
-->
<!-- Access log processes all requests for this virtual host. By
default, log files are created in the "logs" directory relative to
$CATALINA_HOME. If you wish, you can specify a different
directory with the "directory" attribute. Specify either a relative
(to $CATALINA_HOME) or absolute path to the desired directory.
This access log implementation is optimized for maximum performance,
but is hardcoded to support only the "common" and "combined" patterns.
-->
<!--
<Valve className="org.apache.catalina.valves.FastCommonAccessLogValve"
directory="logs" prefix="localhost_access_log." suffix=".txt"
pattern="common" resolveHosts="false"/>
-->
<Context path="/tdm" docBase="tdm" debug="0" reloadable="true" />
</Host>
</Engine>
</Service>
</Server>
I have set the context path to /tdm in the server.xml file. Should this be placed in context.xml?
My first page in the project is called Homepage.html. To start my project I give http://localhost:5050/tdm/homepage.html
in a browser. Here I accept a username and password from the user and then do the validation in
a valid.jsp file, where I connect to the database and check and use jsp:forward to go to next pages
accordingly. However when I enter the username and password and click Go in the homepage, nothing is
displayed on the next page. The URL in the browser says valid.jsp but a blank screen appears.
WHY DOES IT HAPPEN SO? DOES IT MEAN THAT TOMCAT IS NOT RECOGNIZING JAVA IN MY SYSTEM OR IS IT A PROBLEM
WITH THE DATABASE CONNECTION OR SOMETHING ELSE? I FEEL THAT TOMCAT IS NOT EXECUTING JSP COMMANDS?
IS IT POSSIBLE?WHY WILL THIS HAPPEN?
I set the JAVA_HOME and CATALINA_HOME environment to the jdk and tomcat folders resp.
Is there any other thing that I need to set in classpath? Should I have my project as a
WAR file in the webapps of TOMCAT or just a folder i.e. directory structure will fine?
Maybe you are looking for
-
Once connected ipod shows on desktop, not in itunes
i just got a new macbook pro, and ipod classic. i've used a mac for the last 3 years or so, and i've never had this problem. when i connect my ipod to my computer, the ipod appears on the desktop, but is not recognized by itunes. how do i fix this?
-
No settings have knowingly been changed to Firefox or Facebook
-
[SOLVED] SSH Log check script, what am i doing wrong?
wow linux, you never cease to amaze me cat /var/log/auth.log | grep -vP "(209\.94\.131.\65|216\.204\.172\.218)" | grep Accepted | awk '{ print $1, $2, $11 }' --- the rest is immaterial -- disclaimer: i am a horrible scripter; i'm just learning; there
-
InfoPath deployment in SharePoint 2013
Hi, I am new to INFOPATH development We are trying to deploy code based infopath 2013 thourgh central admin. It is getting deployed perfectly, but its getting deployed to 14 Hive folder. How can we deploy it to 15 Hive folder structure ? I have tried
-
Hide Approval preview link in Shopping cart
Hello All, My requirement is to hide the 'Approval preview' link in Shopping cart, Please suggest me how to do this. Best regards