Servlet can not find classes in ear file, only in system classpath.
Hi,
My servlet "DataServlet" is included in ear/war file.
When I try to reach it:
http://www.mysite.com/DataServlet
Servlet starts execute doPost() and throw Exception ClassNotFound.
All classes inculuded in ear files and all jsp working fine.
It works like standalone servlet and not as part of web application.
Maybe, there is problem in context root?
web.xml configuration:
<servlet-mapping>
<servlet-name>
DataServlet
</servlet-name>
<url-pattern>
/DataServlet
</url-pattern>
</servlet-mapping>
application.xml configuration:
<web>
<web-uri>data.war</web-uri>
<context-root>data</context-root>
</web>
Thanks,
Oleg.
Is the ClassNotFoundException on the DataServlet class, or a class the DataServlet class is trying to use?
Did you try <http://www.mysite.com/data/DataServlet>?
I would recommend you always define your classes in packages, as opposed to the default package, which you appear to be using. You'll run into problems down the line if you use the default package.
Similar Messages
-
Windows Vista home additon want let Iclud execute. I went into the DEP program but I can not find the Apple exe file to add as ok. What is the file name?
Hey,
if you know the name(s) of the root folder(s) you want to access (eg. by making a note on the Windows side) then you can make them appear by just doing Shift-Command-G in Finder ("Go to Folder…"), and entering the full path to the required folders. You can then navigate all the contents as normal.
HTH,
S. -
Finder can not find and display certain files. Why? Any fix,please?
I've discovered to my surprise that Finder can not find and display certain files. Computer is Mac book OS X (10.6.8)
No matter what Finder settings I use, there are files which it can not detect and display.
Here are just some examples of files sitting in the HD but Finder can not display them:
Located in preference panes :
fibre channel 1.7
Located in : /Library/StartupItems/BRESINKx86Monitoring
BRESINKx86Monitoring
FxLicenseManager
Located in /Library/StartupItems/FxLicenseManager
EAP8021X
Located in /System/Library/PrivateFrameworks/EAP8021X.framework
The questions:
What to make of this inability of Finder to ,well, find? (again - I tried all possible settings of Finder!)
Is there any way to fix it?
Thanks for any competent suggestion!Well, guys,
Interesting suggestions but the problem remains -Finder (aka Spotlight) is not capable to find certain files.Period.
I consider it as a fault of the system because in comparison, a search facility of a plain Windows based machine is capable to dig out and display any file, no matter now deeply hidden...
As far as the suggestion above by softwater goes , well, I've used the additional foptions extensively and nothing produced the result needed -that's why I created this discussion.
If someone still believes that using Finder with all its options is good enough, here is a test for you to perform on your own Mac:
-Open /Library/StartupItems/ and have a look inside - most likely you have a bunch of items. Write down the names of one or two of them. For this test I've chosen
FxLicenseManager located in /Library/StartupItems/. You can use any file you want grom this location...
- Then go to Finder and set it to display everything in Library of the HD. Remember - for this test you pretend you don't know any file name in this folders.
If the Finder works properly it shall display folders of Library >Startup items with all stuff inside, including the FxLicenseManager file I used for this test.
Finder displayed nothing. It is obvious that for Finder, certain locations are off limits. That's why I consider Finder as a faulty.
Of course if someone can set the Finder's options to do the above search and succeed, I'll be glad to try ...:-)
At this point, what I gather from this discussion is that :
1. Finder (Spotlight) feature is not to be trusted,despite number of fancy but rather useless options.
2. If you need to really find everything usually not displayed by Finder you better get real searching software. -
Have been using successfully Acrobat 8 Standard, version 8.3.1 for years. Suddenly can not digitally sign anything because software can not find "existing digital ID file?
Are you still using Acrobat 8? If not read further.
All Acrobat versions prior to 11.0.07 had a security flaw that they allows signing with certificates that had "Extended Key Usage" (EKU) restricted to certain certificate uses and those did not include document signing. Most frequently those were certificates with "Client Auth" or "Server Auth" in EKU. Acrobat/Reader 11.0.07 fixed this problem, which also means that while previous versions accepted such certificates for signing 11.0.07 and later do not. -
I shoot on a canon 5d mk11 and I record my audio on an external device yet when I open up my footage in final cut pro x I can't find my external audio files only the ones attached to the clip which are off the camera mic
What device?
What format?
How are you importing it?
Can you find the external audio with Finder?
Where is your destination file when you import it?
Andy -
Can not find windows sever 2003 file sever on a windows 8 pro laptop
I can not find my windows sever 2003 file sever on my windows 8 pro laptop. I have tried over wireless and over ethernet. can some one please help me!
Hi,
Assuming this Windows 8 Enterprise machine isn't locked down with Group Policy.
This type of problem usually requires that you change the lanman server parameters in order to get Windows 8 working with older servers. Do these adjustments on the Windows 8 machines that needs to connect to the server.
Control Panel - Administrative Tools - Local Security Policy
Local Policies - Security Options
Network security: LAN Manager authentication level
Set to Send LM & NTLM responses only
Set the Minimum session security for NTLM SSP
Disable Require 128-bit encryption
Reboot all machines after making the adjustment.
Kate Li
TechNet Community Support -
I am a new apple user...sorry it took so long. I did a recovery from my time machine but I can not find any of the filesI was saving on my desktop. Are they gone for good or is there some way I can get them back? I am desperate...should I save my regular used files somewhere else other than my desktop?
Can I get the old desktop files back????When you open TM you should see all of the desktop items right away. If they are not there, go back a day before you made your last retrieval. (Look for the dates on the time line on the right hand side of the display)
Ciao. -
Oracle9iAS Containers for J2EE (OC4J)
Version 9.0.2
Oracle9iAS Containers for J2EE (OC4J) (19,789,999 bytes)
when i unzip the oc4j_extend.zip, i can not find the orion.jar under j2ee/home diretory, how can start it?You're absolutely right. For some reason orion.jar isn't in that distribution. However there should be an oc4j.jar file in there, which behaves exactly as the orion.jar file would. So, any place in the documentation where it refers to orion.jar, just substitute oc4j.jar.
Ryan -
WAR Can't find class in JAR file in EAR/lib
Hi,
I have 1 EAR file with 1 WAR and 1 EJB-JAR file. Our main business-code is in a JAR-file which is placed in the EAR/lib/ folder along with the rest of the shared JAR-files.
When i deploy the EAR the EJB gets deployed fine but when the WAR gets deployed, we get a ClassNotFoundException. We configured a class as a ServletContextListener (Which is part of the jar) in the web.xml so at startup it should perform some initiation. But since it can;t be found....
I've tried changing the Mainfest.mf to include a CLASSPATH attribute with ./lib/x.jar but it stil the same problem. The only thing that solves it is to put it in the WEB-INF/lib folder.
What am i doing wrong?
Thanks,
MaartenHere it is
<?xml version="1.0"?>
<!DOCTYPE application PUBLIC '-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN' 'http://java.sun.com/dtd/application_1_3.dtd'>
<application>
<display-name>spg-online</display-name>
<module>
<web>
<web-uri>appname.war</web-uri>
<context-root>appname</context-root>
</web>
</module>
<!--module>
<ejb>appname-ejb.jar</ejb>
</module-->
</application>
My app follows the basic structure of an EAR-file:
EAR
META-INF
application.xml
lib
appname.jar
a.jar
spring.jar
appname.war
appname-ejb.jar
The meta-inf of the war-file looks like this:
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.6.5
Created-By: 1.4.2_08-b03 (Sun Microsystems Inc.)
Class-path: ./lib/appname.jar ./spring.jar
I let ANT generate the Class-path:
<jar jarfile="${dist.home}/${component.name}.war">
<fileset dir="${build.home.webroot}" />
<!-- dependency -->
<manifest>
<attribute name="Class-Path" value="${lib.project.manifest.classpath}"/>
</manifest>
</jar> -
Can not find class BPELFaultRecoveryContext in 11g
I have a Java program that uses the class BPELFaultRecoveryContext below
import com.collaxa.cube.engine.fp.BPELFaultRecoveryContext;
which resides in the orabpel.jar file. I jar up the java program and put it in the $ORACLE_MIDDLEWARE_HOME/user_projects/domains/soa_domain/lib folder on the SOA server. When I run the bpel process, it will call this java class and now, when the java class runs, it said that it can't find this class BPELFaultRecoveryContext. I searched the server and the orabpel.jar file is there. It's in another directory though.
The intereresting thing is in this java program, it uses the below classes and they are in the fabric-runtime.jar file. I do not include the fabric-runtime.jar file in the jar file with the java class but the java program is able to locate these 2 classes but not the one above.
import oracle.integration.platform.faultpolicy.IFaultRecoveryContext;
import oracle.integration.platform.faultpolicy.IFaultRecoveryJavaClass;
Do I need to include the orabpel.jar file in the jar file with the java class? Do you have any ideas? Thanksimport the java class to the class path
-
Hi, I have a MacPro, with mavericks. I have to change the hard disk because it failed, and now I want to restore my system.
I have a copy in another disk, made with time machine. I used the migration assistant, the system recognized the copy;
I'm interested in restore all the system, the users, the applications, and all the information, then I selected all and the migration apparently
works because there are not error messages or nothing wrong, the only issue is that the current user has the same name of the user in the backup,
then the assistant asked if I want both users, I choose to keep only the one in the backup, after a while (1-2 hours). I logout, and with surprise there are not any users created.
I have to login as single user, reset the password for root, to be able to login into the computer again, and I can´t find the migrated user, or the applications, or the files.
I am looking in the forums, and help pages, but I can´t find the solution. Thanks in advanceThanks Eric, the migration of applications, worked (by choosing only this item ), I created a new user, try using time machine to restore the user, but appeared the message file ".journal" already exists, and didn't work; so I decided to transfer the data manually. Now I hope the things will work out.
-
Can not find Desktop Intelligence Install files
Hello,
I am running XIR2 and can not seem to find the Desktop Intelligence Install files. I have checked everything that I downloaded. Can anyone point me in the right direction please.
Thanks
JeffSo, the server then has Deski , right ?
Have you checked add/Remove programs >Modify for BO setup ?
Otherwise, un-install from Client, and try to install again. -
Can not find iPhoto and music files since upload of yosemite
how do you find iPhoto and music files after upgrade of yosemite on my mini mac
Same way as you did before. It doesn't change. More detail in your question might get a better answer.
-
Xsql-servlet: can not find xsql-wtg.bat
hi,
i have unzipped the file xsqlservlet_v1.0.2.0.zip.
now i should start xsql-wtg.bat, but this file is not in the zip-file....
instruction in the application developers guide xml:
Running the xsql-wtg.bat script in the .\xsql directory.
i could doubleclick xsql.bat ..... ??
another problem is:
after starting a xsql-file i get an error message:
Oracle XDK Java 9.2.0.4.0 Production
XSQL-007: Cannot acquire a database connection to process page.
E/A-Exception: The Network Adapter could not establish the connection
who can help me??
thanks a lotThese instructions are out of date. The WTG (Web To Go) server was part of early XSQL releases, but the latest 9.2.0.X releases that come with the XML Developer's Kit for Java no longer include a web server in the installation. You'll need to install the servlet into your favorite servlet engine to run it.
Full online doc for XSQL is here:
http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/appdev.920/a96621/adx09xsq.htm -
Can not Open XMD from EDK / can not find the firmware executable file
Hi,
I have two problems:
1. I finished generating the bitstream in the EDK project. But when I try to open XMD in the EDK menu by doing "Debug --> Launch XMD" The XMD doesnt shows up. While the EDK output window says "xterm -e xmd -xmp system.xmp -opt etc/xmd_microblaze_0.opt&"
does anyone know how to launch XMD from EDK?
The system I am using is Ubuntu 9.10, the EDK version is 10.1.03 and I also use USB to JTAG for programming the board, serial port from the desktop to serial port on 110T FPGA.
2. I start the XMD in terminal manually
and type the command " xmd -xmp system.xmp -opt etc/xmd_microblaze_0.opt& " in the directory where the system.xmp file located.
it shows the following error information
Xilinx Microprocessor Debug (XMD) Engine
Xilinx EDK 10.1.03 Build EDK_K_SP3.6
Copyright (c) 1995-2007 Xilinx, Inc. All rights reserved.
Overriding IP level properties ...
Address Map for Processor microblaze_0
(0000000000-0x00003fff) dlmb_cntlr dlmb
(0000000000-0x00003fff) ilmb_cntlr ilmb
(0x40600000-0x4060ffff) RS232_Uart_1 mb_plb
(0x40c00000-0x40c0ffff) Hard_Ethernet_MAC mb_plb
(0x41200000-0x4120ffff) xps_intc_0 mb_plb
(0x41400000-0x4140ffff) debug_module mb_plb
(0x74600000-0x7460ffff) DDR2_SDRAM mb_plb
(0x80000000-0x8fffffff) DDR2_SDRAM mb_plb
(0x80000000-0x8fffffff) DDR2_SDRAM dxcl
(0x80000000-0x8fffffff) DDR2_SDRAM ixcl
XMD%
ERROR:MDT - Options file (etc/xmd_microblaze_0.opt&), Not Found or Not Readable
ERROR:MDT -
-- Error in XMD Initialization. Type "exit" to Quit XMD
does anyone know how to fix the problem?
Many thanks!Hi,
I had some trouble with XMD on Ubuntu too.
I wrote an install guide including adjustment of XMD.
You can check it out at my website: [EDK 10.1 Installation on Ubuntu 9.04 64Bit|http://wienker.org/blog/?p=78]
Cheers
Maybe you are looking for
-
Hi Experts, We are using OBIEE 11g We are facing the strange issue while accessing the presentation services login page. I had uploaded the RPD file using EM,it is working for 1 hour with out any issue. After some time the fallowing error is coming.
-
Error in Creating Project in ESS.
Hi All, I have a requirement where in , there is change in the personal data screen of ESS package. We configured the NWDI server. But when i am trying to extract the ess/in/pdata dc from the ESS SC. It is failing during the project Build and throwin
-
Mail triggered for a PO which is old dated
Dear Experts, I got a problem, Purchase order is way back ( created in 2008 April) and so far GR is not taken place. But all of a sudden user got the auto mail saying that for this PO GR is expected. How this message can trigger when PO is created lo
-
Hello Folks wifi users are authenticated via single sign on on ms AD using acs(802.1X) question is. is it mandatory to generates a certificate in the acs than export it to the contoller in order to let the authentication works
-
808 PureView - noise from auto-focus mechanism dur...
Hi, Just bought an 808 PureView, and have noticed a very audible noise from the auto-focus during video recording. Is this normal? I don't want to send it back if it is a "design feature", as I'm loving everything else about it! Thanks! Solved! Go to