I just started learning REST API and jersey. When I run the application. I am getting this error and have no idea how to fix it.
Can someone help in this? I want to know why I am getting this error even though I configured all the required jars and also I want to know how to fix this problem?
I guess, you haven't added the lib folder to build path . add lib folder to build path will resolve your problem.
Related
I am getting component-preload.js not found error even tough it exists..
I'm using SAP WEBIDE personal edition full stack. so, neo-app.js and package.json are generated by defalut and by using the build option I generated component.-preload.js along with dist folder.As in my project I dont have direct connection to the SAP system,I need to use export(from webide) and import/download(using UI5/UI5/REPOSITORY_LOAD) into my front end server.Once I upload the project into the front end server component-preload.js is missing so am getting the same error "Component-preload.js missing" even though it exists.
could some one please let me know what could be the problem and how to resolve it.
Thanks in advance!
I am trying to build a simple jain slee project by following the steps given here
https://developer.jboss.org/wiki/HelloSLEEWorldServiceJAINSLEETutorial
but when i try to create a service i get an error message error message scr shot
can anyone help me
This question is quite old, but I will answer nevertheless for future visitors' sake.
The issue is with the Eclipslee service creation plugin. Can you install one from here and try to create the service again.
If not find the plugin jar file named;
org.mobicents.eclipslee.servicecreation_2.0.0.v20130704-2333.jar
This is the one I use. But I think the 2.0.0.FINAL should do the job. I can't upload the exact file because I don't remember where I got it from. Probably a forum somewhere or an issue tracker thread. But can't quote the source properly. :(
P.S.(in case you didn't know) Installation == Copying the jar file to the plugins directory in Eclipse.
edit:
This is another workaround. v2.0.0 apparently does not work too.
I am facing one problem when my code goes to publish. I have page in which i used a component with custom tag. It work fine in author, but when i replicate my code from author to publish it gives error like : The absolute uri: http:||www.mysite.com/taglibs cannot be resolved in either web.xml or the jar files deployed with this application . I have correctly replicated the my /apps/mysite folder on publish. But it gives error on publish but not on author.Any troubleshooting steps that can help me?
Thanks
Make sure that bundle with your custom tag library was installed correctly on publish enviroment (via /system/console/bundles).
And, could you describe how you deploy your project on publish enviroment?
on a particular page on our site http://www.sakshum.org/ui/page/JoinUs.jsp which is build using gwt and deployed on GAE the module does not load.
This works fine in development env in eclipse and have no errors when looking via firebug in the console.
Please advise what may be wrong here and how to fix it?
look at the AE logs. firebug will only show you client side stuff. It's probably a classpath issue -- such as you have something locally but aren't uploading that jar ...etc.
Edit:
please post your JoinUs.jsp
I am calling my gwt module via a jsp page on AE no problem. Maybe the path in your script tag pointing to the *.nocache.jsp file is off somehow. Usually when things resolve locally but not on AE, for me, the problem was appengine-web.xml and setting include and exclude paths. I had to be careful there because things worked differently locally and deployed - especially using wildcard.
Also, look for uri errors under the dashboard (ae administration page). static resources that are not found will show there and not in the ae log since they are static.
Thanks all for the help. So, the issue was completely different. Actually the div tag was not rendering at all due to the coding error of a if statement in the jsp. On fixing that it started working
thanks in advance for attention.
It's the first time i am writing on this site (quite newbie :) )
I previously read question of a user asking for my same problem. Although i read a lot i could not find a solution.
Problem:
I am trying to use MatlabControl jar (http://code.google.com/p/matlabcontrol/) to "call" matlab within my java code.
When i try this api within a normal java application to try it (including matlabcontrol.jar in the buildpath) everything works perfectly.
My issue is to make it work on an ejb module with jboss 5 AS:
i can deploy the ejb module and i can see classes of the matlabcontrol.jar (which i put in server/default/lib folder), but it is not working and is returning me the following exception:
Caused by: java.lang.NullPointerException
at java.io.File.<init>(File.java:251)
at matlabcontrol.Configuration.getSupportCodeLocation(Configuration.java:227)
at matlabcontrol.RemoteMatlabProxyFactory.createProcess(RemoteMatlabProxyFactory.java:278)
at matlabcontrol.RemoteMatlabProxyFactory.requestProxy(RemoteMatlabProxyFactory.java:116)
at matlabcontrol.RemoteMatlabProxyFactory.getProxy(RemoteMatlabProxyFactory.java:134)
at matlabcontrol.MatlabProxyFactory.getProxy(MatlabProxyFactory.java:81)
that lead me to the following lines:
URL url = Configuration.class.getProtectionDomain().getCodeSource().getLocation();
File file = new File(url.toURI().getPath()).getCanonicalFile();
The very strange thing is that very very rarely, after restarting jboss and re-deploying the ejb module, the system works!.
I really don't know if i have to modify the source code of these last 2 lines (as if it is a problem of not properly getting the location of the jar code) or to set some configuration files of jBoss to set the classpath differently.
Thanks again in advance.
Any help would be very appreciate.
The mistake was in the code to find the location of the jar at runtime.
I printed the path, which ended with "!" and double slash, so I removed these chars and I was finally able to make this API work.