You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by an...@apache.org on 2014/08/14 15:25:38 UTC

svn commit: r1617935 - in /tomee/site/trunk: content/documentation.mdtext content/tip-jersey-client.mdtext templates/basic.html

Author: andygumbrecht
Date: Thu Aug 14 13:25:37 2014
New Revision: 1617935

URL: http://svn.apache.org/r1617935
Log:
Jersey tip

Added:
    tomee/site/trunk/content/tip-jersey-client.mdtext
Modified:
    tomee/site/trunk/content/documentation.mdtext
    tomee/site/trunk/templates/basic.html

Modified: tomee/site/trunk/content/documentation.mdtext
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/documentation.mdtext?rev=1617935&r1=1617934&r2=1617935&view=diff
==============================================================================
--- tomee/site/trunk/content/documentation.mdtext (original)
+++ tomee/site/trunk/content/documentation.mdtext Thu Aug 14 13:25:37 2014
@@ -93,5 +93,6 @@ You can also find us on IRC freenode.org
 ###Tips and Tricks
 [Global Concurrency Management](tip-concurrency.html)  
 [WebLogic Lookup](tip-weblogic.html)  
+[Jersey Client](tip-jersey-client.html)  
 }
 }
\ No newline at end of file

Added: tomee/site/trunk/content/tip-jersey-client.mdtext
URL: http://svn.apache.org/viewvc/tomee/site/trunk/content/tip-jersey-client.mdtext?rev=1617935&view=auto
==============================================================================
--- tomee/site/trunk/content/tip-jersey-client.mdtext (added)
+++ tomee/site/trunk/content/tip-jersey-client.mdtext Thu Aug 14 13:25:37 2014
@@ -0,0 +1,17 @@
+Title: Jersey Client
+
+If you have an application that uses jersey-client in any way then it may fail with an error along the lines of:
+
+    Caused by: java.lang.ClassNotFoundException: com.sun.jersey.core.util.FeaturesAndProperties
+    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java)
+    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java)
+    at org.apache.tomee.catalina.LazyStopWebappClassLoader.loadClass(LazyStopWebappClassLoader.java)
+    ... 34 more
+
+This is due to the fact that the jersey-core.jar contains some classes that should not be deployed as part of a javaEE application. For example, it contains javax.ws.rs.Path but does not contain javax.ws.rs.core.Configurable, so the jar is usually ignored by TomEE. 
+
+You could switch to using the [Apache CXF Client](http://cxf.apache.org/), but if you really want to keep Jersey then you can use set the following property in your [TomEE]\conf\system.properties
+
+    openejb.api.javax.ws.rs.Path.validation=false
+
+This will then allow Jersey classes to be loaded by TomEE (After a restart).
\ No newline at end of file

Modified: tomee/site/trunk/templates/basic.html
URL: http://svn.apache.org/viewvc/tomee/site/trunk/templates/basic.html?rev=1617935&r1=1617934&r2=1617935&view=diff
==============================================================================
--- tomee/site/trunk/templates/basic.html (original)
+++ tomee/site/trunk/templates/basic.html Thu Aug 14 13:25:37 2014
@@ -108,7 +108,7 @@
             <FORM class="pull-right" id="searchbox_010475492895890475512:_t4iqjrgx90" action="http://www.google.com/cse">
                 <INPUT type="hidden" name="cx" value="010475492895890475512:_t4iqjrgx90">
                 <INPUT type="hidden" name="cof" value="FORID:0">
-                <INPUT size="21" width="150" style="width:150px" name="q" type="text" placeholder="Search">
+                <INPUT size="19" width="140" style="width:140px" name="q" type="text" placeholder="Search">
             </FORM>
             <!--<SCRIPT type="text/javascript" src="http://www.google.com/coop/cse/brand?form=searchbox_010475492895890475512:_t4iqjrgx90"></SCRIPT>-->
             <!-- Google CSE Search Box Ends -->