[SOLVED] Unable to compile QT4 application
This is the code that I have:
#include <QApplication>
#include <QWidget>
int main(int argc, char * argv[])
QApplication app(argc, argv);
QWidget window;
window.resize(250, 150);
window.setWindowTitle("Simple example");
window.show();
return app.exec();
This is the error that I get:
g++ -c -pipe -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/qt/mkspecs/linux-g++ -I. -I. -I/usr/include/qt -I/usr/include/qt/QtGui -I/usr/include/qt/QtCore -I. -o hello_world.o hello_world.cpp
hello_world.cpp:3:24: fatal error: QApplication: No such file or directory
#include <QApplication>
^
compilation terminated.
Makefile:298: recipe for target 'hello_world.o' failed
make: *** [hello_world.o] Error 1
These are the other threads that I researched.
https://bbs.archlinux.org/viewtopic.php?id=66927
https://bbs.archlinux.org/viewtopic.php?id=37815
When I did a search for "qt4" in "/", this is what I got:
./usr/include/qt4
./usr/share/qt4
./usr/share/licenses/qt4
./usr/lib/qt4
Now, why are these headers not detected?
Last edited by publicus (2014-01-03 18:21:27)
I got it! I used the tool qtchooser to run qmake so that when the Makefile is generated, it's generated with Qt4 in mind. The process was something like this:
qmake -project && qtchooser -run-tool=qmake -qt=4 && make
Similar Messages
-
[SOLVED] Unable to use GUI applications on any WM I tried except TWM
I'm using Arch Linux at my work despite it's very risky because something may go wrong pretty often (rolling distro, latest packages, DIY for newbs like me etc.). Unfortunately, this is one of those times...
I was using Xmonad. It all started w/ Chromium crashing a lot. I had a discussion about it here, but nobody found a solution. Chromium just got frozen and I could only kill it manually. Then I switched to Google Chrome and it get a little better. Today it was so bad that I couldn't do my daily work, so I switched to Opera; then Firefox... the same! After that I discovered that it happens w/ any GUI application. Good thing I'm using terminals for almost anything else I do. Anyway, I need GUI browser! So I thought that it may be something related to Xmonad itself. That's why I installed Xfce4 and... ...the same - GUI crashes. It's even worse actually because Xfce4 has a lot more GUI elements than Xmonad.
Now I'm writing from TWM and it has crashed only twice in two hours. What should I do? I really have no idea what could broke the things here. I really need help, guys!
Ohh, back home I have PC w/ almost the same conf -- everything works. Driver problems?
P.S. Title says "wrong focus" because sometimes application just freezes, sometimes it loses focus and I'm unable to use it... weird stuff.
P.S.S. Changed title.
Last edited by daGrevis (2012-10-11 06:45:33)So, as I understand it.... Haskell somehow conflicted w/ X11 when I did system upgrade.
Quick solution was to:
1. Remove Xmonad (xmonad, xmonad-contrib),
2. Try to remove Haskell (ghc),
3. Remove all needed packages that disallows to remove Haskell,
4. Remove Haskell,
5. Check that system still works (I tried to do things w/ TWM and system upgrade),
6. Put on any WM (I'm now using Awesome, but you can try to reinstall Xmonad as well (just follow all logs and stuff)).
Also, this fixed problem /w browser crashing.
P.S. Maybe this is just temporary solution, but for last 30 mins everything works /w problems. -
Jdev: Unable to compile my application in JDev11.1.1
Hi
I am using JDev11 IDE and suddenly my application is not at all get compiled, some times my JDev gets strucking.
But when i created another sample application its get compiled fine...
in my application i am using(Webcenter(portlets))
please help me
Thanks in advance
GiriBabuHi
I am using JDev11 IDE and suddenly my application is not at all get compiled, some times my JDev gets strucking.
But when i created another sample application its get compiled fine...
in my application i am using(Webcenter(portlets))
please help me
Thanks in advance
GiriBabu -
[SOLVED]Unable to run Graphical applications as root/sudo
Ok so ive been working on getting my very first Arch install up and running and I need to get the catalyst drivers running for my HD6850 because I plan on doing some wine gaming.
So I followed the instructions here on the wiki for ATI catalyst and I now have the drivers up and running, tried glxgears and everything is fine. The issue I am having Is that when I go under the settings menu in KDE I have the "AMD Catalyst control center" there, however I do not have the (Administrative) option that I get with all other distros. I need to run the CCC as root to beable to configure my multiple monitors.
In a terminal when i enter;
sudo amdcccle
It returns with the following;
No protocol specified
amdcccle: cannot connect to X server :0
So after a little digging I found this thread on the ubuntu forums that was quite helpful;
http://ubuntuforums.org/showthread.php?t=307984
So I ran
DISPLAY=:0.0 xhost +
then tried again to run
sudo amdcccle
and like magic it worked and I was able to configure my displays.
However this is not a permanent fix. Can anyone see a more permanent solution to this issue? This affects more than just the Catalyst Control Center; It stops me from running any graphical application as root or with sudo. Also can anyone explain what is causing the issue?
I have searched to the best of my ability and as you can see I have for the most part fixed the issue, however I cannot seem to find a permanent fix, nor do I really know what caused the issue to begin with.
Last edited by relik (2011-07-03 20:21:52)SOLVED
I took your advice about installking something like gksudo, and rememberd that on my kubuntu install I had something called kdesu. So Since im running KDE and not Gnome, I did some searching and found out how to install kdesudo using the AUR.
Just followed the install guide here for Yaourt ---> https://wiki.archlinux.org/index.php/Yaourt
Once I did that i just ran
yaourt kdesudo
selcted #1 and installed.
Now when I need to run a GUI based app as root I type in
kdesu <NAME OF APP>
So to solve my original issue I just run
kdesu amdcccle
instead of
sudo amdcccle
This seems to work for any app that needs to be ran a root with a GUI.
Also if your like me and you want to beable to just open CCC from your kickoff menu then do the following;
1. Right click kickoff > edit applications
2. Go to "Settings" > ATI Catalyst Control Center
3. In the Command Field add "kdesu" without quotes to the begining of the line so it looks like this
kdesu amdcccle
4. Save
Last edited by relik (2011-07-03 20:22:55) -
[solved] unable to compile mame with gcc 4.7.2
I tried to compile mame :
http://mamedev.org/downloader.php?file= … e0147s.zip
but it doesn't work, it fails with gcc 4.7.2 :
Compiling src/emu/cpu/tms32051/tms32051.c...
Generating TMS57002 source file...
obj/sdl/build/tmsmake src/emu/cpu/tms57002/tmsinstr.lst obj/sdl/emu/cpu/tms57002/tms57002.inc
Compiling src/emu/cpu/tms57002/tms57002.c...
{entrée standard}: Messages de l'assembleur:
{entrée standard}:3066: Avertissement: fin du fichier n'est pas à la fin de la ligne; nouvelle ligne insérée
{entrée standard}: Erreur: ouverture CFI à la fin du fichier; directive .cfi_endproc manquante
gcc: erreur interne du compilateur: Processus arrêté (program cc1plus)
Veuillez soumettre un rapport complet d'anomalies,
avec le source pré-traité si nécessaire.
Consultez <https://bugs.archlinux.org/> pour plus de détail.
make: *** [obj/sdl/emu/cpu/tms57002/tms57002.o] Erreur 4
I want to know how the official packager ( Sergej Pupykin ) succeeded to compile mame ? ( sdlmame package ) :
https://www.archlinux.org/packages/comm … 6/sdlmame/
Do I need an older version of gcc ?
Last edited by Potomac (2012-12-21 20:07:28)I found a solution by installing an older version of gcc ( 4.4.5 ) and I can compile now mame,
it's a known problem about gcc and mame, the source code is not compatible with gcc 4.7.2 ( and even with some older releases ) :
http://forums.gentoo.org/viewtopic-t-84 … 0473b82412
check the first comment here ( padremayi ), same error :
https://aur.archlinux.org/packages/sdlm … setlang=fr
the solution is to use gcc 4.4.5 version,
you need also to patch one file in gcc 4.4.5 :
--- gcc/config/i386/linux-unwind.h 2009-04-10 01:23:07.000000000 +0200
+++ gcc/config/i386/linux-unwind.h 2012-12-21 03:10:27.000000000 +0100
@@ -133,9 +133,9 @@
struct rt_sigframe {
int sig;
- struct siginfo *pinfo;
+ siginfo_t *pinfo;
void *puc;
- struct siginfo info;
+ siginfo_t info;
struct ucontext uc;
} *rt_ = context->cfa;
/* The void * cast is necessary to avoid an aliasing warning.
edit : the solution was to increase ram memory in virtualbox, with gcc 4.7.2 and 1.5 Gb ram I can compile mame without errors, but with 1 Gb ram the error occurs
maybe it's a bug in gcc 4.7.2 ( because with gcc 4.4.5 I don't need to increase ram )
Last edited by Potomac (2012-12-25 12:09:52) -
[SOLVED] Unable to compile ffmpeg-mt-git and mlt-git
I get the following error when compiling ffmpeg-mt-git
LD libavcodec/libavcodec.so.52
/usr/bin/ld: /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/../../../../lib/libx264.a(common.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/../../../../lib/libx264.a: could not read symbols: Bad value
collect2: ld a retourné 1 code d'état d'exécution
make: *** [libavcodec/libavcodec.so.52] Erreur 1
I then modified PKGBUILD and added "--enable-pic" to the .configure line but still get the same above message.
Just to make sure I recompiled x264-git (no error) and tried again but still the same error.
Has anyone experienced this problem?
Thanks
Alphazo
I've been able to compile the regular, non-mt, ffmpeg-git. Now I'm getting the same kind of error with mlt-git:
producer_avformat.c: In function ‘producer_get_image’:
producer_avformat.c:1086:59: attention : transtypage vers un pointeur depuis un entier de taille différente [-Wint-to-pointer-cast]
producer_avformat.c:1481:37: attention : transtypage vers un pointeur depuis un entier de taille différente [-Wint-to-pointer-cast]
cc -shared -o ../libmltavformat.so factory.o filter_avcolour_space.o filter_avresample.o filter_avdeinterlace.o filter_swscale.o producer_avformat.o consumer_avformat.o -Wl,--hash-style=gnu -Wl,--as-needed -Wl,--no-undefined -Wl,--as-needed -Wl,--no-undefined -Wl,--as-needed -L../../framework -lmlt -lpthread -Wl,--no-undefined -Wl,--as-needed -lavformat -lavcodec -lavutil -lswscale -lavdevice
/usr/bin/ld: /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/../../../../lib/libavformat.a(allformats.o): relocation R_X86_64_32 against `ff_a64_muxer' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/../../../../lib/libavformat.a: could not read symbols: Bad value
collect2: ld a retourné 1 code d'état d'exécution
Last edited by alphazo (2011-04-23 21:20:13)To compile ffmpeg-mt-git I had to remove "--shared" from PKGBUILD.
For mlt-git I had to go back to regular ffmpeg (Extra).
In the end to get kdenlive-svn working I had to use: x264 (extra), ffmpeg (extra), mlt-git (aur). -
[SOLVED] Unable to set default application to open files
Hello,
Whenever I try to set a default application for a file type (an avi for example) by right-clicking the file in Nautilus and choosing Open with Other Application, I can select the application (in this case VLC), check the Remember this Application checkbox and click Open, I always get the below message:
Could not set application as the default: Can't create user application configuration folder /root/.local/share/applications: Permission denied
I'm not logged in as root (confirmed with "whoami") so I'm not sure why it's trying to access the root home folder.
I'm thinking this is simply a misconfigured path statement (forgive the Windows terminology) but I'm not sure where to start looking. Any help would be most appreciated.
Thanks!
Beta
Last edited by betawind (2010-07-09 00:10:58)Thanks for the reply ngoonee!
The situation has already changed a bit. Still being in Windows mode, I decided to try a reboot. After rebooting I no longer get the error I was before (I wonder if it had something to do with logging in initially as root then su'ing to my user account) but the association with vlc just isn't sticking.
I noticed though that now when I right-click on a video file I get the option to "Open with Movie Player" as well as "Open with VLC media player" (which does do what it's supposed to), which wasn't there before. For grins I went and set the preferred multimedia app to VLC through System > Preferences > Preferred Applications, but that didn't help.
Is there a place these preferences are stored that I might take a peek at?
Last edited by betawind (2010-07-09 00:04:56) -
Dear all,
I've used java.util.List in my jsp, but when I import the package into the jsp, the following error occurs, please help:
Type: Exception Report
Message: Internal Server Error
Exception
org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
C:\Sun\AppServer7\domains\domain1\server1\generated\jsp\j2ee-modules\EmailTracker2\_jasper\_index_jsp.java:14: class jasper.index_jsp must be declared abstract. It does not define java.util.List getIncludes() from class org.apache.jasper.runtime.HttpJspBase.
public class indexjsp extends HttpJspBase {
^
1 error, 1 warning
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:312)
at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.loadJSP(JspServlet.java:641)
at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.access$000(JspServlet.java:501)
at com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:322)
at com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:287)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:278)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:158)
at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)Hi,
I am using J2EE SDK 1.4 Server and deployed a Stateless Session Bean and used a JSP page as Web Deployment component. When I deploy the application no error is given but when I access application using the given web context name the following error is displayed on the browser.
type Exception report
message
description The server encountered an internal error () that prevented
it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP
No Java compiler was found to compile the generated source for the JSP.
This can usually be solved by copying manually
$JAVA_HOME/lib/tools.jar from the JDK
to the common/lib directory of the Tomcat server, followed by a Tomcat restart.
If using an alternate Java compiler, please check its installation and
access path.
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:132)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:356)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:420)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:463)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:444)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:557)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:306)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253)
javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:324)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:289)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:311)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:205)
Can anyone tell me why this error could be generated? I've given the JAVA_HOME environment variable value as C:\Sun\AppServer\jdk and J2EE_HOME variable value as C:\Sun\AppServer. -
Unable to compile class for JSP in tomcat
Hi
I developed an application. it works Ok in embedded OC4J server. But I get the following error when I deployed to tomcat server :
org.apache.jasper.JasperException: Unable to compile class for JSP
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
oracle.adfinternal.view.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:157)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367)
oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336)
oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196)
oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:332)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
I followed the steps of deploying exactly as Oracle developer guide and I don't know what is the reason of this error
please how can I solve this problemHi
16-Jan-2007 04:09:17 org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet Faces Servlet threw exception
Compile failed; see the compiler error output for details.
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:933)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)
at org.apache.jasper.compiler.AntCompiler.generateClass(AntCompiler.java:219)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:297)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
at oracle.adfinternal.view.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:157)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367)
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336)
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196)
at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:332)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595) -
Unable to compile JSP in Java Server
Hi:
I have installed Java Application Server Platform Edition 8 locally and attempting to run an application with a JSP. However, when it attempts to compile the JSP, I get the following message:
org.apache.jasper.JasperException: Unable to compile class for JSP
No Java compiler was found to compile the generated source for the JSP.
This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar from the JDK
to the common/lib directory of the Tomcat server, followed by a Tomcat restart.
If using an alternate Java compiler, please check its installation and access path.
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:132)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:356)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:420)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:463)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:444)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:557)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:306)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253)
javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
sun.reflect.GeneratedMethodAccessor66.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:324)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:289)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:311)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:205)
I thought that Tomcat came with the implementation of the JAVA server. If so, why am I getting this message? Do I have to also install Tomcat separately? If yes, is there anything I need to know about port conflicts? Java Server is currently using 8080 for HTTP. Please advise as to how I can resolve this problem.Hi,
You may want to search this forum using the search term "Unable to compile class for JSP" you will get many hits and some suggestions on what may be the issue.
http://onesearch.sun.com/search/developers/index.jsp?col=devforums&qp_name=J2EE+Software+Development+Kit+%28J2EE+SDK%29&qp=forum%3A136&qt=Unable+to+compile+class+for+JSP -
Application Error, Unable to launch the application Blackboard Collaborate
I recently updated to Java 7 so I could use this service. I called up Blackboard support when it would not load and they told me to clear Cache, try downloading new deployment file, disable Windows firewall and nothing worked. They then told me to delete all versions of Java I had installed and reinstall Java 6. Here are the execeptions in the error message. Below I posted the
JeNeLa report, can someone help me?
Thanks
JaNeLA Report - version 11.05.17
Report for https://sas.elluminate.com/site/external/recording/playback/link/meeting.jnlp?suid=M.443BA574762A8747628C022B8E8DE2&sid=329
Content type text/html;charset=utf-8 does not equal expected type of application/x-java-jnlp-file
The entity "copy" was referenced, but not declared.
com.sun.deploy.net.FailedDownloadException: Unable to load resource: http://na-downloads.elluminate.com/web/download/12.0/video-client-windows-x86.jar
at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
at com.sun.deploy.net.DownloadEngine._downloadCacheEntry(Unknown Source)
at com.sun.deploy.cache.ResourceProviderImpl.getResourceCacheEntry(Unknown Source)
at com.sun.deploy.cache.ResourceProviderImpl.getResourceCacheEntry(Unknown Source)
at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
at com.sun.javaws.LaunchDownload$DownloadTask.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.net.SocketException: Address family not supported by protocol family: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
at com.sun.deploy.net.BasicHttpRequest.doGetRequest(Unknown Source)
at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
at com.sun.deploy.net.DownloadEngine._downloadCacheEntry(Unknown Source)
at com.sun.deploy.cache.ResourceProviderImpl.getResourceCacheEntry(Unknown Source)
at com.sun.deploy.cache.ResourceProviderImpl.getResourceCacheEntry(Unknown Source)
at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
at com.sun.javaws.LaunchDownload$DownloadTask.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)Hi, I've missed three weeks of classes because of the same error listed above. Everything was fine and Blackboard Collaborate Elluminate worked almost effortlessly for 5 or 6 weeks. Suddenly I tried to log in for a live lecture and this error occurred. Other students were having trouble and still are. Tech support at the school couldn't fix it, so they referred me to Blackboard Collaborate tech support (level 2). They haven't been able to fix it either. They recommended the same steps listed at the top of this email. I executed all of them but still receive the same error. Additionally, at one point, I was unable to install Java. Funny things seem to happen when I get on the line with tech support to solve this problem, although funny things don't happen during the other work I do on this computer. Technical language, I know. :-)
In an effort to pass the class, I am doing research on own to try to fix this and get into the lectures.
I am getting the same error listed above but am not a developer and don't understand how to get to JNLP to enter the fix listed above (if someone has a hint, I'd love to try that fix).
Any help would be very much appreciated.
System Info
OS: Windows 8
Browsers: IE (threw this one out), Chrome, Firefox, Safari (tested in all four)
Sample of Recorded lectures I'm trying to access (missed live ones):
1. https://sas.elluminate.com/mr.jnlp?suid=M.60B248A725D4A32CA5B76ADD737480&sid=99
2. https://sas.elluminate.com/mr.jnlp?suid=M.439DBCFAF3A92D0CF4463E08F292FF&sid=99
3. https://sas.elluminate.com/mr.jnlp?suid=M.CEEE93FF5E74424C9522175933AEAB&sid=99
4. https://sas.elluminate.com/mr.jnlp?suid=M.5CBD227A9E691833B971171B71F3F5&sid=99
5. https://sas.elluminate.com/mr.jnlp?suid=M.A3B01958884535C4DA594910D08F3A&sid=99
6. https://sas.elluminate.com/mr.jnlp?suid=M.F7B438C6DDB82538CAFC2F4EF86FC4&sid=99
7. https://sas.elluminate.com/mr.jnlp?suid=M.B341AF2AE689D0DEFDCC7261ADA1DE&sid=99
8. https://sas.elluminate.com/mr.jnlp?suid=M.5EDE7727548758A71965665DE7B882&sid=99
9. https://sas.elluminate.com/mr.jnlp?suid=M.DF55C212D327654AE0969C0387E763&sid=99
10. https://sas.elluminate.com/mr.jnlp?suid=M.08C2668EDDCE02548EFB530E0A2370&sid=99
Here are steps taken so far:
1. Clear Java Installed Apps and Applets (Control Panel - Java 32-bit - SEttings - Delete files - Installed apps and applets - ok - ok - ok)
2. Delete all files in Downloads folder (from all browsers)
3. Allow Java in Windows firewall (Start screen - hold down Windows key and W - Search for "firewall" - Navigate to Java program name - click all boxes and save)
4. Ran CCleaner to remove all temporary internet files, cookies, etc. that could be interfering
5. When nothing else worked, uninstalled and reinstalled Java twice (on the second time, it took over a dozen tries to reinstall Java - suddenly it just worked) and both times I deleted the Sun folder (C:/Users/Me/appdata/LocalLow/Sun) at the direction of tech support
6. Removed old registry entries both times using CCleaner
7. Rebooted (something done all along the way to see if it helped)
8. Tried to access live classes and recordings from multiple lectures through Blackboard Collaborate Elluminate and received the same error (details included below)
9. Tried to access Blackboard Collaborate Elluminate with Windows firewall on, then Windows firewall off, then ZoneAlarm Extreme firewall on, then ZoneAlarm Extreme firewall off (and entire associated software package); when on, ZoneAlarm gives "super" trusted status to all parts of Java listed and gives green checkmarks for all parts of Java listed and all levels of security
10. End results so far: receiving same error - nothing works
Here's the error followed by a copy of all text from the details section.
ERROR INFO BEGIN (my note on beginning of actual error language)
Application Error
Unable to launch the application.
Name: Blackboard Collaborate
Publisher: Blackboard Collaborate
Location: https://.../classroom-full.jar
ERROR INFO END (my note on end of actual error language)
ERROR More Information BEGIN
Error: Unable to load resource: https://na-downloads.elluminate.com/web/download/12.5/video-client-windows-x86.jar
ERROR More Information END
DETAILS BEGIN
Details - Launch File Tab
<jnlp spec="1.5+" codebase="https://na-downloads.elluminate.com/web/download/12.5">
<information>
<title>Blackboard Collaborate</title>
<vendor>Blackboard Collaborate</vendor>
<description>Blackboard Collaborate Virtual Classroom</description>
<icon href="gemini.png"/>
</information>
<security>
<all-permissions/>
</security>
<update check="always" policy="always"/>
<resources os="Mac\ OS\ X">
<j2se version="1.6" java-vm-args="-Xincgc" initial-heap-size="512m" max-heap-size="512m"/>
<j2se version="1.7+" initial-heap-size="512m" max-heap-size="512m"/>
</resources>
<resources os="Mac\ OS\ X" arch="ppc">
<nativelib href="audio-client-macosx-ppc.jar"/>
<nativelib href="video-client-macosx-ppc.jar"/>
<nativelib href="classroom-browser-macosx-ppc.jar"/>
<nativelib href="audio-client-ecelp-macosx-ppc.jar"/>
<nativelib href="classroom-util-platform-macosx-ppc.jar"/>
<nativelib href="classroom-gui-macosx-ppc.jar"/>
<nativelib href="appshare-client-macosx-ppc.jar"/>
</resources>
<resources os="Mac\ OS\ X" arch="i386">
<nativelib href="appshare-client-macosx-x86.jar"/>
<nativelib href="audio-client-macosx-x86.jar"/>
<nativelib href="audio-client-ecelp-macosx-x86.jar"/>
<nativelib href="video-client-macosx-x86.jar"/>
<nativelib href="classroom-browser-macosx-x86.jar"/>
<nativelib href="audio-client-webrtc-macosx-x86.jar"/>
<nativelib href="classroom-gui-macosx-x86.jar"/>
<nativelib href="classroom-util-platform-macosx-x86.jar"/>
<jar href="engine-webkit-3.3.jar"/>
</resources>
<resources os="Mac\ OS\ X" arch="x86_64">
<nativelib href="audio-client-macosx-x86_64.jar"/>
<nativelib href="classroom-browser-macosx-x86_64.jar"/>
<nativelib href="classroom-util-platform-macosx-x86_64.jar"/>
<nativelib href="audio-client-webrtc-macosx-x86_64.jar"/>
<nativelib href="classroom-gui-macosx-x86_64.jar"/>
<nativelib href="video-client-macosx-x86_64.jar"/>
<nativelib href="audio-client-ecelp-macosx-x86_64.jar"/>
<nativelib href="appshare-client-macosx-x86_64.jar"/>
<jar href="engine-webkit-3.3.jar"/>
</resources>
<resources os="Windows">
<j2se version="1.6+" java-vm-args="-Xincgc" initial-heap-size="512m" max-heap-size="512m"/>
</resources>
<resources os="Windows" arch="x86">
<nativelib href="video-client-windows-x86.jar"/>
<nativelib href="audio-client-windows-x86.jar"/>
<nativelib href="audio-client-ecelp-windows-x86.jar"/>
<nativelib href="classroom-util-platform-windows-x86.jar"/>
<nativelib href="appshare-client-windows-x86.jar"/>
<nativelib href="audio-client-webrtc-windows-x86.jar"/>
<nativelib href="classroom-gui-windows-x86.jar"/>
</resources>
<resources os="Windows" arch="x86_64 amd64">
<nativelib href="audio-client-webrtc-windows-x86_64.jar"/>
<nativelib href="classroom-util-platform-windows-x86_64.jar"/>
<nativelib href="audio-client-windows-x86_64.jar"/>
<nativelib href="video-client-windows-x86_64.jar"/>
<nativelib href="audio-client-ecelp-windows-x86_64.jar"/>
<nativelib href="classroom-gui-windows-x86_64.jar"/>
<nativelib href="appshare-client-windows-x86_64.jar"/>
</resources>
<resources os="SunOS" arch="sparc">
<j2se version="1.6+" java-vm-args="-Xincgc" initial-heap-size="512m" max-heap-size="512m"/>
<nativelib href="appshare-client-solaris-sparc.jar"/>
<nativelib href="audio-client-ecelp-solaris-sparc.jar"/>
<nativelib href="classroom-gui-solaris-sparc.jar"/>
</resources>
<resources os="Linux">
<j2se version="1.6+" java-vm-args="-Xincgc" initial-heap-size="512m" max-heap-size="512m"/>
</resources>
<resources os="Linux" arch="i386 x86">
<nativelib href="classroom-gui-linux-x86.jar"/>
<nativelib href="audio-client-ecelp-linux-x86.jar"/>
<nativelib href="appshare-client-linux-x86.jar"/>
<nativelib href="video-client-linux-x86.jar"/>
</resources>
<resources os="Linux" arch="x86_64 amd64">
<nativelib href="audio-client-ecelp-linux-x86_64.jar"/>
<nativelib href="appshare-client-linux-x86_64.jar"/>
<nativelib href="video-client-linux-x86_64.jar"/>
<nativelib href="classroom-gui-linux-x86_64.jar"/>
</resources>
<resources locale="ar">
<jar href="lang-ar.jar"/>
</resources>
<resources locale="bg">
<jar href="lang-bg.jar"/>
</resources>
<resources locale="cy">
<jar href="lang-cy.jar"/>
</resources>
<resources locale="da">
<jar href="lang-da.jar"/>
</resources>
<resources locale="de">
<jar href="lang-de.jar"/>
</resources>
<resources locale="en_GB">
<jar href="lang-en_GB.jar"/>
</resources>
<resources locale="es">
<jar href="lang-es.jar"/>
</resources>
<resources locale="fr">
<jar href="lang-fr.jar"/>
</resources>
<resources locale="it">
<jar href="lang-it.jar"/>
</resources>
<resources locale="iw">
<jar href="lang-iw.jar"/>
</resources>
<resources locale="ja">
<jar href="lang-ja.jar"/>
</resources>
<resources locale="ko">
<jar href="lang-ko.jar"/>
</resources>
<resources locale="nl">
<jar href="lang-nl.jar"/>
</resources>
<resources locale="pl">
<jar href="lang-pl.jar"/>
</resources>
<resources locale="pt_BR">
<jar href="lang-pt_BR.jar"/>
</resources>
<resources locale="ru">
<jar href="lang-ru.jar"/>
</resources>
<resources locale="sv">
<jar href="lang-sv.jar"/>
</resources>
<resources locale="th">
<jar href="lang-th.jar"/>
</resources>
<resources locale="tr">
<jar href="lang-tr.jar"/>
</resources>
<resources locale="vi">
<jar href="lang-vi.jar"/>
</resources>
<resources locale="zh_CN">
<jar href="lang-zh_CN.jar"/>
</resources>
<resources locale="zh_TW">
<jar href="lang-zh_TW.jar"/>
</resources>
<resources>
<j2se version="1.6+" initial-heap-size="512m" max-heap-size="512m"/>
<property name="sun.jnu.encoding" value="UTF-8"/>
<property name="apple.laf.useScreenMenuBar" value="true"/>
<property name="apple.awt.window.position.forceSafeProgrammaticPositioning" value="false"/>
<property name="jnlp.packEnabled" value="true"/>
<jar href="classroom-full.jar" main="true"/>
<jar href="guice-2.0-no_aop.jar"/>
<jar href="classroom-mrf.jar"/>
<jar href="classroom-version.jar"/>
<jar href="classroom-util.jar"/>
<jar href="classroom-capture.jar"/>
<jar href="extra.jar"/>
<jar href="classroom-gui.jar"/>
<jar href="jinx-core.jar"/>
<jar href="classroom-core.jar"/>
<jar href="classroom-mlf.jar"/>
<jar href="classroom-session.jar"/>
<jar href="classroom-feature.jar"/>
<jar href="classroom-imps.jar"/>
<jar href="classroom-location.jar"/>
<jar href="classroom-swing.jar"/>
<jar href="wsfix.jar"/>
<jar href="classroom-app.jar"/>
<jar href="view-core.jar"/>
<jar href="jinx-client.jar"/>
<jar href="view-client.jar"/>
<jar href="video-core.jar"/>
<jar href="command-engine.jar"/>
<jar href="video-client.jar"/>
<jar href="online-client.jar"/>
<jar href="recorder-core.jar"/>
<jar href="recorder-client.jar"/>
<jar href="chair-core.jar"/>
<jar href="chair-client.jar"/>
<jar href="chat-core.jar"/>
<jar href="chat-client.jar"/>
<jar href="polling-core.jar"/>
<jar href="polling-client.jar"/>
<jar href="starttime-core.jar"/>
<jar href="starttime-client.jar"/>
<jar href="jdom-1.0.jar"/>
<jar href="profile-core.jar"/>
<jar href="profile-client.jar"/>
<jar href="player-client.jar"/>
<jar href="hand-core.jar"/>
<jar href="hand-client.jar"/>
<jar href="notes-core.jar"/>
<jar href="notes-client.jar"/>
<jar href="participant-core.jar"/>
<jar href="participant-client.jar"/>
<jar href="calculator-core.jar"/>
<jar href="calculator-client.jar"/>
<jar href="transfer-core.jar"/>
<jar href="transfer-client.jar"/>
<jar href="timer-core.jar"/>
<jar href="timer-client.jar"/>
<jar href="whiteboard-core.jar"/>
<jar href="whiteboard-palette.jar"/>
<jar href="itext-0.40.jar"/>
<jar href="whiteboard-client.jar"/>
<jar href="breakout-core.jar"/>
<jar href="breakout-client.jar"/>
<jar href="activity-core.jar"/>
<jar href="activity-client.jar"/>
<jar href="hazelcast-2.3.1.jar"/>
<jar href="clustering.jar"/>
<jar href="lm-core.jar"/>
<jar href="lm-client.jar"/>
<jar href="telephony-core.jar"/>
<jar href="telephony-client.jar"/>
<jar href="audio-core.jar"/>
<jar href="audio-client.jar"/>
<jar href="appshare-core.jar"/>
<jar href="appshare-client.jar"/>
<jar href="caption-core.jar"/>
<jar href="caption-client.jar"/>
<jar href="jxbrowser-3.4.jar"/>
<jar href="jniwrap-3.8.4.jar"/>
<jar href="engine-webkit-3.4.jar"/>
<jar href="slf4j-api-1.5.8.jar"/>
<jar href="slf4j-log4j12-1.5.8.jar"/>
<jar href="log4j-1.2.15.jar"/>
<jar href="classroom-browser.jar"/>
<jar href="web-core.jar"/>
<jar href="web-client.jar"/>
<jar href="multimedia-core.jar"/>
<jar href="multimedia-client.jar"/>
<jar href="agenda-core.jar"/>
<jar href="agenda-client.jar"/>
<jar href="invite-core.jar"/>
<jar href="invite-client.jar"/>
<jar href="quiz-core.jar"/>
<jar href="quiz-client.jar"/>
</resources>
<application-desc main-class="com.elluminate.classroom.client.branding.full.Main">
<argument>-session</argument>
<argument>player</argument>
<argument>-play</argument>
<argument>https://sas.elluminate.com/site/external/download/recording?uid=C6C6F19E808D60024636948EB0BABADC</argument>
</application-desc>
</jnlp>
DETAILS END
DETAILS BEGIN
Exception Tab
com.sun.deploy.net.FailedDownloadException: Unable to load resource: https://na-downloads.elluminate.com/web/download/12.5/video-client-windows-x86.jar
at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
at com.sun.deploy.net.DownloadEngine.downloadResource(Unknown Source)
at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
at com.sun.javaws.LaunchDownload$DownloadTask.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
DETAILS END
DETAILS BEGIN
Wrapped Exception Tab
java.net.ConnectException: connect: Address is invalid on local machine, or port is not valid on remote machine
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.security.ssl.SSLSocketImpl.connect(Unknown Source)
at sun.security.ssl.BaseSSLSocketImpl.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.<init>(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.New(Unknown Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(Unknown Source)
at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
at com.sun.deploy.net.BasicHttpRequest.doGetRequest(Unknown Source)
at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
at com.sun.deploy.net.DownloadEngine.downloadResource(Unknown Source)
at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
at com.sun.javaws.LaunchDownload$DownloadTask.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
DETAILS END
Message was edited by: nondev
Added links to recorded lectures I'm trying to access and a couple of additional details that describe the situation -
Unable to compile class for JSP
Please can anyone help me to solve this.
Actually,this is the condition.
In my db,there is a table called UserPassword, which has 4
fields(empNo,UserName,password,level). Now I want to do these things:
When the user submits the data to create a new account via HTML form, it submits the data to the file called CreateAcc.jsp. In this file it perform some logic,here are they.
1)To check the empNo,if it is already exist in the DB,
if empNo =exist then display error.(record already exist)
if empNo =notexist then do task 2).
2)check the UserName,if it is already exist in the db,
if UserName=exist then display error.(because it's a primary key)
if UserName=notexist then do task 3).
3)Create a new user account and save it to the db.
To do these tasks,I never create a new objects for the tasks 1) and 2).
only for task 3)create an object.
Is it the right way?
Here is the file CreateAcc.jsp
<%@ page language="java" %>
<%@ page import="core.UserAccManager" %>
<%@ page import="data.UserPassword" %>
<jsp:useBean id="UserAccManager" class="core.UserAccManager" scope="session"/>
<jsp:setProperty name="UserAccManager" property="*"/>
<jsp:useBean id="UserPassword" class="data.UserPassword" scope="session"/>
<jsp:setProperty name="UserPassword" property="*"/>
<%
String nextPage ="MainForm.jsp";
if(UserPassword.verifyEmpno()){
if(UserPassword.verifyUsername()){
if(UserPassword.createAcc()) nextPage ="MsgAcc.jsp";
}else{
nextPage="UserNameExist.jsp";
else{
nextPage="UserAccError.jsp";
%>
<jsp:forward page="<%=nextPage%>"/>The directory structure:
UserPassword.java- F:/Project/core/data/UserPassword.java
UserAccManager.java - F:/Project/core/UserAccManager.java
Now both are compiling.I put the class files into the TOMCAT,as follows.
UserAccManager.class - webapps/mySystemName/WEB-INF/classes/core/
UserPassword.class - webapps/mySystemName/WEB-INF/classes/core/data/
Here is the full code of the file UserAccManager.java.
package core; //Is this right?
import data.UserPassword; //Is this right?
import java.io.*;
import java.sql.*;
import java.util.*;
import javax.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;
public final class UserAccManager{
private static final String DRIVER = "com.mysql.jdbc.Driver";
private static final String URL = "jdbc:mysql://localhost:3306/superfine";
private static Connection connection;
private static PreparedStatement pstmt1;
private static PreparedStatement pstmt2;
private static PreparedStatement pstmt3;
private UserAccManager(){
// Initializes the connection and statements
public static void initConnection() {
if (connection == null) {
try {
String sql;
// Open the database
Class.forName(DRIVER).newInstance();
connection = DriverManager.getConnection(URL);
// Prepare the statements
sql = "SELECT * FROM UserPassword where empNo= ?";
pstmt1 = connection.prepareStatement(sql);
sql = "SELECT UserName FROM UserPassword where UserName= ?";
pstmt2 = connection.prepareStatement(sql);
sql ="INSERT INTO UserPassword VALUES(?,?,?,?)";
pstmt3 = connection.prepareStatement(sql);
catch (Exception ex) {
System.err.println(ex.getMessage());
// Closes the connection and statements
// Method to be called by main class when finished with DB
public void closeConnection() {
//same as previous
public static boolean verifyEmpno(int empno) {
boolean emp_no_select_ok = false;
int emp = -1;
initConnection();
try {
pstmt1.setInt(1, empno);
ResultSet rs1 = pstmt1.executeQuery();
while(rs1.next()){
emp=rs1.getInt("empNo");
if(emp>0)
emp_no_select_ok = false;
} else{
emp_no_select_ok = true;
rs1.close();
pstmt1.close();
catch (Exception ex) {
System.err.println(ex.getMessage());
return emp_no_select_ok;
public static boolean verifyUsername(String username) {
boolean user_name_select_ok = false;
String user = "xxxx";
initConnection();
try {
pstmt2.setString(1, username);
ResultSet rs2 = pstmt2.executeQuery();
while(rs2.next()){
user=rs2.getString("UserName");
if(!user.equals("xxxx"))
user_name_select_ok = false;
} else{
user_name_select_ok = true;
rs2.close();
catch (Exception ex) {
System.err.println(ex.getMessage());
return user_name_select_ok;
public static boolean createAcc(int empno, String username, String password, int
level){
boolean create_acc_ok = false;
initConnection();
try{
//create a new object,from the UserPassword table.
UserPassword useraccount = new UserPassword();
useraccount.setEmpno(empno);
useraccount.setUsername(username);
useraccount.setPassword(password);
useraccount.setLevel(level);
//assign value for ???
pstmt3.setInt(1, useraccount.getEmpno());
pstmt3.setString(2, useraccount.getUsername());
pstmt3.setString(3, useraccount.getPassword());
pstmt3.setInt(4, useraccount.getLevel());
if(pstmt3.executeUpdate()==1) create_acc_ok=true;
pstmt3.close();
//con.close();
catch(SQLException e2){
System.err.println(e2.getMessage());
return create_acc_ok;
}here is the bean (part of it)
package data; //is it right?
import java.io.*;
import java.sql.*;
import java.util.*;
import javax.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class UserPassword
private int empno;
private String username;
private String password;
private int level;
// Constructor
public UserPassword()
this.empno = empno;
this.username = username;
this.password = password;
this.level = level;
// setters and getters are here.
// public boolean verifyEmpno() {
// return UserAccManager.verifyEmpno(empno);
// public boolean verifyUsername(String username) {
// return UserAccManager.verifyUsername(username);
// These 2 methods not compile with or without para's.So I leave that job for the
//controll class UserAccManager.java.
Now my problem is this: When I submit data, there is an error;org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: -1 in the jsp file: null
Generated servlet error:
[javac] Compiling 1 source file
C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\HRM\CreateAcc_jsp.java:8:
cannot access core.data.UserPassword
bad class file: C:\Program Files\Apache Group\Tomcat
4.1\webapps\HRM\WEB-INF\classes\core\data\UserPassword.class
class file contains wrong class: data.UserPassword
Please remove or make sure it appears in the correct subdirectory of the classpath.
import core.data.UserPassword;
^
1 error
Are there any mistakes? If so tell me where is it and how to change them.Please help.I try it that way, but it don't compile.
Error:core\data\UserPassword.java:package javax.servlet does not exist
import javax.servlet.*;
core\data\UserPassword.java:package javax.servlet.http does not exist
import javax.servlet.http.*;
So,I comment them only in the UserPassword.java file,and compile it again.
Then it compile well.I goto the directory to get the .class files.
But there is only UserPassword.class inside the data folder. There is not
UserAccManager.class in the core folder.
Then I try this way,I put my 2 java files in to a new folder,
F:\SystemName\com
When I try it that way, but it don't compile.
javac -classpath . -d . com\*.javaError:com\UserPassword.java:package javax.servlet does not exist
import javax.servlet.*;
com\UserPassword.java:package javax.servlet.http does not exist
import javax.servlet.http.*;
So,I comment them only in the UserPassword.java file,and compile it again.
Now both are compiling well.There was 2 class files.
I put them in to the WEB-INF/classes/com directory.
Start the server.But it gave errors:
C:\Program Files\Apache Group\Tomcat
4.1\work\Standalone\localhost\HRM\CreateAcc_jsp.java:68: cannot resolve symbol
symbol : variable empno
location: class org.apache.jsp.CreateAcc_jsp
if(UserPassword.verifyEmpno(empno)){
^
C:\Program Files\Apache Group\Tomcat
4.1\work\Standalone\localhost\HRM\CreateAcc_jsp.java:69: cannot resolve symbol
symbol : variable username
location: class org.apache.jsp.CreateAcc_jsp
if(UserAccManager.verifyUsername(username)){
^
C:\Program Files\Apache Group\Tomcat
4.1\work\Standalone\localhost\HRM\CreateAcc_jsp.java:69: non-static method
verifyUsername(java.lang.String) cannot be referenced from a static context
if(UserAccManager.verifyUsername(username)){
^
C:\Program Files\Apache Group\Tomcat
4.1\work\Standalone\localhost\HRM\CreateAcc_jsp.java:70: cannot resolve symbol
symbol : variable empno
location: class org.apache.jsp.CreateAcc_jsp
if(UserAccManager.createAcc(empno, username,password,level)) nextPage
="MsgAcc.jsp";
^
C:\Program Files\Apache Group\Tomcat
4.1\work\Standalone\localhost\HRM\CreateAcc_jsp.java:70: cannot resolve symbol
symbol : variable username
location: class org.apache.jsp.CreateAcc_jsp
if(UserAccManager.createAcc(empno, username,password,level)) nextPage
="MsgAcc.jsp";
^
C:\Program Files\Apache Group\Tomcat
4.1\work\Standalone\localhost\HRM\CreateAcc_jsp.java:70: cannot resolve symbol
symbol : variable password
location: class org.apache.jsp.CreateAcc_jsp
if(UserAccManager.createAcc(empno, username,password,level)) nextPage
="MsgAcc.jsp";
^
C:\Program Files\Apache Group\Tomcat
4.1\work\Standalone\localhost\HRM\CreateAcc_jsp.java:70: cannot resolve symbol
symbol : variable level
location: class org.apache.jsp.CreateAcc_jsp
if(UserAccManager.createAcc(empno, username,password,level)) nextPage
="MsgAcc.jsp";
^
C:\Program Files\Apache Group\Tomcat
4.1\work\Standalone\localhost\HRM\CreateAcc_jsp.java:70: non-static method
createAcc(int,java.lang.String,java.lang.String,int) cannot be referenced from a static
context
if(UserAccManager.createAcc(empno, username,password,level)) nextPage
="MsgAcc.jsp";
^
8 errorsTo solve the problem non-static method,I goto the UserAccManager.java file and do these
things.
package com;
import java.io.*;
import java.sql.*;
import java.util.*;
import javax.sql.*;
//import javax.servlet.*; //otherwise it tells an error.(package
//javax.servlet does not exist)
//import javax.servlet.http.*;
public class UserAccManager {
private static final String DRIVER = "com.mysql.jdbc.Driver";
private static final String URL = "jdbc:mysql://localhost:3306/superfine";
private static Connection connection;
private static PreparedStatement pstmt1;
private static PreparedStatement pstmt2;
private static PreparedStatement pstmt3;
private UserAccManager() {
// Initializes the connection and statements
private static void initConnection() {
//same
// Closes the connection and statements
// Method to be called by main class when finished with DB
public static void closeConnection() {
//same
public static boolean verifyEmpno(int empno) {
// same.
public static boolean verifyUsername(String username) {
//same.
public static boolean createAcc(int empno, String username, String password, int
level){
//same
package com;
import java.io.*;
import java.sql.*;
import java.util.*;
import javax.sql.*;
//import javax.servlet.*;
//import javax.servlet.http.*;
public class UserPassword {
// same
Again compile those files and put .class filses into the WEB-INF/classes/com directory.
When i submits the data via the form it generates an error:
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 9 in the jsp file: /CreateAcc.jsp
Generated servlet error:
[javac] Compiling 1 source file
C:\Program Files\Apache Group\Tomcat
4.1\work\Standalone\localhost\HRM\CreateAcc_jsp.java:68: cannot resolve symbol
symbol : variable empno
location: class org.apache.jsp.CreateAcc_jsp
if(UserAccManager.verifyEmpno(empno)){
^
An error occurred at line: 9 in the jsp file: /CreateAcc.jsp
Generated servlet error:
C:\Program Files\Apache Group\Tomcat
4.1\work\Standalone\localhost\HRM\CreateAcc_jsp.java:69: cannot resolve symbol
symbol : variable username
location: class org.apache.jsp.CreateAcc_jsp
if(UserAccManager.verifyUsername(username)){
^
An error occurred at line: 9 in the jsp file: /CreateAcc.jsp
Generated servlet error:
C:\Program Files\Apache Group\Tomcat
4.1\work\Standalone\localhost\HRM\CreateAcc_jsp.java:70: cannot resolve symbol
symbol : variable empno
location: class org.apache.jsp.CreateAcc_jsp
if(UserAccManager.createAcc(empno, username,password,level)) nextPage
="MsgAcc.jsp";
^
An error occurred at line: 9 in the jsp file: /CreateAcc.jsp
Generated servlet error:
C:\Program Files\Apache Group\Tomcat
4.1\work\Standalone\localhost\HRM\CreateAcc_jsp.java:70: cannot resolve symbol
symbol : variable username
location: class org.apache.jsp.CreateAcc_jsp
if(UserAccManager.createAcc(empno, username,password,level)) nextPage
="MsgAcc.jsp";
^
An error occurred at line: 9 in the jsp file: /CreateAcc.jsp
Generated servlet error:
C:\Program Files\Apache Group\Tomcat
4.1\work\Standalone\localhost\HRM\CreateAcc_jsp.java:70: cannot resolve symbol
symbol : variable password
location: class org.apache.jsp.CreateAcc_jsp
if(UserAccManager.createAcc(empno, username,password,level)) nextPage
="MsgAcc.jsp";
^
An error occurred at line: 9 in the jsp file: /CreateAcc.jsp
Generated servlet error:
C:\Program Files\Apache Group\Tomcat
4.1\work\Standalone\localhost\HRM\CreateAcc_jsp.java:70: cannot resolve symbol
symbol : variable level
location: class org.apache.jsp.CreateAcc_jsp
if(UserAccManager.createAcc(empno, username,password,level)) nextPage
="MsgAcc.jsp";
^
6 errorshere is the CreateAcc.jsp file
<%@ page language="java" %>
<%@ page import="com.UserAccManager" %>
<%@ page import="com.UserPassword" %>
<jsp:useBean id="userPassword" class="com.UserPassword" scope="request"/>
<jsp:setProperty name="userPassword" property="*" />
<%
String nextPage ="MainForm.jsp";
if(UserAccManager.verifyEmpno(empno)){
if(UserAccManager.verifyUsername(username)){
if(UserAccManager.createAcc(empno, username,password,level)) nextPage
="MsgAcc.jsp";
}else{
nextPage="UserNameExist.jsp";
else{
nextPage="UserAccError.jsp";
%>
<jsp:forward page="<%=nextPage%>"/>Please, anyone know how to send these parameters to the java file.
Thanks. -
Error in compiling Flex application: 64K byte limit
Hi experts ,
While deploying the VC model , i m getting this error :
Error in compiling Flex application: Error: A function in the code exceeds the 64K byte limit (actual size = '65557'). Since the problem occurs in the compiler-generated deferred instantiation code, please refactor/componentize portions of this document.
(/usr/sap/NW2/JC00/j2ee/cluster/server0/GUIMachine_Business_Packages/Contribution_Margin_36461/FLEX_COMPILATION_FOLEDR/AAD15VY.mxml:19)
Failed to compile AAD15VY.mxml
Could any one help me out in solving this issue ..its urgent ...
Your suggestions will be rewarded.
Thanks,
PratimaYou have to remove few components from your model to decrease the compiler generated LOC.
Check the following link for detailed solution:
https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=936390
Taken from SAP Notes:
<i>Solution
Doing the following may help:
1.Divide problematic iViews into a number of nested iViews.
2.Optimize each model to reduce the number of elements that it
contains:
a.Reduce the number of signals by merging signals of the same name.
b.When your application updates forms with read-only fields, use
expression boxes and a data store instead of signals.
c.Minimize the use of animations in your models, including form
sliding and chart animation effects
d.Use a data store to store variables, instead of invisible forms.
To display messages, use a simple text rather than a static dynamic
expression.
3.For on-the-spot, temporary workarounds, you can try dragging an empty
layer onto the Design board. This sometimes solves the problem ad
hoc, but is not recommended as a best practice.
</i> -
Unable to compil class for jsp
error is
HTTP Status 500 -
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 6 in the generated java file
Syntax error on token ".", Identifier expected after this token
An error occurred at line: 7 in the generated java file
Syntax error on token ".", Identifier expected after this token
An error occurred at line: 9 in the jsp file: /travel/issue.jsp
LibraryStudent cannot be resolved to a type
6: <BODY>
7: <H1>issue books</H1>
8: <CENTER>
9: <jsp:useBean id="student"
10: type="LibraryStudent"
11: scope="session" />
12: student name:
An error occurred at line: 9 in the jsp file: /travel/issue.jsp
LibraryStudent cannot be resolved to a type
6: <BODY>
7: <H1>issue books</H1>
8: <CENTER>
9: <jsp:useBean id="student"
10: type="LibraryStudent"
11: scope="session" />
12: student name:
An error occurred at line: 13 in the jsp file: /travel/issue.jsp
LibraryStudent cannot be resolved to a type
10: type="LibraryStudent"
11: scope="session" />
12: student name:
13: <jsp:getProperty name="student" property="studentName" />
14:
15: book name:
16: <jsp:getProperty name="student" property="bookName" />
An error occurred at line: 16 in the jsp file: /travel/issue.jsp
LibraryStudent cannot be resolved to a type
13: <jsp:getProperty name="student" property="studentName" />
14:
15: book name:
16: <jsp:getProperty name="student" property="bookName" />
17:
18: <jsp:getProperty name="student"
19: property="issueData" />
An error occurred at line: 18 in the jsp file: /travel/issue.jsp
LibraryStudent cannot be resolved to a type
15: book name:
16: <jsp:getProperty name="student" property="bookName" />
17:
18: <jsp:getProperty name="student"
19: property="issueData" />
20: </FORM>
21: </CENTER>LibraryStudent.java is
import java.util.*;
import java.text.*;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.sql.*;
import java.util.*;
public class LibraryStudent {
private String emailAddress, s,password, sname,bname;
private String date,value;
public String getStudentName() {
return(sname);
public void setStudentName(String sname) {
this.sname = sname;
public String getEmailAddress() {
return(emailAddress);
public void setEmailAddress(String emailAddress) {
this.emailAddress = emailAddress;
public String getPassword() {
return(password);
public void setPassword(String password) {
this.password = password;
public String getBookName() {
return(bname);
public void setBookName(String bname) {
this.bname = bname;
public String getDate() {
return(date);
public void setDate(String date) {
this.date = date;
public String getIssueData() //method that create connection withh database
throws ServletException,IOException{
try{
getDate(); //and add a entry in database
getBookName();
getStudentName();
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:db2");
Statement st=con.createStatement();
String sql =
"insert into table1 (bookname,studentname,date) values(bname,sname,date)";
st.executeUpdate(sql);
System.out.println(sql);
String s= "your book has been issued ";
return(s);
catch(Exception e)
e.printStackTrace();
return "failed";
public String getSumbitData()
throws ServletException,IOException{
try
getBookName();
getStudentName();
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:db2");
Statement st=con.createStatement();
String sql =
"delete from db2 where bookname='bname' and studentname=sname";
st.executeUpdate(sql);
System.out.println(sql);
String s="your book has been sumbitted ";
return(s) ;
catch(Exception e)
e.printStackTrace();
return "failed";
public static int findStudent //to validate customer
(String emailAddress,
String password) throws ServletException,IOException{
try
if (emailAddress == null) {
return(0);
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:user");
Statement st=con.createStatement();
String sql="select * from user where name='"+emailAddress+"' and password='"+password+"'";
System.out.println(sql);
ResultSet rs=st.executeQuery(sql);
if(rs.next())
return(1);
else
return(0);
}catch(Exception e)
e.printStackTrace();
return (0);}
to be continued.............and Library.java is import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class Library extends HttpServlet {
public void doPost(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException {
String emailAddress = request.getParameter("emailAddress");//use to email&pass
String password = request.getParameter("password");//from html page
LibraryStudent student = new LibraryStudent();//Make a student Object
int a=LibraryStudent.findStudent(emailAddress, password);//to validate student
if (a==0) {
gotoPage("/library/accounts.jsp", request, response);
else
student.setStudentName(request.getParameter("sname"));//use to sent other textbox
student.setBookName(request.getParameter("bname"));//data in librarystudent
student.setDate(request.getParameter("date"));//class after validation
HttpSession session = request.getSession(true);
session.putValue("student", student);
//for moving different page
if (request.getParameter("issue") != null) {
gotoPage("/travel/issue.jsp",
request, response);
} else if (request.getParameter("sumbit") != null) {
gotoPage("/travel/sumbit.jsp",
request, response);
} else if (request.getParameter("search") != null) {
gotoPage("/travel/search.jsp",
request, response);
} else if (request.getParameter("account") != null) {
gotoPage("/travel/EditAccounts.jsp",
request, response);
} else {
gotoPage("/travel/IllegalRequest.jsp",
request, response);
private void gotoPage(String address,
HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException {
RequestDispatcher dispatcher =
getServletContext().getRequestDispatcher(address);
dispatcher.forward(request, response);
} issue.jsp is
<%@page import="java.io.,java.util.,java.sql.*"%>
<HTML>
<HEAD>
<TITLE>issue books</TITLE>
</HEAD>
<BODY>
<H1>issue books</H1>
<CENTER>
<jsp:useBean id="student"
type="LibraryStudent"
scope="session" />
student name:
<jsp:getProperty name="student" property="studentName" />
book name:
<jsp:getProperty name="student" property="bookName" />
<jsp:getProperty name="student"
property="issueData" />
</FORM>
</CENTER>
</BODY>
</HTML> plz solve my problem .i m new to servlet and jsp and i have keen desire to learn this topic -
Unable to compile add.jsp
I am able to run the examples in the tomcat, but unable to run my own add.jsp which tries to connect to oracle9i. The following error is displayed. add.jsp file is copied at the end of this error message.
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: -1 in the jsp file: null
Generated servlet error:
[javac] Compiling 1 source file
C:\Tomcat 4.1\work\Standalone\localhost\examples\add_jsp.java:7: '.' expected
import DbConnect1;
^
1 error
at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:494)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666)
at java.lang.Thread.run(Thread.java:534)
The add.jsp contents are
<%@page contentType="text/html" import="DbConnect1,java.util.*,java.sql.*,java.lang.*"%>
<html>
<head><title>JSP Page</title></head>
<%
String no,name,c;
//int n;
no=request.getParameter("NUMBER");
//n=Integer.parseInt(no);
name=request.getParameter("NAME");
c=request.getParameter("check");
if(c==null) c="";
if(c.equals("1"))
out.println("Retry Again");
if(name==null )
{name="";}
if(!name.equals(""))
try{
DbConnect1 t=new DbConnect1();
t.insert(no,name);
response.sendRedirect("display.jsp");
}catch(Exception e){response.sendRedirect("add.jsp?check=1");
else {%>
<form action="add.jsp" method=post>
<input type=hidden name=check>
<BODY BGCOLOR=PURPLE>
<BR><PRE><FONT COLOR=WHITE SIZE=4 STYLE="WESTERN"><B><BR><BR><BR><BR> NUMBER <INPUT TYPE=TEXT SIZE=10 NAME="NUMBER">
<BR><BR> NAME <INPUT TYPE=TEXT SIZE=20 NAME="NAME"><BR>
<BR><BR><BR><BR> <INPUT TYPE="SUBMIT" VALUE="ADD" onClick="display()">
</FORM>
</form>
<%}%>
<SCRIPT LANGUAGE ="JavaScript">
function display()
window.location="/project/display.jsp"; }
</SCRIPT>
</html>
Any help would be greatly appreciated.
Thanks
Geethaif you want to know how to declare a package for your classes
Follow the steps to make your application work
Make this as the first statement in your DbConnect1 class
package DbConnect1;
Compile the class and place the DbConnect1.class file into
Tomcat/webapps/<yourapplication>\WEB-INF\classes\package\ directory
for eg : if your package name is test then place the class files under
Tomcat/webapps/<yourapplication>\WEB-INF\classes\test directory
This is where Tomcat looks for class files
If you have any doubts regarding directory dtructure to be followed in Tomcat please refer to some of the example packages under Root directory
In your JSP say
page import = packageName. DbConnect1
-Hope this helps
Regards
Manikantan
Maybe you are looking for
-
How do I sharpen video from DSLR in Premiere Elements 11?
I've been using PE11 for some time now. Mostly for home videos and a youtube channel. Up until this point I have used a Canon Vixia HF M-50 which was great. I had to do very little adjusting the picture in post for what I needed. But I just recieved
-
Rules created in worklist application don't execute
Hi all, i am using BPEL 10.1.3, i created a simple rule in the worklist application to reassign all the tasks of jcooper to jstein, the rule is active (a green light is displayed in the Active column) but the task is still assigned to jcooper, is the
-
How doI Import HD clips from HTC Desire HD for use in Final Cut Express?
Before anyone says it I know it's dead easy with and iPhone but how difficult is it to import video from the HTC Desire HD to use with Final Cut Express? I am looking at purchasing this phone and would be interested in people's thoughts.
-
What is the Aperture 3 library volume limit?
When I attempt to import photos from my Nikon D90 into Aperture 3 I receive the following message: There is not enough free space on your Aperture Library volume to import the selected items. It is estimated that you need at least 333MB of additiona
-
Pismo will not update past 10.4.3
I have a g3 power book pismo, 400 mhz running Tiger that I bought on ebay. It has been upgraded to 512 mb of RAM and a 90 G hard drive (80 G available). Has operated flawlessly, however I recently noticed that software update has not updated Tiger at