icefaces-facelets.jar Where is it on IceFaces 2? - facelets

Does anyone know where can i get the icefaces-facelets.jar do i have to downloads the 1.8 specification? is it compatible?

Use default facelets for your configuration. IceFaces do not have its own anymore and they started to use the default instead. So in pom.xml you could have for example:
<dependency>
<groupId>com.sun.facelets</groupId>
<artifactId>jsf-facelets</artifactId>
<version>1.1.10</version>
</dependency>

With icefaces 2 you don't need the icefaces-facelets.jar anymore. Depending on your coding you need the icefaces.jar and the icefaces-compat.jar or even the new icefaces-ace.jar.

icefaces 2.0 is based on jsf 2.0, which comes already with facelets, so you don't need any facelets jar. You can find more info in this SO question:
JSF 2.0 and Facelets

Related

How to update Salesforce API version in Mule

I am seeing this warning message and wanted to know how to update so I am using v38 or higher as recommended?
WARN 2016-12-13 12:16:55,221 [[test].test-order-system-httpListenerConfig.worker.01] org.mule.modules.salesforce.config.AbstractConfig: API version 37.0 is lower than the recommended 38.0 version
Thanks
make sure you have correct dependency in pom.xml
<dependency>
<groupId>org.mule.modules</groupId>
<artifactId>mule-module-sfdc</artifactId>
<version>8.1.0</version>
</dependency>
and url has correct ver
.......salesforce.com/services/Soap/u/38.0

Jersey linking support with Google App Engine issue

