How do I get a servlet configured with init parameters
When I try to add a set of <init-param> parameters to a servlet it seems
like the weblogic server is trying to load it as a bean, which since its not
a bean it can't do. I get the following error trace when I start the
server:
C:\bea\wlserver6.0sp1>set
PATH=.\bin;C:\orant\bin;C:\WINNT\system32;C:\WINNT;C:\
WINNT\System32\Wbem;C:\MSSQL7\BINN;C:\Program Files\Microsoft Visual
Studio\Comm
on\Tools\WinNT;C:\Program Files\Microsoft Visual
Studio\Common\MSDev98\Bin;C:\Pr
ogram Files\Microsoft Visual Studio\Common\Tools;C:\Program Files\Microsoft
Visu
al Studio\VC98\bin;"C:\Program
Files\Mts";C:\PROGRA~1\NETWOR~1\PGP;C:\MSSQL7\BIN
N;C:\jdk1.2.2\bin;
weblogic.xml.dom.ChildCountException
at weblogic.xml.dom.DOMUtils.getElementByTagName(DOMUtils.java:147)
at weblogic.xml.dom.DOMUtils.getValueByTagName(DOMUtils.java:128)
at
weblogic.servlet.internal.dd.ParameterDescriptor.<init>(ParameterDesc
riptor.java:45)
at
weblogic.servlet.internal.dd.ServletDescriptor.<init>(ServletDescript
or.java:79)
at
weblogic.servlet.internal.dd.WebAppDescriptor.<init>(WebAppDescriptor
.java:171)
at
weblogic.servlet.internal.dd.DescriptorLoader.initialize(DescriptorLo
ader.java:288)
at
weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader
.java:230)
at
weblogic.servlet.internal.HttpServer.loadWARContext(HttpServer.java:4
73)
at
weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:421)
at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
at weblogic.j2ee.Application.addComponent(Application.java:126)
at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
oymentTarget.java:283)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
oymentTarget.java:109)
at
weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServe
r.java:76)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
eanImpl.java:562)
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
.java:548)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java:285)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
55)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
23)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:437)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:178)
at $Proxy27.addWebDeployment(Unknown Source)
at
weblogic.management.configuration.WebServerMBean_CachingStub.addWebDe
ployment(WebServerMBean_CachingStub.java:985)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
oymentTarget.java:269)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Dep
loymentTarget.java:233)
at
weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeploy
ments(DeploymentTarget.java:194)
at
weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(
DeploymentTarget.java:158)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
eanImpl.java:562)
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
.java:548)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java:285)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
55)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
23)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:437)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:178)
at $Proxy26.updateDeployments(Unknown Source)
at
weblogic.management.configuration.ServerMBean_CachingStub.updateDeplo
yments(ServerMBean_CachingStub.java:2299)
at
weblogic.management.mbeans.custom.ApplicationManager.startConfigManag
er(ApplicationManager.java:240)
at
weblogic.management.mbeans.custom.ApplicationManager.start(Applicatio
nManager.java:122)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
eanImpl.java:562)
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
.java:548)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
ionMBeanImpl.java:285)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
55)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
23)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:437)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:178)
at $Proxy19.start(Unknown Source)
at
weblogic.management.configuration.ApplicationManagerMBean_CachingStub
.start(ApplicationManagerMBean_CachingStub.java:435)
at
weblogic.management.Admin.startApplicationManager(Admin.java:1030)
at weblogic.management.Admin.finish(Admin.java:491)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:429)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:170)
at weblogic.Server.main(Server.java:35)
>
<Apr 3, 2001 3:42:32 PM EDT> <Notice> <WebLogicServer> <WebLogic Server
started>
<Apr 3, 2001 3:42:32 PM EDT> <Notice> <WebLogicServer> <ListenThread
listening o
n port 7001>
<Apr 3, 2001 3:42:32 PM EDT> <Notice> <WebLogicServer> <SSLListenThread
listenin
g on port 7002>
<Apr 3, 2001 3:42:38 PM EDT> <Error> <HTTP> <HttpServer(1112581,null default
ctx
,ajrserver) found no context for "GET /CommonOpinionAdmin2?verifyinstall=
HTTP/1
.1". This should not happen unless the default context failed to deploy.>
The distribution file is not a WAR file, but a JAR file. I need to to just
do what it does if I don't specify any init-param's which is to pass them
when the servlet does get loaded, or load it as a servlet from a jar file
instead of a bean.
How do I configure weblogics to run my servlet with init parameters.
Thank You,
Anthony Rizzolo
I'll answer my own problem. It turns out that you can't put multiple
<param-name> and <param-value> pairs within a single <init-param>. I
assumed that you could since none of the examples had more than one
parameter I didn't realize that you had to specify multiple <init-param>
tags if you had multiple parameters.
Anthony Rizzolo
"Anthony Rizzolo" <[email protected]> wrote in message
news:[email protected]...
> When I try to add a set of <init-param> parameters to a servlet it seems
> like the weblogic server is trying to load it as a bean, which since its
not
> a bean it can't do. I get the following error trace when I start the
> server:
>
> C:\bea\wlserver6.0sp1>set
> PATH=.\bin;C:\orant\bin;C:\WINNT\system32;C:\WINNT;C:\
> WINNT\System32\Wbem;C:\MSSQL7\BINN;C:\Program Files\Microsoft Visual
> Studio\Comm
> on\Tools\WinNT;C:\Program Files\Microsoft Visual
> Studio\Common\MSDev98\Bin;C:\Pr
> ogram Files\Microsoft Visual Studio\Common\Tools;C:\Program
Files\Microsoft
> Visu
> al Studio\VC98\bin;"C:\Program
> Files\Mts";C:\PROGRA~1\NETWOR~1\PGP;C:\MSSQL7\BIN
> N;C:\jdk1.2.2\bin;
>
> weblogic.xml.dom.ChildCountException
> at
weblogic.xml.dom.DOMUtils.getElementByTagName(DOMUtils.java:147)
> at weblogic.xml.dom.DOMUtils.getValueByTagName(DOMUtils.java:128)
> at
> weblogic.servlet.internal.dd.ParameterDescriptor.<init>(ParameterDesc
> riptor.java:45)
> at
> weblogic.servlet.internal.dd.ServletDescriptor.<init>(ServletDescript
> or.java:79)
> at
> weblogic.servlet.internal.dd.WebAppDescriptor.<init>(WebAppDescriptor
> .java:171)
> at
> weblogic.servlet.internal.dd.DescriptorLoader.initialize(DescriptorLo
> ader.java:288)
> at
> weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader
> .java:230)
> at
> weblogic.servlet.internal.HttpServer.loadWARContext(HttpServer.java:4
> 73)
> at
> weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:421)
> at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
> at weblogic.j2ee.Application.addComponent(Application.java:126)
> at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115)
> at
> weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
> oymentTarget.java:283)
> at
> weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
> oymentTarget.java:109)
> at
> weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServe
> r.java:76)
> at java.lang.reflect.Method.invoke(Native Method)
> at
> weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
> eanImpl.java:562)
> at
> weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
> .java:548)
> at
> weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
> ionMBeanImpl.java:285)
> at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
> 55)
> at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
> 23)
> at
> weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:437)
> at
> weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:178)
> at $Proxy27.addWebDeployment(Unknown Source)
> at
> weblogic.management.configuration.WebServerMBean_CachingStub.addWebDe
> ployment(WebServerMBean_CachingStub.java:985)
> at
> weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
> oymentTarget.java:269)
> at
> weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Dep
> loymentTarget.java:233)
> at
> weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeploy
> ments(DeploymentTarget.java:194)
> at
> weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(
> DeploymentTarget.java:158)
> at java.lang.reflect.Method.invoke(Native Method)
> at
> weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
> eanImpl.java:562)
> at
> weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
> .java:548)
> at
> weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
> ionMBeanImpl.java:285)
> at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
> 55)
> at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
> 23)
> at
> weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:437)
> at
> weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:178)
> at $Proxy26.updateDeployments(Unknown Source)
> at
> weblogic.management.configuration.ServerMBean_CachingStub.updateDeplo
> yments(ServerMBean_CachingStub.java:2299)
> at
> weblogic.management.mbeans.custom.ApplicationManager.startConfigManag
> er(ApplicationManager.java:240)
> at
> weblogic.management.mbeans.custom.ApplicationManager.start(Applicatio
> nManager.java:122)
> at java.lang.reflect.Method.invoke(Native Method)
> at
> weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
> eanImpl.java:562)
> at
> weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
> .java:548)
> at
> weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
> ionMBeanImpl.java:285)
> at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
> 55)
> at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
> 23)
> at
> weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:437)
> at
> weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:178)
> at $Proxy19.start(Unknown Source)
> at
> weblogic.management.configuration.ApplicationManagerMBean_CachingStub
> .start(ApplicationManagerMBean_CachingStub.java:435)
> at
> weblogic.management.Admin.startApplicationManager(Admin.java:1030)
> at weblogic.management.Admin.finish(Admin.java:491)
> at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:429)
> at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:170)
> at weblogic.Server.main(Server.java:35)
> >
> <Apr 3, 2001 3:42:32 PM EDT> <Notice> <WebLogicServer> <WebLogic Server
> started>
>
> <Apr 3, 2001 3:42:32 PM EDT> <Notice> <WebLogicServer> <ListenThread
> listening o
> n port 7001>
> <Apr 3, 2001 3:42:32 PM EDT> <Notice> <WebLogicServer> <SSLListenThread
> listenin
> g on port 7002>
> <Apr 3, 2001 3:42:38 PM EDT> <Error> <HTTP> <HttpServer(1112581,null
default
> ctx
> ,ajrserver) found no context for "GET /CommonOpinionAdmin2?verifyinstall=
> HTTP/1
> .1". This should not happen unless the default context failed to deploy.>
>
> The distribution file is not a WAR file, but a JAR file. I need to to
just
> do what it does if I don't specify any init-param's which is to pass them
> when the servlet does get loaded, or load it as a servlet from a jar file
> instead of a bean.
>
> How do I configure weblogics to run my servlet with init parameters.
>
> Thank You,
> Anthony Rizzolo
>
>
Similar Messages
-
How do I get fios to work with my new desktop w/ Windows Media Center
Can someone please help me I have "fios".TV and internet 1HDSTB + 1HDDVR with multi room dvr Home media mgr.how do I get fios to work with my new desktop HP Pavillion m9715f**(specs below)**w/ Windows Media Center or did I just throw away my money?
also equipted is 47" Samsung 850series 1080p 120hertz HD LCD TV + 36" Samsung 560series 1080p 60hertz HD LCD TV and 19"Samsung 950b LCD Monitor
** computer specs**
Product number NZ017AA
Introduction date 30-Jun-2009
Country/region sold in: United States,Canada
Hardware Base processor
Phenom-9650 (A) 2.3 GHz (95W) 3600 MHz HyperTransport 3.0 Socket, AM2+
Chipset AMD 780G
Motherboard Manufacturer: MSI Motherboard Name: MS-7548 HP/Compaq motherboard name: Aspen-GL8E
Power supply 300W
Memory
Component Attributes Memory Installed 8 GB Maximum allowed 16 GB (4 x 4 GB) (64-bit OS)
4 GB* (4 x 1 GB) (32-bit OS)
*Actual available memory may be less Speed supported PC2-6400 MB/sec Type 240 pin, DDR2
Hard drive750 GB SATA 3G (3.0 Gb/sec)7200 rpm
Blu-ray player & SuperMulti DVD burner with LightScribe Technology drive
This Blu-Ray Disc DVD drive introduces a player that reads Blu-ray Disc format enabling you to watch high-definition Blu-ray Disc movies. NOTE: This drive does not include high-definition write capability.
Formats/Disc types Write speeds Read speeds Storage capacity Blu-ray Disc BD-ROM SL NA up to 6X up to 25 GB BD-ROM DL NA up to 4.8X up to 50 GB BD-R SL not supported up to 6X up to 25 GB BD-R DL not supported up to 4.8X up to 50 GB BD-RE SL not supported up to 2.3X up to 25 GB BD-RE DL not supported up to 2X up to 50 GB HD DVD not supported DVD DVD-ROM SL NA up to 16X up to 4.7 GB DVD-ROM DL NA up to 8X up to 8.5 GB DVD+R SL up to 16X up to 12X up to 4.7 GB DVD+R DL up to 4X up to 8X up to 8.5 GB DVD+RW SL up to 8X up to 10X up to 4.7 GB DVD+RW DL not supported DVD-R SL up to 16X up to 12X up to 4.7 GB DVD-R DL up to 4X up to 8X up to 8.5 GB DVD-RW SL up to 6X up to 10X up to 4.7 GB DVD-RW DL not supported DVD-RAM up to 5X up to 5X up to 4.7 GB CD CDROM NA up to 40X up to 700 MB CDR up to 40X up to 40X up to 700 MB CDRW up to 24X up to 40X up to 700 MB CD-DA NA up to 32X up to 700 MB Video CD NA up to 10X up to 700 MB
Wireless Wireless LAN 802.11 b/g
Video Graphics Radeon HD4350
512 MB DDR2 memory
I/O Ports: HDMI, VGA, single-link DVI
Television Hauppauge ATSC/NTSC TV tuner card with FM tuner
Sound/Audio High Definition 8-channel audio
ALC 888S chipset
Network (LAN) Integrated 10/100/1000 Base-T networking interface
Memory card reader
Contains an Infrared receiver for remote control
Supports the following cards:
Compact Flash I
Compact Flash II
IBM Microdrive
Secure Digital (SD)
mini-SD
MultiMediaCard (MMC)
Reduced size MultiMediaCard (RS-MMC)
MultiMediaCard Plus (MMC plus)
MultiMediaCard Mobile (MMC mobile)
Memory Stick
Memory Stick Pro
Memory Stick Duo
Memory Stick Pro Duo
SmartMedia
xD Picture Card (xD = extreme digital)
External I/O ports
I/O ports on the front panel
Port type Quantity 15-in-1 (4 slot) with IR Receiver One USB Two Headphone One Microphone One Audio L-R One S-video in One Composite video in One
I/O ports on the back panel
Port type Quantity PS/2 (keyboard, mouse) Two S/PDIF out (coaxial) One VGA One (disabled due to the installation of a graphics card) DVI-D One USB Four 1394a One LAN One Audio (side speaker out, rear speaker out, center/subwoofer-out , line-in, line-out, microphone) One Each
Expansion slots
Slot type Quantity PCI Express x16 One (None available) PCI Express x1 Three (Two available)
Drive bays
Bay type Quantity 5.25" Two (One available) 3.5" Two (One available) Personal Media Drive One (One available) Pocket Media Drive One (One available)
Keyboard and mouse HP multimedia keyboard HP PS/2 optical mouse
Remote Control USB infrared remote control,Remote control expansion card with IR ports,IR emitter cable to transmit codes to a set top boxBased on what you've posted, your computer does not have the right tuner. You need a QAM tuner to record locals from FiOS, or a CableCard tuner to record all local and cable channels from FiOS.
QAM tuners to record local channels only
This requires Windows Vista or Windows 7
Hauppauge WinTV-HVR-2250
SiliconDust HDHomeRun (info on a sale)
CableCard tuner to record local and cable channels
This requires Windows 7 + one CableCard from Verizon for $3.99/mo
ATI TV Wonder Digital PC CableCard Tuner (records one channel at a time) -- $200-$250 on ebay
Ceton MOCUR tuner (records four channels at a time) -- coming in early 2010 for $400-$600
Make sure your computer has Windows 7 Home Premium (or better) installed. That's necessary to support CableCard tuners.
If you are the original poster (OP) and your issue is solved, please remember to click the "Solution?" button so that others can more easily find it. -
My iPod Classic is seen by Windows but not by iTunes. I have reset it, gone to disk mode and it won't show up in iTunes. There appears to be music on it in a file called MUSICSAVE. How can I get this to work with iTunes again?
1. Update iTunes to the latest version. Plug in your iPod. If iTunes still can't recognize it, then in iTunes in the top left corner click help> run diagnostics. On the box that comes up, check the last two things. Click next and it should identify your iPod.
2. Click on your windows start menu. Type in "services". Click on it and when it pops up, on the bottom of it click on "standard". Now Scroll down to find "Apple Mobile Device" Right click it when you see it and click on "Start". When it has started, close iTunes and replug in your iPod and it should show up.
3. Check the USB cable
4 Verify that Apple Mobile Device Support is installed
5. Restart the Apple Mobile Device Service and verify that the Apple Mobile Device USB Driver is installed.
6. If you just want to add some photos, songs and movies from computer to your devices, you can use an iTunes alternative to do the job
7. Check for third-party software conflicts.
<Link Edited By Host> -
How can I get to DFU mode with a broken power button?
How can I get to DFU mode with a broken power button?
aarons84 wrote:
This is bad, but i tried jailbraking my iphone
You may as well stop there. We can't help you. -
How can I sync my various email accounts into an iCloud account. Example. I have an embarqmail.account. How can I get it to sync with iPhone, iPad, iMac so that I don't have to read or review eMails on all 3 devices. Thanks
You need OSX 10.7.2 or higher in order to access icloud. The mobile me account is now defunct (it closed down more than a year ago).
-
My old email that using register for apple ID cannot access/check any mail because that domain already deactivate.
So I changed my appleID and primary email and now I can not access iCloud with iOS7. ICloud shows my old appleID but I can't change it. How do I get iCloud to work with my updated ID?Hi ccharat,
Welcome to the Apple Support Communities! It sounds like you did a good job editing your Apple ID and primary email address, but you didn’t sign out of iCloud on your iOS device before hand. What you may need to do in this situation is go back to the Apple ID website and edit your Apple ID and primary email address back to the email address that is signed in with iCloud (there is no need to verify the account after editing it back to the old account, just changing it back is enough). Once your Apple ID is back to the original account, delete the iCloud account from the iOS device and be sure to keep all info on the device when prompted. After you delete the iCloud account, go back to the website and edit your Apple ID and primary email address back to the new address. Once it is back to the account you would like, you can sign into the iCloud on the iOS device with that new account and merge all of the data when prompted. Please use the following article as a reference.
iOS 7: If you're asked for the password to your previous Apple ID when signing out of iCloud
http://support.apple.com/kb/ts5223
Change your Apple ID temporarily
If signing out and back in to iMessage or FaceTime didn't help, try these steps:
Change your Apple ID to the Apple ID you used previously. You shouldn't need to verify the email address.
Go to Settings > iCloud. Complete these steps only if the Find My [Device] setting is turned on:
Scroll down and tap Delete Account, then tap Delete to confirm.
Tap “Keep on My [Device]” or “Delete from My [Device].” In either case, your data remains in iCloud and will be updated on your device when you sign in to iCloud again.
Enter the password for your previous Apple ID.
Change your Apple ID to the new email address that you want to use. You'll need to verify the email address.
Return to Settings > iCloud and sign in with your new Apple ID.
I hope this helps,
-Joe -
How can i get acrobat to work with windows vista
How can I get adobeexportpdf to work with windows vista?
But if, on the other hand you do mean Acrobat, please let us know what problem you are having.
-
I am having an issue with my adobe acrobat 9 pro. Every time I try to open a pdf from someone it opens it up with my free adobe reader rather than the Acrobat 9 pro so then I don't have all of the functions of 9 pro. How do I get it to open with 9 pro instead of the free reader?
It may depend on the plugin that is loaded into your browser. However, right click on a PDF and select the Open With option and go to the default button to select Acrobat as the default. That might do it.
-
How do I get a white background with black lines
How do I get a white background with black lines and characters on my screen. To run the program, copy it out and delete the ` and it should go. If it does not compile on your machine, I would like to know. There is a test on about line 34 for changing the colors.
`//Simple program to test Graphics2D.setBackground(white) obtained from BufferedImage.getGraphics()
`import java.awt.Frame; //Object>awt.Component>Container>Window>Frame
`import java.awt.Insets; //Object>awt.Insets
`import java.awt.image.BufferedImage; //Object>awt.Image>awt.image.BufferedImage
`import java.awt.Graphics; //Object>awt.Graphics
`import java.awt.Graphics2D; //Object>awt.Graphics>Graphics2D
`import java.awt.Color;
`import java.awt.BasicStroke;
`public class TstBgCol { //frame & BufferedImage in pixels & BasicStroke in points ????????????
` TstBgCol tstBgCol;
` public static void main(String[] args) {
` TstBgCol tstBgCol=new TstBgCol(); tstBgCol.tstBgCol=tstBgCol;
` tstBgCol.main2(); tstBgCol.byteBinary();
` }
` Graphics fgcontext;
` Frame fram; Insets insets; //borders of the Frame, Container.getInsets
` int bIWid=1272,bIHgt=876; //set for 1280x1024 screen on windows XP & matches paper ratio 10.6x7.3
` int unusedPixHgt=84;
` void main2() {
` fram=new Frame();
` fram.addWindowListener(new java.awt.event.WindowAdapter() { //anonymous inner class
` public void windowClosing(java.awt.event.WindowEvent e) { System.exit(0); }
` });
` fram.setVisible(true);
` insets=fram.getInsets(); //(Container)getInsets() works after displayable
` System.out.println("Insets l,t,r,b:"+insets.left+","+insets.top+","+insets.right+","+insets.bottom);
` fram.setSize(insets.left+bIWid+insets.right,insets.top+bIHgt+unusedPixHgt+insets.bottom);
` fgcontext=fram.getGraphics(); //creates Graphics context for this component
` }
` void byteBinary() {
` BufferedImage buIm=new BufferedImage(bIWid,bIHgt,BufferedImage.TYPE_BYTE_BINARY); //can be resized
` Graphics2D bIG2=buIm.createGraphics(); //returns Graphics2D context
` //change to if(true) to use either of the following two lines
` if(false) bIG2.setBackground(Color.white); //does not change the background color to white
` if(false) bIG2.setColor(Color.black); //does change the foreground color to black
` edgeLinesAndX(buIm,bIG2);
` fgcontext.drawImage(buIm,insets.left,insets.top,fram);
` }
` private void edgeLinesAndX(BufferedImage bI,Graphics2D bIG2) { //really on the edge
` BasicStroke strk=new BasicStroke(10f); bIG2.setStroke(strk);
` int x0,y0,xmx,ymx;
` x0=bI.getMinX(); y0=bI.getMinY(); xmx=bI.getWidth()-1; ymx=bI.getHeight()-1;
` bIG2.drawLine(x0+xmx,y0,x0,y0+ymx); //lo-left to up-right
` bIG2.drawLine(x0,y0,x0+xmx,y0+ymx); //up-left to lo-right
` bIG2.drawLine(x0,y0,x0+xmx,y0); //up-left to up-right
` bIG2.drawLine(x0,y0,x0,y0+ymx); //up-left to lo-left
` bIG2.drawLine(x0,y0+ymx,x0+xmx,y0+ymx); //lo-left to lo-right
` bIG2.drawLine(x0+xmx,y0,x0+xmx,y0+ymx); //up-right to lo-right
` bIG2.drawString("("+x0+","+y0+") wid="+(xmx+1)+" hgt="+(ymx+1),(xmx+1)/5,(ymx+1)/5);
` }
`} //the result on my screen is a black background, why?????How do I get a white background with black lines and characters on
my screen.Contrary to what you might think, the linebIG2.setBackground(Color.white);does not give the buffered image a white background. The API docs
http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Graphics2D.html#setBackground(java.awt.Color)
say: "Setting the background color in the Graphics2D context only
affects the subsequent clearRect calls... " So adding a line to your
if blocks we getif (false) {
bIG2.setBackground(Color.white);
bIG2.clearRect(0, 0, buIm.getWidth(), buIm.getHeight());
if (false) {
bIG2.setColor(Color.black);
}Changing the false to true results in a white background (and black
X and text). -
I upgraded to Mountain lion. I could not open any of my word documents so i downloaded Libre Office. It is downloaded but how do I get it to work with my old documents??
I don't know what file formats LibreOffice supports, but my guess is it can only handle the OpenXML format (new Office docs).
You could use this online converter: http://www.zamzar.com/convert/doc-to-docx/ -
How can I get the element value with namespace?
I tried to get a element value in xml has namespace but i can't.
I removed the namespace, i can get a element value.
How can i get a element value with namespace?
--1. Error ----------- xml ------------------------------
<?xml version="1.0" encoding="UTF-8"?>
*<TaxInvoice xmlns="urn:kr:or:kec:standard:Tax:ReusableAggregateBusinessInformation:1:0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:kr:or:kec:standard:Tax:ReusableAggregateBusinessInformation:1:0 http://www.kec.or.kr/standard/Tax/TaxInvoiceSchemaModule_1.0.xsd">*
<ExchangedDocument>
<IssueDateTime>20110810133213</IssueDateTime>
<ReferencedDocument>
<ID>318701-0002</ID>
</ReferencedDocument>
</ExchangedDocument>
<TaxInvoiceDocument>
<IssueID>201106294100</IssueID>
<TypeCode>0101</TypeCode>
<IssueDateTime>20110810</IssueDateTime>
<PurposeCode>02</PurposeCode>
</TaxInvoiceDocument>
<TaxInvoiceTradeLineItem>
<SequenceNumeric>1</SequenceNumeric>
<InvoiceAmount>200000000</InvoiceAmount>
<TotalTax>
<CalculatedAmount>20000000</CalculatedAmount>
</TotalTax>
</TaxInvoiceTradeLineItem>
</TaxInvoice>
--2. sucess ----------- xml ---------remove namespace---------------------
<?xml version="1.0" encoding="UTF-8"?>
<TaxInvoice>
<ExchangedDocument>
<IssueDateTime>20110810133213</IssueDateTime>
<ReferencedDocument>
<ID>318701-0002</ID>
</ReferencedDocument>
</ExchangedDocument>
<TaxInvoiceDocument>
<IssueID>201106294100</IssueID>
<TypeCode>0101</TypeCode>
<IssueDateTime>20110810</IssueDateTime>
<PurposeCode>02</PurposeCode>
</TaxInvoiceDocument>
<TaxInvoiceTradeLineItem>
<SequenceNumeric>1</SequenceNumeric>
<InvoiceAmount>200000000</InvoiceAmount>
<TotalTax>
<CalculatedAmount>20000000</CalculatedAmount>
</TotalTax>
</TaxInvoiceTradeLineItem>
</TaxInvoice>
---------- program ------------
procedure insert_table
l_clob clob,
wellformed out boolean,
error out varchar2
is
l_parser dbms_xmlparser.Parser;
xmldoc xmldom.domdocument;
l_doc dbms_xmldom.DOMDocument;
l_nl dbms_xmldom.DOMNodeList;
l_n dbms_xmldom.DOMNode;
l_root DBMS_XMLDOM.domelement;
l_node DBMS_XMLDOM.domnode;
l_node2 DBMS_XMLDOM.domnode;
l_text DBMS_XMLDOM.DOMTEXT;
buf VARCHAR2(30000);
xmlparseerror exception;
TYPE tab_type is Table of xml_upload%ROWTYPE;
t_tab tab_type := tab_type();
pragma exception_init(xmlparseerror, -20100);
l_node_name varchar2(300);
begin
l_parser := dbms_xmlparser.newParser;
l_doc := DBMS_XMLDOM.newdomdocument;
dbms_xmlparser.parseClob(l_parser, l_clob);
l_doc := dbms_xmlparser.getDocument(l_parser);
l_n := dbms_xmldom.makeNode(l_doc);
l_nl := dbms_xslprocessor.selectNodes(l_n, '/TaxInvoice/TaxInvoiceDocument');
FOR cur_tax In 0..dbms_xmldom.getLength(l_nl) - 1 LOOP
l_n := dbms_xmldom.item(l_nl, cur_tax);
t_tab.extend;
t_tab(t_tab.last).ed_id := '5000000';
dbms_xslprocessor.valueOf(l_n, 'IssueID/text()', t_tab(t_tab.last).tid_issue_id);
dbms_xslprocessor.valueOf(l_n, 'TypeCode/text()', t_tab(t_tab.last).tid_type_code);
END LOOP;
FORALL i IN t_tab.first .. t_tab.last
INSERT INTO xml_upload VALUES t_tab(i);
COMMIT;
dbms_xmldom.freeDocument(l_doc);
wellformed := true;
exception
when xmlparseerror then
--xmlparser.freeparser(l_parser);
wellformed := false;
error := sqlerrm;
end insert_table;l_nl := dbms_xslprocessor.selectNodes(l_n, '/TaxInvoice/TaxInvoiceDocument');try to change as follow
l_nl := dbms_xslprocessor.selectnodes(l_n,'/TaxInvoice/TaxInvoiceDocument','xmlns="urn:kr:or:kec:standard:Tax:ReusableAggregateBusinessInformation:1:0"');Edited by: AlexAnd on Aug 17, 2011 12:36 AM -
When I go to update and it gets to the backup part it gives me error -43 and says to complete it it will take all the stuff off my iPod how do I get it to update with out loosing everything on my 64 gb iPod touch
You have a 1st generation iPod Touch.
It can be updated to 3.1.3 by purchase. See here Purchasing iOS 3.1 Software Update for iPod touch (1st generation) -
Does Apple make a printer for the iPad and if not how do I get it to work with a HP Officejet 6500A Plus printer? Thanks
Apple don't make any printers, but there are a number of the printers that are AirPrint-enabled, which you should be able to print to just by the printer and the iPad being on the same wifi network - the models that support AirPrint are listed on this page (the page also includes a bit of troubleshooting at the bottom of it) and it includes :
HP Officejet 6500A e-All-In-One E710a
HP Officejet 6500A Plus e-All-In-One E710n
If your's isn't one of those then you could see if HPs own ePrint app works with it, or there are third-party printer apps such as PrintCentral Pro and Print n Share which might work it -
How do I get a website live with BC after publishing it?
How do I get a website live with BC after publishing it?
Hi
You would need push site live , in admin dashboard of the site you would get the option "Launch Site".
Please checkout this video :
http://tv.adobe.com/watch/introducing-business-catalyst/getting-started-with-business-cata lyst-and-muse-creating-and-publishing-sites/
Thanks,
Sanjit -
How do I get a time stamp with EACH text message?
How do I get a time stamp with EACH text message?
Wow finally! It's nice to see Apple finally provided something as simple as a time stamp.
Now if they would only put in an Auto Retry for text messaging I would be all set
Does anyone use the current Android OS? Does it have an auto retry function?
Maybe you are looking for
-
When I use Firefox the images and logos don't show up clearly/correctly. I'm using Windows 2000 Pro. and just installed Firefox 3.6.6. I'm sure I have the right graphics driver as I'm able to see the images and logos clearly in Internet Explorer. I o
-
I've upgraded from 4.1 tot 5 and under Help it still gives version nr. 4.1
I was advised to upgrade to version 5;after I did so firefox has restarted. When I op Help and thn open 'over firefox' it still s version 4.0.1 Mozilla Firefox EU euballot - 1.1. Right under it says ´update toepassen´with a clickable button. I have d
-
How do I tell photoshop to stop opening the same document every time I start Photoshop CS6?
Hi all, Each and every time I start up Photoshop CS6 (running the latest version I think....13.0.1 x64) on my Mac Running 10.7.5 the same document opens up. As if it thinks it crashed and needs to recover it. Im a member of Creative Cloud in case tha
-
SSIS project - read multiple flat files with different formats
hi all, i need to import multiple flat files with different formats into different tables of the sql server database and not able to figure out the best way out in ssis to do so... please advise the possible methods in ssis to do so and if possible t
-
Hi All, I have a simple stored proc in SQL server 2000 CREATE PROCEDURE dbo.sp_myProc AS SELECT CategoryID,CategoryName from Categories GO My java code is CallableStatement cs = connection.prepareCall("{? = call sp_myProc}"); cs.registerOutParameter(