Rectangle 27 1

There is a system property that you can set for Tomcat 7

-Dorg.apache.el.parser.SKIP_IDENTIFIER_CHECK=true

java - JSTL is not working after migration to Tomcat 7 - Stack Overflo...

java jsp tomcat jstl tomcat7
Rectangle 27 0

Ok. I'm sorry if i've asked a "no-sense" question. The Only way to solve this was mapping every servlet in web.xml file.

After an extensive search googling and, through stackoverflow, there's no other option than the WebServlet annotation or web.xml mapping.

There's no easy way, and "recreate" the invoker servlet wasn't a practical option.

If you are generating the same text for all of the entries, you can use m4 to make it easier - and use make to generate the file. You could create a web.m4 and run m4 against that file using make to generate your web.xml.

java - Tomcat 7: Migration from Tomcat 6 - Invoker Servlet - Stack Ove...

java tomcat servlets tomcat7
Rectangle 27 0

I am not aware about the session affinity when working behind a hardware load balancer ,However for the scenario that you have mentioned as per your googling results for the 1st part you can use Memcache instead of cookie+database to reduce the operation response time . A simpler approach when using Memcache can be using "memcached-session-manager" .The setup and configuration is easy as mentioned at at http://code.google.com/p/memcached-session-manager/wiki/SetupAndConfiguration .

java - session migration/replication in tomcat - Stack Overflow

java session java-ee tomcat migration
Rectangle 27 0

Ok, so i got answer, problem lies in Classloader of JBOSS. Implementation of server contains some of the classes which are used before my project dependencies, thats why JBOSS use default parser insteed of javax.xml.bind to parse JAXB.

java - Soap Web Service migration from tomcat to Jboss 4.2.3 - Stack O...

java web-services soap jboss
Rectangle 27 0

Upgrading Tomcat 5.5 to 6 is no big deal. Basically you just need to reconfigure the stuff in /conf as it was.

One important detail is that Tomcat 6 has all the default libraries in one /lib folder while Tomcat 5.x has them spread over /lib, /shared and /common and its subfolders. Verify if there aren't extra non-appserver-specific JAR files dropped which might need to be copied to Tomcat 6. Often those are only be the JDBC drivers and other JAR's which are required by the container managed datasources and other resources. Further on, Tomcat 6's /conf/catalina.properties also has new properties shared.loader and common.loader wherein you can specify those kind of paths yourself. Useful to externalize webapp properties files, xslt files, i18n files and so on.

Migrating webapplications to another server is another story. The biggest problems would arise in the classpath. It may happen that the developer has somehow dropped some appserver-specific JAR files in the /WEB-INF/lib. That would cause "unexplainable" ClassNotFoundException or NoClassDefFoundError problems whenever the webapp is deployed on an appserver of a different make/version. But if the webapp is all "clean", then I don't forsee real problems.

I am having the problem you describe, the "unexplainable" ClassNotFoundException. My /WEB-INF/lib consists of orai18n.jar, saxon9.jar, and my own tox.jar. Honestly can't remember why orai18n is there. Perhaps this is a starting point. Also, what do you mean by a "clean" webapp?

First, what's the name of the missing class? If it is one of the Java EE classes which ought to be default supplied by the appserver, then it means that the WEB-INF/lib is dirty (see 3rd paragraph). If it concerns another class which is not by default supplied by the appserver then verify if there aren't any JAR's in Tomcat 5.5's library paths which should be copied to Tomcat 6 (see 2nd paragraph).

It is the former... the logging mechanism which should be part of tomcat is being reported as missing. But I'm still not clear as to what you mean by "dirty". I've only three jars in my app's WEB-INF/lib. My jar is "clean". I certainly trust the saxon9.jar. Perhaps the oracle orai18n.jar is the issue?

With "dirty" I mean that the WEB-INF/lib contains appserver-specific JAR's which doesn't belong in there. This is likely not the root cause of your problem. Can you please post the entire exception and the stacktrace? Edit it in your topicstart if it gets long.

java - Migrating from Tomcat 5.5.x to 6.0.x - Stack Overflow

java tomcat servlets migration
Rectangle 27 0

In Tomcat, these things can be defined in a couple of different places.

For the security-role re-mapping, use the standard <security-role-ref> in web.xml to re-map role names.

If you are using a servlet-3.0-spec webapp, then many of your session- and cookie-related items are available via web.xml:

<session-config>
  <cookie-config>
    <name>nameOfCookie</name>
    <max-age>-1</max-age>
  </cookie-config>
  <!-- just don't use "URL" to disable rewriting -->
  <tracking-mode>COOKIE</tracking-mode>
