Questions tagged [cross-context]
18 questions
                    
                    16
                    
            votes
                
                5 answers
            
        Communication between two web application in same server
All,
I have 2 web applications, Web1 and Web2,  deployed on my tomcat server. I want classes in Web1 to call methods on classes in Web2. One way to do this is using webservice. Is there any other way similar to calling a method on class on same web…
        
        Gaurav
        
- 1,549
 - 2
 - 15
 - 31
 
                    12
                    
            votes
                
                3 answers
            
        What does the crossContext attribute do in Tomcat? Does it enable session sharing?
All I can find in the Tomcat 5.5 docs is:
Set to true if you want calls within this application to ServletContext.getContext() to successfully return a request dispatcher for other web applications running on this virtual host. Set to false (the…
        
        Serxipc
        
- 6,639
 - 9
 - 40
 - 51
 
                    4
                    
            votes
                
                0 answers
            
        Allow CrossContext in WebSphere
I need to dispatch a request from one application to another by using sc.getRequestDispatcher("/Forward2.jsp"); and this won't work if the web-server isn't properly configured. I found that in Tomcat we can configure it using crossContext="true".…
        
        WelcomeTo
        
- 19,843
 - 53
 - 170
 - 286
 
                    3
                    
            votes
                
                0 answers
            
        how to apply context configuration in tomcat-maven-plugin?
My goal is to deploy several webapps using tomcat-maven-plugin and make some cross context interactions between them. This is for prototyping purposes. So I created two war modules (core & webapp1), placed apropriate context.xml into META-INF folder…
        
        Zkejid
        
- 81
 - 5
 
                    2
                    
            votes
                
                3 answers
            
        How to pass data when redirecting from one web application to another?
I have two web application which are deployed in the same J2EE Application server. I need to redirect from one web application to another. Also I need to set some information in the Header from web application 1 so that it is available in web…
        
        Apps
        
- 3,284
 - 8
 - 48
 - 75
 
                    2
                    
            votes
                
                1 answer
            
        Getting context of another webapp in tomcat
I have the following configuration running on Tomcat 8.0.20:
C:\tomcat
   conf
     server.xml
     context.xml
   webapps
     app
     app2
   ......
C:\external
     app3
        web
     app4
        web
     app5
        web
In context.xml I…
        
        Ivan Nikolchov
        
- 1,574
 - 1
 - 27
 - 41
 
                    1
                    
            vote
                
                2 answers
            
        How do you set crossContext and enptySessionPath in Jboss7?
I am trying to migrate the deployment of some applications from tomcat 6 to jboss-as 7.
A single sign-on mechanism has been implemented for these projects, which, in order to work, needs to have crossContext="true" set in the tomcat context.xml file…
        
        Radu
        
- 1,044
 - 3
 - 12
 - 35
 
                    1
                    
            vote
                
                1 answer
            
        How to auto set crossContext in an Eclipse WTP Tomcat
How can I set the crossContext directive in the context of an web application so any WTP publish / deploy will set this correct to the generated Applications context.xml (conf/Catalina/localhost/appname.xml)
I tried to set it in the Servers…
        
        childno͡.de
        
- 4,679
 - 4
 - 31
 - 57
 
                    1
                    
            vote
                
                2 answers
            
        How to change the default value of context.xml in Tomcat?
I am trying to use the crossContext feature in Tomcat so that I need to set  in the context.xml file located in mypath\apache-tomcat-7.0.41\conf folder. 
However I find that every time I restart tomcat it will restore to… 
        
        Tim
        
- 31
 - 1
 - 4
 
                    0
                    
            votes
                
                1 answer
            
        How to set up cross-context between webapps deployed inside ear in JBoss 4
We have 2 war files inside an ear file deployed in JBoss 4. We need to switch between web app contexts for which we are using UrlRewriteFilter. 
The problem we are facing is we are not able to perform a requestDispatcher.forward() between these…
        
        Sundeep
        
- 11
 - 1
 - 4
 
                    0
                    
            votes
                
                0 answers
            
        Cross context communication EF Core
I have Student and Backpack entities:
internal class Student
{
    public Guid Guid { get; set; }
    public string Name { get; set; }
    ICollection backpacks;
    public virtual ICollection Backpacks
    {
        get
     …  
        
        Dilshod K
        
- 2,924
 - 1
 - 13
 - 46
 
                    0
                    
            votes
                
                1 answer
            
        Obtain servlet response when using Cross-Context
I'm using cross-context to call a servlet in another server application: Servlet /bar from server application 'A' calls /foo servlet on server application 'B'.
I'm using this very nice solution, just as in the Abhijeet Ashok Muneshwar answer, I…
        
        user2256799
        
- 229
 - 1
 - 3
 - 10
 
                    0
                    
            votes
                
                1 answer
            
        Forwarding to another webapp with authentication
I was trying out my first web app. Using Tomcat 7.
I want to forward from  host:port/app1/x/y  with some post data and authentication headers  to   host:port/app2/x/y with the same post data and the headers. Both the applications are on the same…
        
        Abhilash L L
        
- 366
 - 2
 - 7
 - 16
 
                    0
                    
            votes
                
                0 answers
            
        Tomcat now throws javax.servlet.jsp.JspTagException: Unable to get RequestDispatcher for Context after update to 7.0.59
I'm running the stock Java and Tomcat from the Fedora 21 distro, which has been working fine with my apps until the Tomcat 7.0.59 update came down recently. Now setting crossContext="true" does not prevent a fatal exception being thrown, which is…
        
        Sam Hokin
        
- 660
 - 1
 - 6
 - 15
 
                    0
                    
            votes
                
                0 answers
            
        404 when using Tuckey URLRewriteFilter with JAX-RS
I'm trying to use the URLRewriteFilter in combination with a number of different types of resources. It works perfectly fine for static resources and regular servlets. For JAX-RS-based services however, I get a 404.
This is the situation:
There are…
        
        Bert
        
- 861
 - 9
 - 22