I'm trying to run some sample but I cannot find this class:
org.alfresco.web.scripts.*
Could you help me to find JARs for Java-backed web scripts? I downloaded the Alfresco SDK but I can't find it on alfresco-web-client-3.4.b.jar
It's really freaking me out! Thanks for your time!
Andrea
Hi I guess you need the new package since 3.3 : org.springframework.extensions.webscripts.*
Take a look at this Wiki and you will see that the package you're referring to is no longer being used.
The org.alfresco.repo.web.scripts package is in the Remote API jar, eg alfresco-remote-api-4.0.a.jar .
That's not the package you asked about (it's org.alfresco.repo.web.scripts rather than org.alfresco.web.scripts) but I think it's the one you want, as I can't spot the latter in the codebase from a quick check...
Related
I've created a Play! Framework 2.4 project using play-hibernate template through activator. When it finished building the project, I went to its root directory and ran the project. When I accessed it through the browser (localhost:9000), it returned an error:
package utils does not exist
In path/projectName/Global.java:3
1import play.Application;
2import play.GlobalSettings;
3import utils.PlayUtils;
That's odd, since there is a folder utils along with Global.java, with a Java class PlayUtils inside it. A bug, maybe?
Has anybody experienced anything like that?
Thank you very much for your time!
edit:
auL5agoi asked for the link to this template, and here it goes: https://github.com/ldaume/play-hibernate#master
Thank you for participating!
I downloaded the binaries of the latest stable version of apache-mime4j (0.7.2).
Yet, I fail to compile the next code since MboxIterator & CharBufferWrapper classes are not found.
final File mbox = new File("path/name.mbox");
for (CharBufferWrapper message : MboxIterator.fromFile(mbox).charset(ENCODER.charset()).build())
{do something}
The jars included in my build path: apache-mime4j-core-0.7.2.jar, apache-mime4j-dom-0.7.2.jar.
Am I using the wrong jars or version?
I had the same problem but I ended getting it to work by doing a little research.
The classes you mention, at least by what I found, are not included into Mime4J, so you have to code them yourself. Thanks to the devs, they got them uploaded in the following link: MBoxIterator needed classes.
Hope those solve the problem.
You can clone the current snaphshot of the mime4j project from
http://svn.apache.org/repos/asf/james/mime4j/trunk/
to your personal github account
or use my clone:
https://github.com/WolfgangFahl/james-mime4j
and your MBoxIterator is here:
https://github.com/WolfgangFahl/james-mime4j/tree/trunk/mbox/src/main/java/org/apache/james/mime4j/mboxiterator
In my program, I am trying to import below classes but there comes a compile time error for this. Am I missing any jar there ? If yes, then which jar I am missing. Please help me.
"import net.java.util.TagValue;"
I am writing this in eclipse
A simple search on the net shows that net.java.util.TagValue class belongs to fixparser library. Make sure that this library is in your classpath when working on your project.
I want to get the code of hibernate.cfg.Configuration class code.. I mean the full java code of Configuration class .. how can i get that ?
View it online: http://www.docjar.com/html/api/org/hibernate/cfg/Configuration.java.html
Get it from GitHub: https://github.com/hibernate/hibernate-orm
Clone the repo: git clone git://github.com/hibernate/hibernate-orm.git
If you already use maven: use -DdownloadSources to get the sources for artifacts
There are a lot of better and easier ways then decompiling the class.
Okay .. ! so i figured it out some how .. you need to download a java decompiler. .. you can get one here: http://java.decompiler.free.fr/
I have developed a little program for myself. After testing and
finishing it locally I now wanted to put it on my server.
I get this error:
Compilation error The file /app/controllers/Links.java could not be
compiled. Error raised is : Secure cannot be resolved to a type
It is thrown at this line:
#With(Secure.class)
In the Class Links I have:
import play.mvc.With;
import controllers.*;
#With(Secure.class)
public class Links extends CRUD {
}
I have installed play 1.2.2 on my server. Play is running probably. I
type in the terminal "play start appname" and opened serverIp:9010 to
see this error. If I type "play precompile appname" everything seems
to work.
In the subfolder /modules of the app I have two text files, one "crud"
and one "secure" which point to the modules location on the server. I
also have defined the modules in dependencies.yml like this:
require:
- play
- crud
- secure
In the application.conf I have a Production definition for my server
with the proper Server-ID like this:
%server1.application.mode=PROD
Any idea why this isn't working?
I have solved it. For future reference:
I had an old process of play running. Found it with ps -aux and then kill PID. After that I started the application again with play start.
It's now running fine :)
Thanks for you help!
Declaring the secure module in dependencies.yml file is the first step.
Next you have to type the shell command "play dependencies" in order to resolve them.
Just have a glance on the documentation here : http://www.playframework.org/documentation/1.2.2/dependency#Theplaydependenciescommand
Have fun with Play!
Sometimes you have to refesh the classpath settings by using play eclipsify again. (depends on the IDE you are using)
I had to insert this line to application.config
module.secure=${play.path}/modules/secure
I had the same problem in my development environment, but not in my production server. I tried to solve by the module documentation, the accepted answer here, and many others with no success.
My solution was to download again play framework (1.2.7) and replacing it in the path where I installed first.
Hope this can guide someone else with the same issue.
Regards.