</session-config>

Otherwise, you'll have to resort to some acrobatics. First, I'll assume that you are using a META-INF/context.xml file within your webapp for deployment to Tomcat.

it seems that i have a problem with security-role-ref. Please see stackoverflow.com/questions/10981375/ if you can help

java - Migration from Weblogic to Apache Tomcat - Stack Overflow

java tomcat servlets migration weblogic
Rectangle 27 0

version="3.0"
<dependency>
    <groupId>javax</groupId>
    <artifactId>javaee-api</artifactId>
    <version>7.0</version>
    <scope>provided</scope>
</dependency>

Looks like you're just copying/pasting/crossing your fingers and hoping that everything works. This is not how you're supposed to do it. Just import the relevant dependencies you will use.

I have changed the servlet dependency to 3.0 but its still not working.

Now its saying cannot change version of Dynamic Web Module to 3.0

@Mr37037 are you sure your project is a Maven project rather than a dynamic web project?

Yeah I did it like open eclipse luna-> file-> import -> existing maven project. btw this maven project was working fine in juno with tomcat 7.

I have added facets file as well

java - Migration from Tomcat 7 to Tomcat 8 - Stack Overflow

java eclipse tomcat eclipse-luna tomcat8
Rectangle 27 0

In Tomcat there is a web.xml in the conf directory, but you don't need to change it, if you are only deploying an application. By default the conf/web.xml is already setup to execute JSP / servlets.

Most web applications follow the Servlet JSR and can run on any Java container like Jetty, Resin or Tomcat etc, you don't need to modify the project.

If you place a WAR file or your project in the webapps directory it gets deployed at startup. You can use ROOT, but I use separate paths for my applications. The URL would then look like http://localhost:8080/mywebapp/

I forgot to mention that I want to change web.xml of web project i.e., webapps\ROOT\WEB-INF\web.xml Project web.xml always overrides server conf/web.xml so there is no and no use to change servers conf/web.xml

But I want to project web.xml so that it would run on Tomcat Note: I don't have ROOT.war I always copy ROOT folder to webapps folder of server

java - How to Migrate a web project running on resin server to tomcat ...

java tomcat migration migrate resin
Rectangle 27 0

I had the same error and resolved it by adding registration="ignoreExisting" to the mbean-export part:

<context:mbean-export server="mbeanServer" default-domain="mydomain" registration="ignoreExisting" />

java - Migration to Tomcat 8: InstanceAlreadyExistsException datasourc...

java tomcat configuration context.xml
Rectangle 27 0

There is a system property that you can set for Tomcat 7

-Dorg.apache.el.parser.SKIP_IDENTIFIER_CHECK=true

java - JSTL is not working after migration to Tomcat 7 - Stack Overflo...

java jsp tomcat jstl tomcat7
Rectangle 27 0

info is basically was used as your root context in your previous web server. As you have dumped the files in the root webapps folder of your tomcat hence now the root context is "/". In order to have info in your URL, you need to create a directory "info" under tomcat/webapps directory and then dump the files of the same webapp to this directory. Restart your server and check the URLs

ive moved the files into the "info" folder but now I just get an 404 error as if there is nothing there. is there any configuration that I need to do to get it to work??

@JonDog check whether you have web.xml there. Also share the complete directory structure of your tomcat and and your webapp, so that people can help you better.

The directory structure is webapp/ROOT/info/ "info" contains all of the site files. There is a web.xml file inside webapp/ROOT/info/WEB-INF/

@JonDog Take info directory from ROOT and put it in webapp directory. Restart the server and test ur URLs

Its still the same 404 error. there isnt anything in the root folder at this point. how do i configure tomcat to run off a different folder.

java - Tomcat 6 - webapp migration - Stack Overflow

java tomcat tomcat6
Rectangle 27 0

info is basically was used as your root context in your previous web server. As you have dumped the files in the root webapps folder of your tomcat hence now the root context is "/". In order to have info in your URL, you need to create a directory "info" under tomcat/webapps directory and then dump the files of the same webapp to this directory. Restart your server and check the URLs

ive moved the files into the "info" folder but now I just get an 404 error as if there is nothing there. is there any configuration that I need to do to get it to work??

@JonDog check whether you have web.xml there. Also share the complete directory structure of your tomcat and and your webapp, so that people can help you better.

The directory structure is webapp/ROOT/info/ "info" contains all of the site files. There is a web.xml file inside webapp/ROOT/info/WEB-INF/

