Unable to setup Struts 2 environment - struts2

I'm getting this error message in the index.jsp file
Can not find the tag library descriptor for "http://struts.apache.org/tags-logic"
How do I rectify it?

Refer this Hello World Application tutorial link, you can compare your code with this sample codes and solve your issue.
Jar files which all are required are also available there in that link ( Except MySQL connector).

Related

how to use php thumb in zend framework 2

I am using webino/WebinoImageThumb module to generate thumbnail in my zend 2 application but it shows an error
"Fatal error: Class 'GD' not found ..."
Is there is any other module or library available to do this like php thumb etc.
Please help.
The error message obviously says the problem. You need the GD extension enabled on your system to use image processing capabilities of WebionoImageThumb module.
You should read installation documentation and follow the steps described there.

local and remote zend server

I'm learning Zend framework 2 therefore i downloaded the zendstudio IDE included with the zend server as well. I made my little application which is working totally fine on my local zend server. I wanted to try zend PHP cloud as well so i deployed my application there with zend studio. This application didn't work perfectly there. Some of the content is working and the other parts did not load at all only white screen. I checked the server logs and this is what i found there:
Function Name Zend\Loader\StandardAutoloader::loadClass
Error Type E_COMPILE_ERROR
Source File /home/container_name/.apps/http/__default__/0/app/1.0.0/vendor/zendframework/zendframework/library/Zend/Loader/StandardAutoloader.php
Error String Can't use method return value in write context
I thought that there might be an error during file uploading so i re uploaded the files via an ftp client and the problem is still exists.
Any help is greatly appreciated
After a couple of hours of code trace i found the solution:
if($this->request->isPost()){
if(!empty($this->getRequest()->getPost('sg')) <--- this is the line where it dies
Remote wasn't liked the !empty() so i replaced it with !=''

Paypal Direct Payment path errors

I'm using Paypal's Classic API to do Direct Payment on my site.
At the beginning of the DirectPayment sample on DoDirectPayment.php there is this line:
require_once('../PPBootStrap.php');
and it gives me this error:
Fatal error: require(): Failed opening required 'PPAutoloader.php' (include_path='.:/Applications/MAMP/bin/php/php5.4.4/lib/php') in /Users/jasonburton/Sites/georgetown/wp-content/themes/georgetown/paypal_direct_payment/samples/PPBootStrap.php on line 12
Now, that PPAutoloader.php call is an include within bootstrap. This doesn't just happen in bootstrap, it happens with all files that I try to include. The paths are just not right and I don't know what to do. I've echoed out my path in terminal and it just gives me:
/Applications/MAMP/bin/php/php5.4.4/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/git/bin
Any hints on how I can fix this problem? I know I'm not giving much information here but it's all I've got at the moment.
Any help is appreciated!
Did you run Composer ? We are using Composer for dependency management.
https://getcomposer.org/
Instructions are in the SDK Readme file too: https://github.com/paypal/merchant-sdk-php/blob/master/README.md

hdf viewer on windows for tables created using pyTables?

viTables only seems to work with python 2.5. I have downloaded HDFView, but when I try to open a table I created following this tutorial, I get the following error message:
Failed to open file C:\tutorial.h5
java.io.IOException: Unsupported fileformat - C:\tutorial.h5
Any ideas for getting HDFView to work?
Is there something I need to do when I'm using pyTables from python to make the format more generic?
Any other good HDF viewers?
Btw, I've just discovered PyTables, and I'm really excited about it.
ViTables works for me with python 2.6 on windows. It is supposed also to work with 2.7.
However the version on the official site did not work for me and crashed. In a mailinglist posting I found the link to the berlios ftp server where I got a version that works like a charm.
Have you seen ViTables?
http://vitables.berlios.de/

Connection issue in JayBird

I am new to Firebird using its Java version Jaybird, But unable to connect from database (.fdb file). The problem comes like this:
org.firebirdsql.jdbc.FBSQLException: GDS Exception. 335544375. unavailable database
OR
java.lang.RuntimeException: Failed to initilize Jaybird native library. This is most likley due to a failure to load the firebird client library.
Using following code:
Class.forName("org.firebirdsql.jdbc.FBDriver").newInstance();
connection = DriverManager.getConnection("jdbc:firebirdsql://localhost/3050:C:/XLNKREPOS /FIRBIRDXA.FDB", "SYSDBA", "masterkey");
Having following files in build path of Eclipse project:
jaybird-full-2.1.5.jar
jaybird21.dll
fbclient.dll
fbembed.dll
Also using the JVM arguments as -Djava.library.path="D:\Shared\Firebird\Jaybird-2.1.5JDK_1.5"
Tell me what is wrong in my approach?
Thanks RRUZ for giving repsonse.
Actually there was no space after "C:/XLNKREPOS" in my connection string, It was a copy past mistake. Again & again I got the following SQL Exception:
org.firebirdsql.jdbc.FBSQLException: GDS Exception. 335544375. unavailable database
And that database is no where used in other program.
Hope my this post makes you understand my problem.
Thanks
The OP is mixing two jdbc url formats supported by Jaybird.
Either use
jdbc:firebirdsql://[host]{:[port]}/[path]
or
jdbc:firebirdsql:[host]{/[port]}:[path]
{...} used to indicate optional part
I think the problem must be the connection string, there is a blank space after "C:/XLNKREPOS"
Try this
connection = DriverManager.getConnection("jdbc:firebirdsql://localhost/3050:C:/XLNKREPOS/FIRBIRDXA.FDB", "SYSDBA", "masterkey");
Bye.
When I got this error it was because I was using x64 Firebird version instead of the standard x86 version. I thought since I was running a 64bit OS that those embedded binaries corresponded to me... Hopefully that fixes your problem.
Troubleshooting Tips:
I was also able to further diagnose additional Firebird problems by adding the latest log4j jar from apache's site to my project/classpath. I then added a log4j.properties file to my default/root src directory with the following properties set inside:
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=[%c{1},%p] %m%n
log4j.rootCategory=DEBUG, stdout
log4j.category.org.firebirdsql=DEBUG, stdout
I also had to set System.setProperty("FBLog4j", "true"); in my code.
Another thing you can do is make sure you're running the latest and greatest from their repository at http://firebird.cvs.sourceforge.net/viewvc/firebird/client-java/?view=tar
Just unzip the tarball and compile it using their supplied build script (build.bat/build.sh). After compilation look in the 'output/lib' directory and you'll find the latest version of the jaybird jar (as of right now it's 2.2.0). You'll also need the latest jaybird dll (as of right now it's 22) which is located in the 'native' directory. I went through a lot of pain trying to figure this crap out. The documentation on Firebird's site is very outdated and poorly written.
I had the same problem, it was caused by those slashes before localhost.
That URL should be:
jdbc:firebirdsql:localhost/3050:C:/XLNKREPOS/FIRBIRDXA.FDB",

Resources