Wednesday, October 24, 2012

XXX Type not resolved in JSP

When trying to import a package or a class file to a jsp page, some time the jsp compiler generates a starange error like ..... "XXX type not resolved ..." blah blah,. To solve this import the package till the class and or include the class.

To endorse  a library in tomcat, just add in endorsed directory of tomcat and in the configuration add the url. 

Friday, October 19, 2012

Problem in TinyOS and TOSSIM


I got the following error while I am using TOSSIM. I googled it, but didn't get a solution.

alemnew@alemnew-RV520:/opt/tinyos-2.0.2/apps/Blink$ make micaz sim
mkdir -p build/micaz
  placing object files in build/micaz
  writing XML schema to app.xml
  compiling BlinkAppC to object file sim.o
ncc -c -shared -fPIC -o build/micaz/sim.o -g -O0 -tossim -fnesc-nido-tosnodes=1000 -fnesc-simulate -fnesc-nido-motenumber=sim_node\(\)   -finline-limit=100000 -Wall -Wshadow -Wnesc-all -target=micaz -fnesc-cfile=build/micaz/app.c -board=micasb -DIDENT_APPNAME=\"BlinkAppC\" -DIDENT_USERNAME=\"alemnew\" -DIDENT_HOSTNAME=\"alemnew-RV520\" -DIDENT_USERHASH=0xfb2a96e0L -DIDENT_TIMESTAMP=0x50813f91L -DIDENT_UIDHASH=0x1f0ae3cfL -Wno-nesc-data-race BlinkAppC.nc   -fnesc-dump=components -fnesc-dump=variables -fnesc-dump=constants -fnesc-dump=typedefs -fnesc-dump=interfacedefs -fnesc-dump=tags -fnesc-dumpfile=app.xml
two source files specified (PLATFORM_MICAZ and BOARD_MICASB)
make: *** [sim-exe] Error 1
alemnew@alemnew-RV520:/opt/tinyos-2.0.2/apps/Blink$ 

I think this is a problem of compatibility between ncc and gcc-4.6 (that you
probably have installed).

Upgrading ncc to ncc-1.3.3 should solve the problem[1]

The second problem is: 
....
/opt/tinyos-2.0.2/tos/lib/tossim/tossim_wrap.cxx:247:20: fatal error: Python.h: No such file or directory
compilation terminated.
make: *** [sim-exe] Error 1

Check the the manual here[2] and then modify manaully the "tossim_wrap.cxx" by adding the absolute  location of the Python.h file.