@JonDog Take info directory from ROOT and put it in webapp directory. Restart the server and test ur URLs

Its still the same 404 error. there isnt anything in the root folder at this point. how do i configure tomcat to run off a different folder.

java - Tomcat 6 - webapp migration - Stack Overflow

java tomcat tomcat6
Rectangle 27 0

version="3.0"
<dependency>
    <groupId>javax</groupId>
    <artifactId>javaee-api</artifactId>
    <version>7.0</version>
    <scope>provided</scope>
</dependency>

Looks like you're just copying/pasting/crossing your fingers and hoping that everything works. This is not how you're supposed to do it. Just import the relevant dependencies you will use.

I have changed the servlet dependency to 3.0 but its still not working.

Now its saying cannot change version of Dynamic Web Module to 3.0

@Mr37037 are you sure your project is a Maven project rather than a dynamic web project?

Yeah I did it like open eclipse luna-> file-> import -> existing maven project. btw this maven project was working fine in juno with tomcat 7.

I have added facets file as well

java - Migration from Tomcat 7 to Tomcat 8 - Stack Overflow

java eclipse tomcat eclipse-luna tomcat8
Rectangle 27 0

I am not aware about the session affinity when working behind a hardware load balancer ,However for the scenario that you have mentioned as per your googling results for the 1st part you can use Memcache instead of cookie+database to reduce the operation response time . A simpler approach when using Memcache can be using "memcached-session-manager" .The setup and configuration is easy as mentioned at at http://code.google.com/p/memcached-session-manager/wiki/SetupAndConfiguration .

java - session migration/replication in tomcat - Stack Overflow

java session java-ee tomcat migration
Rectangle 27 0

connector.setProperty("useComet", Boolean.toString(false));
connector.setProperty("socket.appReadBufSize", "87380");
connector.setProperty("socket.rxBufSize", "87380");
connector.setProperty("socket.performanceConnectionTime", "2");
connector.setProperty("socket.performanceLatency", "0");
connector.setProperty("socket.performanceBandwidth", "1");
connector.setProperty("server", "My server");

java - Spring Boot Tomcat Configuration, migration from container to e...

java spring spring-mvc tomcat spring-boot
Rectangle 27 0

There is a system property that you can set for Tomcat 7

-Dorg.apache.el.parser.SKIP_IDENTIFIER_CHECK=true

java - JSTL is not working after migration to Tomcat 7 - Stack Overflo...

java jsp tomcat jstl tomcat7
Rectangle 27 0

The Apache Tomcat website has a Migration Guide that you might want to check. You may find some usefull information in it as you know what your application uses better than SO readers do :)

  • he was able to copy XML files without any problems (over conf/server.xml and conf/Catalina/**),
commons-logging.jar
el-api.jar

Regarding the specific changes you made, I guess you'll have to apply them again. But I'm not sure they'll need adjustment.

But actually, I'm wondering why you migrate your mature application. Do you plan to use Servlet 2.5 and JSP 2.1 APIs? Are you interested by the other improvements?

I looked at the "Migration Guide"... and to be honest... its lame. Only 270 words and nothing said.

Oh, and the reason to migrate... We are considering using Liferay which is dependent upon 6.0.x apparently, and we don't want to maintain two versions of Tomcat.

java - Migrating from Tomcat 5.5.x to 6.0.x - Stack Overflow

java tomcat servlets migration
Rectangle 27 0

If you use Java EE (EJB, JMS and others), you will need an application server like JBoss or Glassfish, Tomcat simply doesn't support these technologies. If not, it should be piece of cake, so just try it and ask here if you encounter any issues.

java - migration from Jboss to Tomcat? - Stack Overflow

java eclipse tomcat jboss
Rectangle 27 0

Just Solved the errors by adding this to pom.xml

<build>
    <plugins>
        <plugin>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>2.0.2</version>
            <configuration>
                <source>1.7</source>
                <target>1.7</target>
            </configuration>
        </plugin>
    </plugins>
</build>

java - Migration from Tomcat 7 to Tomcat 8 - Stack Overflow

java eclipse tomcat eclipse-luna tomcat8
Rectangle 27 0

Session replication is a pretty broad topic. Have you tried the Tomcat built-in replication yet?

If that's not good enough for you, you can look for commercial tools like Terracotta Web Sessions. Or you could develop your own session cache around for example memcached.

Sign up for our newsletter and get our top new questions delivered to your inbox (see an example).

java - session migration/replication in tomcat - Stack Overflow

java session java-ee tomcat migration