I didn't manage to use the Jersey linking support with Google App Engine, I'm getting these exceptions when trying to access the application :
Caused by: javax.el.ELException: Could not find expression factory class
...
Caused by: java.lang.ClassNotFoundException: de.odysseus.el.ExpressionFactoryImpl
As specified in the documentation, I put this in the Jersey servlet section of the web.xml :
<init-param>
<param-name>com.sun.jersey.spi.container.ContainerResponseFilters</param-name>
<param-value>com.sun.jersey.server.linking.LinkFilter</param-value>
</init-param>
I also add the jersey-server-linking-1.13.jar to the WEB-INF/lib directory of my project.
I tried to add el-api.jar first, then juel-2.1.0.jar to the WEB-INF/lib directory but I'm still getting these errors.
I'd like to know if someone could give me some hints about the way to deal with this. When I don't use the Jersey linking jar, everything is working as expected.
I had a similar problem with my GAE app. It was working fine with el-api and el-impl but started asking for de.odysseus.el.ExpressionFactoryImpl as development progressed. I made the switch but when I added JUEL to my pom.xml, I got the same error as John Prince (java.security.AccessControlException).
The solution for GAE users is to use JUEL 2.2.7.
At the time of this writing, 2.2.7 is not available in maven central. However, you can find it on
<repository>
<id>repo-id</id>
<name>repo-name</name>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
</repository>
and link with whatever you need from
<dependency>
<groupId>de.odysseus.juel</groupId>
<artifactId>juel-api</artifactId>
<version>2.2.7-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>de.odysseus.juel</groupId>
<artifactId>juel-impl</artifactId>
<version>2.2.7-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>de.odysseus.juel</groupId>
<artifactId>juel-spi</artifactId>
<version>2.2.7-SNAPSHOT</version>
</dependen
Source: https://github.com/beckchr/juel/issues/73
The issue is due to de.odysseus.el.ExpressionFactoryImpl class not being found. I will assume that you have added the jars as you have mentioned to the WEB-INF\lib folder.
I would suggest that you view the JAR files via theProject Explorer , simple expand them in Eclipse and see if you can find the de.odysseus.el.ExpressionFactoryImpl class in ny of the JAR files that you have added.
I "solved" the problem by adding "juel" and "juel-impl" as dependencies of my project (we're using Maven; if you're doing it manually, you might have to figure out exactly what those projects contain).
However, as soon as I did that, I started getting a different exception:
java.security.AccessControlException: access denied (java.io.FilePermission C:\Program Files (x86)\Java\jdk1.6.0_33\jre\lib\el.properties read)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:374)
at java.security.AccessController.checkPermission(AccessController.java:546)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at com.google.appengine.tools.development.DevAppServerFactory$CustomSecurityManager.checkPermission(DevAppServerFactory.java:289)
...
I'm pretty sure that's because it's running afoul of GAE restrictions.
I noticed in the original ClassNotFound exception it was trying to use the URLClassLoader; I'm also wondering if that problem was ultimately a GAE issue as well.
At this point, it seems like Jersey linking support isn't compatible with GAE.
This issue is (or rather was) due to a missing implementation of the Unified Expression Language. The EL API defines a static method that looks up an implementation of the ExpressionFactory class. There are various ways to define which implementation is to be used:
Use the Services API (as detailed in the JAR specification). If a resource with the name of META-INF/services/javax.el.ExpressionFactory exists, then its first line, if present, is used as the UTF-8 encoded name of the implementation class.
Use the properties file "lib/el.properties" in the JRE directory. If this file exists and it is readable by the java.util.Properties.load(InputStream) method, and it contains an entry whose key is "javax.el.ExpressionFactory", then the value of that entry is used as the name of the implementation class.
Use the javax.el.ExpressionFactory system property. If a system property with this name is defined, then its value is used as the name of the implementation class.
Use a platform default implementation.
(Source: http://docs.oracle.com/javaee/7/api/javax/el/ExpressionFactory.html#newInstance())
App Engine appears to have defined JUEL as default implementation but does not provide the respective packages.
In order to solve this, you need to (1) provide EL API and implementation packages and (2) use one of the above ways to link it. See https://stackoverflow.com/a/19814199/2099217 for details.

Getting Started with GWT RequestFactory

I'm new to GWT. I've manage to do the tutorial about how to build the simple StockWatcher application.
Now, I want to load the data from the server. After reading about the many different ways to do it in GWT I decide to use RequestFactory because apparently it the most affective way to write maintainable application.
The problem is that there is no tutorial about RequestFactory and Eclipse is hard enough to manage when you know if, it even harder to manage when I'm using a new tool like GWT.
I've manage to find the different jars required for RequestFactory like
gwt-servlet.jar
gwt-servlet-deps.jar
requestfactory-server.jar
Now I get the following error:
java.lang.RuntimeException: The RequestFactory ValidationTool must be run for the com.google.gwt.sample.stockwatcher.shared.service.StockWatcherRequestFactory RequestFactory type
I've even found a direction for this as well: RequestFactoryInterfaceValidation
but it's still not working.
I've add the com.google.web.bindery.requestfactory.apt.ValidationTool to my build path and it seem to help (the message was gone) but then I got different error message.
I've push the source to github repository.
Any help will be great.
I'll try to make a post once I'll manage to get this working so other can use it.
Thank you,
Ido.
I figure this out. object is not an instance of declaring class means that we try to invoke a instance method on object which is not of the type the method is declared on.
My mistake was that in my ServiceLocator implementation I mistakably return an instance of my domain model object (StockQuote) instead of the DAO (StockQuoteDao). This cause RequestFactory code to try and invoke StockQuoteDao.getNum method on StockQuote instance.
Ido.
If you are using google plugin for eclipse use this
http://vivagwt.blogspot.com/2011/09/requestfactory-en-gwt-24.html
you need rebuild you project every time you change you requestcontext
note: gwt-servlet.jar is needed if you use RPC
Also you may automatically run RequestFactory ValidationTool with maven in compiling phase:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<forceJavacCompilerUse>true</forceJavacCompilerUse>
</configuration>
<dependencies>
<dependency>
<groupId>com.google.web.bindery</groupId>
<artifactId>requestfactory-apt</artifactId>
<version>2.6.1</version>
</dependency>
</dependencies>
</plugin>

Cakephp 2.1 Image Upload Plugin

I am looking for Plugins to upload content - mainly images. I found a couple of plugins which are for 1.3 but not none for 2.1
could you please share a few plugins for 2.1
Have you tried meio upload? It is compatible with cake 2.x?
https://github.com/jrbasso/MeioUpload
A nice one i just found:
https://github.com/bmcclure/CakePHP-Media-Plugin
i have not tested it much, but it seems to work great, you even can define additional image sizes to be created automaticalliy.
You could customize 1.3 version plugin for 2.1 or use something like this: CakePHP File Upload
Although the others are nice, I found this one a lot more easy to use than the others check it out :
https://github.com/malikov/cakephp2.0-image-upload
I use wrapper for cakephp imagine Library:
https://github.com/burzum/cakephp-imagine-plugin
Upload plugin is available now at Github

Google App Engine using maven

I've been trying to create a single project which can run both on sql and gae (where the 'datanucleus.properties' file needs to be changed) under a single maven folder structure. I first tried to get the Greeting example on the GAE website using mysql (this now works). Then, inspiring myself from beardedgeeks tutorial, I have tried to add the required dependencies so as to run the stuff on gae. By typing in mvn gae:run, however, I get the following error, posted at http://pastebin.com/fJ7c7xfx. I have spent a large amount of time searching google etc. for answers, but haven't been able to advance my case.
I would be glad to get some pointers.
Cheers,
manojo
This question is tagged [JDO] but the following trace:
Caused by: java.lang.ClassNotFoundException: javax.persistence.InheritanceType
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at com.google.appengine.tools.development.IsolatedAppClassLoader.loadClass(IsolatedAppClassLoader.java:151)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 77 more
suggests that you're missing the JPA API jar (provided by org.apache.geronimo.specs:geronimo-jpa_1.0_spec:1.1.1).
<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-jpa_3.0_spec</artifactId>
<version>1.1.1</version>
</dependency>
Since you're not using JPA, you shouldn't have to do that but it appears that the JPA API is somehow referenced by the datanucleus appengine plugin as explained by #Datanucleus.
The people at Google unwisely put a reference in to that JPA class in their plugin and so it requires that you have the jpa.jar (the Geronimo one will do) in your CLASSPATH. An issue was raised on them a long time ago to fix it, but sadly they don't actively maintain their plugin.

Resources