org.apache.jasper.JasperException
org.apache.jasper.JasperException: an exception occurred processing Login.jsp JSP page on line 12
9: < / head >
10: < body >
11: < div style = "" color: Red "> < html:errors / > < / div >"
12: < html:form action = "login.do" >
13: < table >
14: < tr >
15: < td > user name: < table > < td > < input type = "text" name = "user name" / > < table >
StackTrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:524)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:435)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
first cause
java.lang.NullPointerException: Module 'null' not found.
org.apache.struts.taglib.TagUtils.getModuleConfig(TagUtils.java:755)
org.apache.struts.taglib.TagUtils.getModuleConfig(TagUtils.java:735)
org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:818)
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:488)
org.apache.jsp.Login_jsp._jspx_meth_html_005fform_005f0(Login_jsp.java:125)
org.apache.jsp.Login_jsp._jspService(Login_jsp.java:81)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
Place the
It will solve
Tags: Java
Similar Questions
-
org.apache.jasper.JasperException: unable to compile class for JSP:
HII,
Any idea about this error?
org.apache.jasper.JasperException: unable to compile class for JSP:
An error occurred at line: 16 in the jsp file: /1d0258c2440a8d19e716292b231e3190/delete_item_action.jsp
DB.db cannot be resolved to a type
13: for (int i = 0; i < count; i ++)
14: {}
15: if (request.getParameter("checkbox_"+i).equals ("delete"))
16: Db.db.setUpdate ("material to update the value d_status = 1 where hardware_Id =" + request.getParameter ("Id_" + i) + ";" ');
17:
18:Java is case sensitive, you didn't know that? AMD DB Db are two different things in Java, and a class called db must be in a file called db.java; Conversely, a file called DB.java should contain a class called DB. You will need to sort this out, it is a complete mess right now.
-
Hello
I am trying to compile and sign my application and faced with the question:
c:\BBWP\bin>java-jar bbwp.jar 'C:\Project\Projet RIM\App\Test.zip' g - o "C:\Project\Projet RIM\AppSigned" mypassword
[INFO] Parsing of the command line options
[INFO] Bbwp.properties analysis
[INFO] Validation of archive application
[INFO] The analysis of config.xml
[INFO] The application of filling source
[ERROR] Feature is not found in any extension (org.apache.cordova)The configuration is based on:
> JDK 1.7
> Ant 1.8.4
> Blackberry SDK 2.3.1.5 Webworks
> PhoneGap 2.0.0
I have alread experienced solutions on several forums, such as:
https://groups.Google.com/Forum/?fromgroups=#! phonegap/hY6bkLJWEVA/topic
but without success.
The error still remains.
Is someone can help me?
THX
Sorry if I posted this message in the wrong queue. I found the solution to my problem:
I have not used the Test.zip file.
1 / the project is initially placed at:
C:\Project\Projet RIM\App\Test
2 / after the compilation with the 'build Ant blackberry' command, the project Test.zip is generated in
C:\Project\Projet RIM\App\Test\build
3 / If the command to use to sign within a seoncd period must be:
C:\BBWP>bbwp 'C:\Project\Projet RIM\App\Test\build\Test.zip' g - o mypassword
"C:\Project\Projet RIM\AppSigned".4 / the output files are then
C:\Project\Projet RIM\AppSigned
-
Hallo,
I migrated my 12.1.3 application ADF Essentials (until now deployed on GlassFish 3.1) to JDeveloper 12.2.1.
The migrated application is successfully deployed on the WLS internal JDev 12.2.1.
I have also installed and configured GlassFish 4.1, but when I try to deploy the application migrated on it I get this error:
Error occurred during deployment: Exception when loading the application: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.apache.catalina.LifecycleException: java.lang.IllegalStateException: could not find relief for javax.faces.context.FacesContextFactory of the factory. . Please see server.log for more details.
Below, I copied the lower part of the ball.
If you kindly could help solve this problem?
Thank you
Federico
[2015 12-14 T 19: 49:35.432 + 0100] [glassfish 4.1] [SERIOUS] [NCLS-CORE-00026] [javax.enterprise.system.core] [tid: _ThreadID = 44 _ThreadName = admin-listener (1)] [timeMillis: 1450118975432] [levelValue: 1000] []
An exception occurred while processing life cycle
java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.apache.catalina.LifecycleException: java.lang.IllegalStateException: could not find relief for javax.faces.context.FacesContextFactory of the factory.
at com.sun.enterprise.web.WebApplication.start(WebApplication.java:168)
at org.glassfish.internal.data.EngineRef.start(EngineRef.java:122)
at org.glassfish.internal.data.ModuleInfo.start (ModuleInfo.java:291)
at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:352)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:500)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219)
at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491)
to com.sun.enterprise.v3.admin.CommandRunnerImpl$ $2 1.run(CommandRunnerImpl.java:539)
to com.sun.enterprise.v3.admin.CommandRunnerImpl$ $2 1.run(CommandRunnerImpl.java:535)
at java.security.AccessController.doPrivileged (Native Method)
at javax.security.auth.Subject.doAs(Subject.java:360)
to com.sun.enterprise.v3.admin.CommandRunnerImpl$ 2.execute(CommandRunnerImpl.java:534)
to com.sun.enterprise.v3.admin.CommandRunnerImpl$ 3.run(CommandRunnerImpl.java:565)
to com.sun.enterprise.v3.admin.CommandRunnerImpl$ 3.run(CommandRunnerImpl.java:557)
at java.security.AccessController.doPrivileged (Native Method)
at javax.security.auth.Subject.doAs(Subject.java:360)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:556)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1464)
to com.sun.enterprise.v3.admin.CommandRunnerImpl.access$ 1300 (CommandRunnerImpl.java:109)
to com.sun.enterprise.v3.admin.CommandRunnerImpl$ ExecutionContext.execute (CommandRunnerImpl.java:1846)
to com.sun.enterprise.v3.admin.CommandRunnerImpl$ ExecutionContext.execute (CommandRunnerImpl.java:1722)
at org.glassfish.admin.rest.utils.ResourceUtil.runCommand(ResourceUtil.java:253)
at org.glassfish.admin.rest.utils.ResourceUtil.runCommand(ResourceUtil.java:231)
at org.glassfish.admin.rest.utils.ResourceUtil.runCommand(ResourceUtil.java:275)
at org.glassfish.admin.rest.resources.TemplateListOfResource.createResource(TemplateListOfResource.java:133)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
to org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$ 1.invoke(ResourceMethodInvocationHandlerFactory.java:81)
to org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$ 1.run(AbstractJavaResourceMethodDispatcher.java:144)
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161)
to org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ ResponseOutInvoker.doDispatch (JavaResourceMethodDispatcherProvider.java:160)
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99)
at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389)
at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347)
at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)
to org.glassfish.jersey.server.ServerRuntime$ 2.run(ServerRuntime.java:309)
to org.glassfish.jersey.internal.Errors$ 1.call(Errors.java:271)
to org.glassfish.jersey.internal.Errors$ 1.call(Errors.java:267)
at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
at org.glassfish.jersey.internal.Errors.process(Errors.java:267)
at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)
at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:292)
at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1139)
at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:375)
to org.glassfish.admin.rest.adapter.RestAdapter$ 2.service(RestAdapter.java:316)
at org.glassfish.admin.rest.adapter.RestAdapter.service(RestAdapter.java:179)
to com.sun.enterprise.v3.services.impl.ContainerMapper$ HttpHandlerCallable.call (ContainerMapper.java:459)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:167)
at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:206)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:180)
at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:235)
to org.glassfish.grizzly.filterchain.ExecutorResolver$ 9.execute(ExecutorResolver.java:119)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:283)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:200)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:132)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:111)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:536)
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117)
in org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$ 100 (WorkerThreadIOStrategy.java:56)
to org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$ WorkerThreadRunnable.run (WorkerThreadIOStrategy.java:137)
to org.glassfish.grizzly.threadpool.AbstractThreadPool$ Worker.doWork (AbstractThreadPool.java:591)
to org.glassfish.grizzly.threadpool.AbstractThreadPool$ Worker.run (AbstractThreadPool.java:571)
at java.lang.Thread.run(Thread.java:745)
]]
[2015 12-14 T 19: 49:35.432 + 0100] [glassfish 4.1] [SERIOUS] [] [javax.enterprise.system.core] [tid: _ThreadID = 44 _ThreadName = admin-listener (1)] [timeMillis: 1450118975432] [levelValue: 1000] []
An exception occurred while loading the application]]
[2015 12-14 T 19: 49:35.433 + 0100] [glassfish 4.1] [SERIOUS] [AS-WEB-GLUE-00192] [javax.enterprise.web] [tid: _ThreadID = 44 _ThreadName = admin-listener (1)] [timeMillis: 1450118975433] [levelValue: 1000] []
Undeployment failed for the context /MyWebApp]]
[2015 12-14 T 19: 49:35.459 + 0100] [glassfish 4.1] [SERIOUS] [] [javax.enterprise.system.core] [tid: _ThreadID = 44 _ThreadName = admin-listener (1)] [timeMillis: 1450118975459] [levelValue: 1000] []
Exception when loading the application: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.apache.catalina.LifecycleException: java.lang.IllegalStateException: could not find relief for javax.faces.context.FacesContextFactory of the factory. ]]
[2015 12-14 T 19: 49:35.616 + 0100] [glassfish 4.1] [INFO] [] [org.glassfish.admingui] [tid: _ThreadID = 45 _ThreadName = admin-listener (2)] [timeMillis: 1450118975616] [levelValue: 800] []
Exception occurred: error occurred during deployment: Exception when loading the application: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.apache.catalina.LifecycleException: java.lang.IllegalStateException: could not find relief for javax.faces.context.FacesContextFactory of the factory. . Please see server.log for more details. ]]
You have validated the content of the file web.xml instead of faces-config. XML
Try to return to faces-config. XML to 2.1.
Also, check if useBundledJsf = false will make a difference.
If nothing else helps, try to remove the extra libs (one by one)
Dario
-
Hi all
I used poi - 3.12 in my project because I need to read xlsx files
and installed used webcenter poi - 3.5
I get this error in my code:
Caused by: java.lang.NoSuchMethodError: org.apache.poi.ss.SpreadsheetVersion.getMaxCellStyles () I
Please guide me
Thanks in advance
Maybe you can try with
true in your weblogic.xml.
If not enough, you should research how to replace poi next to webcenter
-
Help gurus,
Please note that the following works on my laptop:
[oracle@fedora22 oracle] $ netstat - lpten | grep 9000
(Not all processes could be identified, do not belong to the process info
will not be shown, you would have to be root for all to see.)
TCP 0 0 127.0.0.1:9000 0.0.0.0: * LISTEN 1001 29114 1651/java
[oracle@fedora22 oracle] $ beeline u jdbc:hive2: / / localhost:10000 / default
Connection to jdbc:hive2: / / localhost:10000 / default
Connected to: hive Apache (version 1.2.1)
Pilot: Hive JDBC (version 1.2.1)
Isolation of transactions: TRANSACTION_REPEATABLE_READ
Version 1.2.1 by Apache the hive of the Beeline
0: jdbc:hive2: / / localhost:10000 / default > show databases;
+----------------+--+
| database_name |
+----------------+--+
| by default |
+----------------+--+
1 selected line (3,088 seconds)
0: jdbc:hive2: / / localhost:10000 / default >
but when I try and connect from within ODI:
java.lang.RuntimeException: java.lang.IllegalArgumentException: could not load driver JDBC [org.apache.hive.jdbc.HiveDriver] class
at oracle.odi.core.datasource.provider.AbstractDataSourceProvider.configure(AbstractDataSourceProvider.java:106)
to oracle.odi.core.DataSourceManager$ LoginTimeoutDataSourceProviderProxy.configure (DataSourceManager.java:305)
at oracle.odi.core.DataSourceManager.createAndConfigureDataSourceProvider(DataSourceManager.java:231)
to oracle.odi.core.DataSourceManager.access$ 000 (DataSourceManager.java:57)
to oracle.odi.core.DataSourceManager$ 1.create(DataSourceManager.java:76)
at org.springframework.util.CachingMapDecorator.get(CachingMapDecorator.java:152)
in java.util.Collections$ SynchronizedMap.get (Collections.java:2037)
at oracle.odi.core.DataSourceManager.getDataSource(DataSourceManager.java:153)
at oracle.odi.core.OdiInstance.lookupDataSource(OdiInstance.java:1066)
at oracle.odi.core.datasource.dwgobject.support.DwgConnectConnectionCreatorImpl.getDataSourceAdapter(DwgConnectConnectionCreatorImpl.java:124)
at oracle.odi.core.datasource.dwgobject.support.DwgConnectConnectionCreatorImpl.createDwgConnectConnection(DwgConnectConnectionCreatorImpl.java:108)
at com.sunopsis.graphical.dialog.SnpsDialogTestConnet.getLocalConnect(SnpsDialogTestConnet.java:169)
to com.sunopsis.graphical.dialog.SnpsDialogTestConnet.access$ 400 (SnpsDialogTestConnet.java:51)
to com.sunopsis.graphical.dialog.SnpsDialogTestConnet$ 5.doInBackground(SnpsDialogTestConnet.java:629)
to com.sunopsis.graphical.dialog.SnpsDialogTestConnet$ 5.doInBackground(SnpsDialogTestConnet.java:625)
at oracle.odi.ui.framework.AbsUIRunnableTask.run(AbsUIRunnableTask.java:258)
at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:947)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IllegalArgumentException: could not load driver JDBC [org.apache.hive.jdbc.HiveDriver] class
at oracle.odi.jdbc.datasource.DriverManagerDataSource.setDriverClassName(DriverManagerDataSource.java:178)
to oracle.odi.jdbc.datasource.DriverManagerDataSource. < init > (DriverManagerDataSource.java:110)
at oracle.odi.core.datasource.provider.DriverManagerDataSourceProvider.doCreateDataSource(DriverManagerDataSourceProvider.java:36)
at oracle.odi.core.datasource.provider.AbstractDataSourceProvider.configure(AbstractDataSourceProvider.java:97)
... more than 17
This is not the right approach, even if it works. Why?
1. If tomorrow you need to work with Hbase, do you also follow the same thing?
2 much booty pots related to each other and it is not advisable to all copy them into the folder of the agent.
3. you're going to mess after copying all the pots in the record of the agent.
Instead, add the lib path to the additional_path file. This file is in the home directory of the user if his linux machine.
For example:
cat /home/oracle/.odi/userlib/additional_path
See that I added a point here.
If it's windows, see
C:\Users\CURRENT_USER_NAME\AppData\Roaming\odi\oracledi\userlib\additional_path.txt
-
Hello I'm developing a web application Oracle ADF Essentials using jdeveloper11.1.2.4. In this, I have a java program which allows you to send an email. I sent this request the Tomcat6.x and Glassfish3.1.
My e-mail program works fine in tomcat6.x. E-mail program is sending e-mail with an attachment when running application that has deployed on tomcat. But when am under application that was deployed to Glassfish3.1 this email program gives the following exception.
org.apache.myfaces.trinidadinternal.config.upload.FileUploadConfiguratorImpl | _ThreadID = 94; _ThreadName = thread 2;: java.io.EOFException
at org.apache.myfaces.trinidadinternal.share.util.MultipartFormHandler._readLine(MultipartFormHandler.java:253)
at org.apache.myfaces.trinidadinternal.share.util.MultipartFormHandler._readLine(MultipartFormHandler.java:237)
at org.apache.myfaces.trinidadinternal.share.util.MultipartFormHandler._skipBoundary(MultipartFormHandler.java:223)
to org.apache.myfaces.trinidadinternal.share.util.MultipartFormHandler. < init > (MultipartFormHandler.java:102)
to org.apache.myfaces.trinidadinternal.share.util.MultipartFormHandler. < init > (MultipartFormHandler.java:75)
at org.apache.myfaces.trinidadinternal.config.upload.FileUploadConfiguratorImpl.beginRequest(FileUploadConfiguratorImpl.java:114)
at org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl._startConfiguratorServiceRequest(GlobalConfiguratorImpl.java:562)
at org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl.beginRequest(GlobalConfiguratorImpl.java:212)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:174)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
to com.sun.enterprise.v3.services.impl.ContainerMapper$ AdapterCallable.call (ContainerMapper.java:317)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:746)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1045)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
to com.sun.grizzly.util.AbstractThreadPool$ Worker.doWork (AbstractThreadPool.java:532)
to com.sun.grizzly.util.AbstractThreadPool$ Worker.run (AbstractThreadPool.java:513)
at java.lang.Thread.run(Thread.java:745)
|#]
And use the following code to load a file
/ * Method to download the file to the actual path on the server * /.
private String uploadFile (file UploadedFile) {}
System.out.println ("will transfer");
File UploadedFile = myfile;
String path = null;
If (myfile == null) {}
System.out.println ("in uploadFile if - 279: myfile == null");
} else {}
All the downloaded files will be stored in the following path
System.out.println ("in uploadFile if - 282: myfile.") = null");
path = "D: / / EasyRunFileStore / /" + myfile.getFilename ();
InputStream inputStream = null;
try {}
FileOutputStream out = new FileOutputStream (path);
inputStream = myfile.getInputStream ();
ubyte [] buffer = new byte [8192];
int bytesRead = 0;
While ((bytesRead = inputStream.read (buffer, 0, 8192))! = - 1) {}
out. Write (buffer, 0, bytesRead);
}
out. Flush();
out. Close();
} catch (Exception ex) {}
handle the exception
ex.printStackTrace ();
System.out.println ("emailPage 277" + ex.getMessage ());
} {Finally
try {}
inputStream.close ();
} catch (IOException e) {}
e.printStackTrace ();
System.out.println ("email 302" + e.getMessage ());
}
}
}
Please help me.
GlassFish - sending pictures in the application of the ADF - Stack Overflow
Citattion:
This is a bug on that version of Glassfish server you use. Check this list for reference bugs:TRINIDAD-10033 & GLASSFISH-18446. You have to move from 3.1.2 to 3.1.2.2 it is fixed to the furthest.
-
IM developing an application of ADF, I have successfully deploy the weblogic 10.3.6, app but when I opened the ***/faces/index.jsf internal server error 500 error.
I have reflected on the console, and then saw this error;
< 17 October 2012 01:18:45 CEST > < error > < HTTP > < BEA-101165 > < not load user-defined in the web.xml file filter: org.apache.myfaces.trinidad.webapp.TrinidadFilter.
java.lang.VerifyError: (class: oracle/adfinternal/view/faces/config/rich/AdfModelHelper, method: init signature: (Ljavax, faces, application, Application;) Ljavax/faces/context/ExternalContext ;) (V) incompatible argument of the function
at java.lang.Class.getDeclaredMethods0 (Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
at java.lang.Class.getDeclaredMethod(Class.java:1935)
at oracle.adfinternal.view.faces.config.rich.FacesDatabindingConfigurator._installBC4JSupport(FacesDatabindingConfigurator.java:169)
at oracle.adfinternal.view.faces.config.rich.FacesDatabindingConfigurator._setupAdfDatabindingForJsf(FacesDatabindingConfigurator.java:142)
Truncated. check the log file full stacktrace
>
What is the problem?
API .jar-Trinity and the Trinity - impl.jar are also in my classpath.
Any list of classpath in my area:
ADF-controller - api .jar
ADF - controller.jar
ADF-controller-rt-.jar
ADF-controller - schema.jar
ADF-controller - security.jar
ADF-dt-to - rt.jar
adfdt_common.jar
ADF-faces-api - 1013.jar
ADF-faces-databinding-rt - 1013.jar
ADF-faces-impl - 1013.jar
adflibfilter.jar
adflibrary.jar
ADF - loc.jar
adflogginghandler.jar
ADFM.jar
adfmweb.jar
ADF-pageflow - dtrt.jar
ADF-pageflow - fwk.jar
ADF-pageflow - impl.jar
ADF-pageflow - rc.jar
ADF-richclient-api - 11.jar
ADF-richclient-impl - 11.jar
ADF-share - base.jar
ADF-share - ca.jar
adfsharembean.jar
ADF-part - security.jar
ADF-share - support.jar
adftransactionsdt.jar
Batik - anim.jar
Batik awt - util.jar
Batik - bridge.jar
Batik - codec.jar
Batik - css.jar
Batik - dom.jar
Batik - extension.jar
Batik - ext.jar
Batik-gui - util.jar
Batik - gvt.jar
Batik - parser.jar
Batik - script.jar
Batik svg - dom.jar
Batik - svggen.jar
Batik - swing.jar
Batik - transcode .jar
Batik - util.jar
Batik - xml.jar
BC4J - mbeans.jar
cache.jar
com.bea.Core.Apache.Commons.collections_3.2.0.jar
com.bea.core.apache.xercesImpl_2.8.1.jar
Commons-cli - 1.0.jar
Commons-codec - 1.6.jar
common - el.jar
Commons-lang - 2.6.jar
Commons-logging - 1.1.1.jar
DB - ca.jar
DMS.jar
DVT - basemaps.jar
DVT - databindings.jar
DVT-databindings - mds.jar
DVT - facesbindings.jar
DVT - faces.jar
DVT - jclient.jar
DVT - trinidad.jar
DVT - utils.jar
ezmorph - 1.0.6.jar
Fluent-hc - 4.2.1.jar
fmw_audit.jar
GlassFish.el_1.0.0.0_2 - 1.jar
GlassFish.jaxb_1.0.0.0_2 - 1 - 12.jar
GlassFish.jstl_1.2.0.1.jar
Groovy-all - 1.6.3.jar
HttpClient - 4.2.1.jar
HttpClient-cache - 4.2.1.jar
httpcore - 4.2.1.jar
httpmime - 4.2.1.jar
IdentityStore.jar
inspect4.jar
JACC - spi.jar
javatools - nodeps.jar
javax.jsp_1.2.0.0_2 - 1.jar
javax.mail_1.1.0.0_1 - 4 - 1.jar
javax.management_1.2.1.jar
javax. Management.j2ee_1.0.jar
javax. Security.jacc_1.0.0.0_1 - 1.jar
javax.servlet_1.0.0.0_2 - 5.jar
javax. XML.bind_2.1.1.jar
jdev - cm.jar
jdev - rt.jar
jewt4.jar
jmxframework.jar
jmxspi.jar
JPS - api .jar
JPS-.jar
JPS - ee.jar
JPS - internal .jar
JPS - manifest.jar
JPS - no taken in charge - api .jar
JSF - api .jar
JSF - impl.jar
JSON-lib - 2.4 - jdk15.jar
JSP - el - api .jar
ldapjclnt11.jar
mdsrt.jar
MySQL-connector-java - 5.1.9.jar
ojdbc6.jar
OJDL.jar
ojmisc.jar
Oracle - el.jar
oraclepki.jar
Oracle.ucp_11.1.0.jar
orai18n.jar
orai18n - mapping.jar
oramds.jar
org.Apache.Commons.beanutils_1.6.jar
org.Apache.Commons.logging_1.0.4.jar
osdt_cert.jar
osdt_core.jar
osdt_ws_sx.jar
osdt_xmlsec.jar
Prefuse.jar
Readme.txt
ResourceBundle.jar
share.jar
Trinidad - api .jar
Trinidad - impl.jar
XML-apis - ext.jar
xmlef.jar
XML.jar
xmlparserv2.jar
Thank you.What version of JDev?
Which version of the Runtime of the ADF, and what patches were installed after installing the runtime? -
org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION
Hello, OTN,.
When I run my application ADF (integrated WLS), there is a warning in the console I have org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION = true in my web.xml file.
I tried to restart the application (and server) like this:
and like this:<context-param> <description>If this parameter is true, there will be an automatic check of the modification date of your JSPs, and saved state will be discarded when JSP's change. It will also automatically check if your skinning css files have changed without you having to restart the server. This makes development easier, but adds overhead. For this reason this parameter should be set to false when your application is deployed.</description> <param-name>org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION</param-name> <param-value>false</param-value> </context-param>
But I still get the same caveat.<!-- <context-param> <description>If this parameter is true, there will be an automatic check of the modification date of your JSPs, and saved state will be discarded when JSP's change. It will also automatically check if your skinning css files have changed without you having to restart the server. This makes development easier, but adds overhead. For this reason this parameter should be set to false when your application is deployed.</description> <param-name>org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION</param-name> <param-value>true</param-value> </context-param> -->
How can I turn off CHECK_FILE_MODIFICATION?
Thank you.
11.1.2.1 JDev@John replied to this in one of my post and consider that
It is by default integrated weblogic Server so trackand shows the change on the spot. Once deployed on stand-alone WS this error will go. You cannot control this behavior in JDev 11.1.2.1
-
org.apache.bsf.BSFException loading data into Essbase
What I try to do is to load data into Oracle's Essbase?
The operator-> all executions
Integration to prepare for loading (success)
Load data integration into essbase (failed) with the below error
org.apache.bsf.BSFException: exception of Jython:
Traceback (innermost last):
"< String >" file, line 23, in there?
com.hyperion.odi.essbase.ODIEssbaseException: error reached records the maximum error threshold: 1 at com.hyperion.odi.essbase.ODIEssbaseDataWriter.loadData (unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.python.core.PyReflectedFunction.__call__ (PyReflectedFunction.java) at org.python.core.PyMethod.__call__ (PyMethod.java) at org.python.core.PyObject.__call__ (PyObject.java) at org.python.core.PyInstance.invoke (PyInstance.java) at $0 org.python.pycode._pyx35.f (< string >: 23) to org.python.pycode._pyx35.call_function (< string >) to the org.python.core.PyTableCode.call (PyTableCode.java) at org.python.core.PyCode.call (PyCode.java) at org.python.core.Py.runCode (Py.java) at org.python.core.Py.exec (Py.java) to (PythonInterpreter.java) org.python.util.PythonInterpreter.exec to org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:144) to com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.execInBSFEngine(SnpScriptingInterpretor.java:345) to com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.exec(SnpScriptingInterpretor.java:169) to com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java:2375) to com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java:1616) to com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java:2755) to com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt(SnpSessTaskSqlI.java:69) to com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2515) to com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:537) to com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:449) to com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1954) to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ 2.doAction(StartSessRequestProcessor.java:322) to oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:224) to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:246) to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$ 0 (StartSessRequestProcessor.java:237) to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ StartSessTask.doExecute (StartSessRequestProcessor.java:794) at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:114) at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$ 2.run(DefaultAgentTaskExecutor.java:83) at java.lang.Thread.run (Thread.java:619) caused by: com.hyperion.odi.essbase.ODIEssbaseException: error reached records the maximum error threshold: 1 at com.hyperion.odi.essbase.ODIEssbaseDataWriter.checkMaxError (unknown Source) at com.hyperion.odi.essbase.ODIEssbaseDataWriter.sendRecordArrayToEsbase (unknown Source)... 35 more
com.hyperion.odi.essbase.ODIEssbaseException: com.hyperion.odi.essbase.ODIEssbaseException: error reached records the maximum error threshold: 1
at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:146)
at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.execInBSFEngine(SnpScriptingInterpretor.java:345)
at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.exec(SnpScriptingInterpretor.java:169)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java:2375)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java:1616)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java:2755)
at com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt(SnpSessTaskSqlI.java:69)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2515)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:537)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:449)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1954)
to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ 2.doAction(StartSessRequestProcessor.java:322)
at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:224)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:246)
to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$ 0 (StartSessRequestProcessor.java:237)
to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ StartSessTask.doExecute (StartSessRequestProcessor.java:794)
at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:114)
to oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$ 2.run(DefaultAgentTaskExecutor.java:83)
at java.lang.Thread.run(Thread.java:619)I don't really understand what's your problem, you should not need to do anything once it is executed, the interface if records have loaded, then they should be in essbase, if they are rejected, then the error should give you an idea of why they were.
See you soon
John
http://John-Goodwin.blogspot.com/ -
Hello
I came across a question where I am able to analyze an xml in a workspace to weblogic using xmlbeans. but when I deploy to weblogic workshop area and having the same xbean.jar where the eclipse, there is the folder with the name com.bea.workshop.thirdparty.xmlbeans.v22_1.0.30.200904250221 its projection java.lang.ClassCastException: org.apache.xmlbeans.impl.values.XmlComplexContentImpl.
Any help in this is appretiated. Will update the post if I get a solution.
Thank you and best regards,
Renault RI was facing the same problem and the solution for this problem you have to compile your code with weblogic inbuild function xmlbean with jar external xmlbean.
-
I get the Sub noted error (500). Apache Tomcat/6.0.20 logs
original title: Apache Tomcat/6.0.20 logs
I get the Sub notice error. PL help me solve the same
HTTP 500 status -
ype Exception report
Message
Description The server encountered an internal error () that prevents to satisfy this demand.
exception
org.apache.jasper.JasperException: java.lang.NumberFormatException: null org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:522) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:416) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968) org.apache.jsp.player.index_005fprod_005f1_jsp._jspService(index_005fprod_005f1_jsp.java:227) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) org.apache.jasper.servlet.JspServletWrapper.service) JspServletWrapper.java:374) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1062) org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:263) org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386) org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:318) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) javax.servlet.http.HttpServlet.service(HttpServlet.java:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) net.sf.packtag.filter.GzipFilter.doFilter(GzipFilter.java:43) org.acegisecurity.util.FilterChainProxy$ VirtualFilterChain.doFilter (FilterChainProxy.java:265) org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107) org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72) org.acegisecurity.util.FilterChainProxy$ VirtualFilterChain.doFilter (FilterChainProxy.java:275) org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:124) org.acegisecurity.util.FilterChainProxy$ VirtualFilterChain.doFilter (FilterChainProxy.java:275) org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125) org.acegisecurity.util.FilterChainProxy$ VirtualFilterChain.doFilter (FilterChainProxy.java:275) org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:135) org.acegisecurity.util.FilterChainProxy$ VirtualFilterChain.doFilter (FilterChainProxy.java:275) org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81) org.acegisecurity.util.FilterChainProxy$ VirtualFilterChain.doFilter (FilterChainProxy.java:275) org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271) org.acegisecurity.util.FilterChainProxy$ VirtualFilterChain.doFilter (FilterChainProxy.java:275) org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249) org.acegisecurity.util.FilterChainProxy$ VirtualFilterChain.doFilter (FilterChainProxy.java:275) org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149) org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
first cause
java.lang.NumberFormatException: null java.lang.Long.parseLong(Long.java:375) java.lang.Long.parseLong(Long.java:468) org.apache.jsp.player.topzone_jsp._jspService(topzone_jsp.java:84) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267) org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968) org.apache.jsp.player.index_005fprod_005f1_jsp._jspService(index_005fprod_005f1_jsp.java:227) org.apache.jasper.runtime.HttpJspBase.service javax.servlet.http.HttpServlet.service(HttpServlet.java:717)) (HttpJspBase.java:70)) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1062) org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:263) org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386) org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:318) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) javax.servlet.http.HttpServlet.service(HttpServlet.java:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) net.sf.packtag.filter.GzipFilter.doFilter(GzipFilter.java:43) org.acegisecurity.util.FilterChainProxy$ VirtualFilterChain.doFilter (FilterChainProxy.java:265) org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107) org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72) org.acegisecurity.util.FilterChainProxy$ VirtualFilterChain.doFilter (FilterChainProxy.java:275) org.acegisecurity.ui.ExceptionTranslationFilter.doFilter (ExceptionTranslationFilter.java): 124) org.acegisecurity.util.FilterChainProxy$ VirtualFilterChain.doFilter (FilterChainProxy.java:275) org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125) org.acegisecurity.util.FilterChainProxy$ VirtualFilterChain.doFilter (FilterChainProxy.java:275) org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:135) org.acegisecurity.util.FilterChainProxy$ VirtualFilterChain.doFilter (FilterChainProxy.java:275) org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81) org.acegisecurity.util.FilterChainProxy$ VirtualFilterChain.doFilter (FilterChainProxy.java:275) org.acegisecurity.ui.AbstractProcessingFilter.doFilter (AbstractProcessingFilter.java): 271) org.acegisecurity.util.FilterChainProxy$ VirtualFilterChain.doFilter (FilterChainProxy.java:275) org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249) org.acegisecurity.util.FilterChainProxy$ VirtualFilterChain.doFilter (FilterChainProxy.java:275) org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149) org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
Note Track of the full stack of the root cause is available in the Apache Tomcat/6.0.20 logs.
Apache Tomcat/6.0.20
Hello
This essentially means that there is an error with the code of the page and the Server couldn't accomplish, or respond to his request. You will have to try again later.
You have not defined a class properly. Check the class names and see if you have defined the servlet in web.xml or not.I recommend you to use Bing search engine on this error message to find forums that will guide you through the java applet name, etc.
-
Problem connecting to oracle database to jsp using the Apache Tomcat 8.0 Server pages
Well... I tried too many things... google so many times... but still not found solution to my problem.
I use windows 8 Enterprise Edition (if this has to do something with the problem)
Oracle 11.2.0
Apache Tomcat 8.0 Server
JDK 1.7
My oracle is installed in D: drive and tomcat in c:. I copied the file ojdbc6.jar of oracle to the lib directory of the tomcat server.
Then I put the CLASSPATH in the environment under "C:\Program Files\Apache Software Foundation\Tomcat 8.0\lib\ojdbc6.jar" variables in the system variables
My path variable is defined as "C:\Program Files\Java\jdk1.7.0_02\bin".
My program is in Notepad:
<%@ page import="java.sql.*" %>
<html>
<body>
<%
Connection conn;
Statement st;
ResultSet rs;
try{
new oracle.jdbc.driver.OracleDriver();
String dbURL="jdbc:odbc:oracle:thin:@localhost:1521:XE";
String userId="system";
String pwd="moon";
conn=DriverManager.getConnection(dbURL,userId,pwd);
st=conn.createStatement();
rs= st.executeQuery("SELECT * FROM login");
while(rs.next())
{
System.out.println(rs.getString(1)+""+rs.getString(2));
}
}
catch(Exception e){}
%>
</body>
</html>
I get too many mistakes, then
eroors org.apache.jasper.JasperException: an exception occurred processing page2.jsp JSP page on line 14
11: string userId = "system";
12: string pwd = "Moon";
13:
14: conn = DriverManager.getConnection (dbURL, userId, pwd);
15: st = conn.createStatement ();
16:
17: rs = st.executeQuery ("SELECT * FROM login");
StackTrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:568)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:455)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:403)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:347)
javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
first cause
javax.servlet.ServletException: java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:905)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:834)
org.apache.jsp.page2_jsp._jspService(page2_jsp.java:102)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:403)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:347)
javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)Nothing has solved this problem.
> Nothing solved this problem.
Can not solve a problem, until a problem is identified.
> ODBC driver manager... Data source name not found
This seems to be looking for a DSN (data set name) ODBC drivers. If she wants a DSN, DSN must be specified in the code, and the DSN must be configured in windows host ODBC applet. It is therefore at least two squirrels to get in the tree on the right before going forward. A... host:... [port:] SID | name of the service are a few necessary bits in a jdbc connection string, and is in no way related to DSN. A whole different Animal. If she wants a DSN that could be what it takes to go to URL bit.
And ODBC configurations can be confusing, especially if an x 64 operating system is the mix - if this is the case there are two different ODBC configuration cmdlets, one for x 64 for x 86, and if one gets as much as to talk to a real database he could launch a mistake of the architecture. Only way to solve this 'problem' is * delete * the ODBC DSN and then run the correct config utility (maybe the x 86) ODBC and set up the DSN. Once again.
-
Installed but FOP compilation error
Hello
I installed apache on windows apache tomcat 7.0.59 fop und.
I installed the fop.war file in the Manager of tomcat and after that the container works.
Then I in the apex with user that internal printing the section filled with host, port, and url.
When I run a new report with a generic provision today I get this error in apache:
Unable to compile class for JSP: < /u > < / p > < p > < b > description < /b > < u > the server encountered an internal error that prevents to satisfy this demand. < /u > < / p > < p > < b > exception < /b > < pre > org.apache.jasper.JasperException: unable to compile class for JSP:
An error occurred at line: [1] in the generated java file: [E:\Tomcat\work\Catalina\localhost\fop\org\apache\jsp\apex_005ffop_jsp.java]
The java.util.Map$ Entry of type cannot be resolved. She is referenced indirectly required .class files
StackTrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:103)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:366)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:485)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:379)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:354)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:341)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:657)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
< / pre > < / p > < p > < b > note < /b > < u > the full stack trace of the root cause is available in the Apache Tomcat/7.0.59 logs. < /u > < /p > < HR size = "1" noshade "noshade" = > < Tomcat/7.0.59 Apache h3 > < / h3 > < / body > < / html >
Any ideas to fix this?
Thanks for help.
Frank
If this thread is closed, then please close it and award points to those who earned them...
Thank you
Tony Miller
Software LuvMuffin
Ruckersville, WILL -
Error loading of Disqualification
Hello
I went through the install doc, but cannot launch the lauchpad Disqualification. I get an error HTTP 500 status with the following details:
org.apache.jasper.JasperException: an exception occurred processing index.jspx JSP page on line 8
' 5: xmlns:af = ' http://xmlns.Oracle.com/ADF/faces/rich "> "
6: jsp:directive.page contentType = "text/html; Charset = UTF - 8 "/ >
7: < f: view >
8: af:document title = "#{msg.indextitle}" id = "doc1" stateSaving = "customer" > "
9: < f: facet name = "metaContainer" >
10: escape af:outputText = value 'false' = "& lt; link rel = "icon" type = "image/x-icon" href="#{facesContext.externalContext.requestContextPath}/favicon.ico" > "id = 'o1' / >
11: < / f: facet >
The Java Options on the Java Tomcat properties box tab (it is Tomcat8) are:
-Dcatalina.home = C:\Program Software Foundation\Tomcat 8.0
-Dcatalina.base = C:\Program Software Foundation\Tomcat 8.0
-Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat 8.0\endorsed
-Djava.IO.TMPDIR=C:\Program Files\Apache Software Foundation\Tomcat 8.0\temp
-Djava.util.logging.manager = org.apache.juli.ClassLoaderLogManager
-Djava.util.logging.config.file=C:\Program Files\Apache Software Foundation\Tomcat 8.0\conf\logging.properties
-Xmx4096m
-XX: MaxPermSize = 512 m
-XX: ReservedCodeCacheSize = 128 m
-Doracle.jdbc.maxCachedBufferSize = 0
-XX: SoftRefLRUPolicyMSPerMB = 1
-Dedq.config.path=C:\edqconfig\oedqhome; C:\edqconfig\oedqlocalhome
-Doracle.mds.cache = simple
I'm puzzled. Any ideas?
Thank you
Brian
Yes, there is no release compatible with Tomcat 8 Disqualification.
Kind regards
Mike
Maybe you are looking for
-
with Mail on OS 10.6.8 v4.6 I lost the Strip above the email menu to send it. There is no Send icon that appear in the Strip in a good body of work.
-
Equium M40 portable: Touchpad problems
First of all sorry if in wrong place but couldn't find a group for this laptop. problem as below. I just got a new toshiba laptop and when I used it all first my touchpad wasthe side usual low scrolling functions and hot spots, etc.Now, he works as a
-
Whenever I change a process priority, he immediately returned to 'normal' status
I run a 3D rendering program that runs a lot more comfortably at a 'above normal' or 'high' priority setting. However, if I change the priority to one of the parameters has been mentioned by the Task Manager, the process will immediately come back t
-
Acrobat Pro quit job and gives error 213:8?
He worked many years. Now, suddenly I can't open an existing PDF document, OR even to open office program at all. I get a configuration error that says there is a problem with the license of this product - restart the computer and restart the product
-
12 c install on Windows Server 2012 fails on creating user
HelloTried to install 12 c EE on Windows Server 2012 using the interactive Setup program.On step 8 of 13 in the Setup is the screen specify user Oracle home.I selected 'Create a new Windows user' and entered oracle as user name.Things seem to be proc