Tomcat 6 Error When Deploying War
I have a maven generated war file. When I try and deploy the war file, I
am getting the following error in catalina.out:
SEVERE: Exception fixing docBase: {0}
java.io.FileNotFoundException:
/usr/share/tomcat6/webapps/ROOT/META-INF/MANIFEST.MF (No such file or
directory)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
at org.apache.catalina.startup.ExpandWar.expand(ExpandWar.java:457)
at org.apache.catalina.startup.ExpandWar.expand(ExpandWar.java:173)
at
org.apache.catalina.startup.ContextConfig.fixDocBase(ContextConfig.java:882)
at
org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:1017)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:279)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at
org.apache.catalina.core.StandardContext.init(StandardContext.java:5280)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4086)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:881)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:734)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:497)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1199)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:318)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at
org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
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.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
What is this MANIFEST.mf file and why do I need it suddently? I have
deployed probably 20 Tomcat applications that work fine without this error
occurring and certainly no manifest file.
Tuesday, 10 September 2013
SpringMVC: What is the best strategy to display an Image?
SpringMVC: What is the best strategy to display an Image?
May I know what is the best strategy to display an image (blob) from
database.
using Spring MVC.
Should I load all the image at once from db or create a controller method
to get the images individually?
Some tutorial link will be greatly appreciated.
May I know what is the best strategy to display an image (blob) from
database.
using Spring MVC.
Should I load all the image at once from db or create a controller method
to get the images individually?
Some tutorial link will be greatly appreciated.
drupal form autocomplete from taxonomy
drupal form autocomplete from taxonomy
I am trying to have an autocomplete for a form i am using in drupal,
My current code looks like this:
function HOOK_form($form){
$form['keyword'] = array(
'#type' => 'textfield',
'#attributes' => array(
'title' => 'search field',
'label' => 'search field',
),
'#required' => TRUE,
'#autocomplete_path'=>'get_tax/autocomplete'
);
return $form;
}
function HOOK_menu(){
$menu = array(
'get_tax/autocomplete/%' => array(
'page callback' => 'tax_autocomplete_callback',
'page arguments' => array(2),
'type' => MENU_CALLBACK,
),
);
return $menu;
}
function tax_autocomplete_callback(){
$terms = array();
foreach(taxonomy_get_tree(5) as $tax){
$terms[$tax -> tid] = check_plain($tax -> name);
}
}
To me this should work, but it doesn't.
Any ideas?
I am trying to have an autocomplete for a form i am using in drupal,
My current code looks like this:
function HOOK_form($form){
$form['keyword'] = array(
'#type' => 'textfield',
'#attributes' => array(
'title' => 'search field',
'label' => 'search field',
),
'#required' => TRUE,
'#autocomplete_path'=>'get_tax/autocomplete'
);
return $form;
}
function HOOK_menu(){
$menu = array(
'get_tax/autocomplete/%' => array(
'page callback' => 'tax_autocomplete_callback',
'page arguments' => array(2),
'type' => MENU_CALLBACK,
),
);
return $menu;
}
function tax_autocomplete_callback(){
$terms = array();
foreach(taxonomy_get_tree(5) as $tax){
$terms[$tax -> tid] = check_plain($tax -> name);
}
}
To me this should work, but it doesn't.
Any ideas?
Binding a property of an object of a class inside another doesn't work
Binding a property of an object of a class inside another doesn't work
I have an strange error with binding in WPF. there is a simple sample of
what i'm doing:
public class Project
{
private string _title;
public string Title
{
get { return _title; }
set
{
_title= value;
RaisePropertyChanged("Title");
}
}
}
public class People
{
string _name
public string Name
{
get { return _name; }
set
{
_name= value
RaisePropertyChanged("Name");
}
}
private Project _project;
public Project Project
{
get { return _project; }
set
{
_project= value;
RaisePropertyChanged("Project");
}
}
}
No in in the view i bound a grid to an instance of People and it can bind
controls to Project and Name of People class,but i really can't understand
why i can not bind to Project.Title. i write my XAML code like this:
<TextBox Text="{Binding Name}"/>
<Combobox .... SelectedItem="{Binding Project}"/>
<TextBox Text="{Binding Project.Title}"/>
The first tow control above get bounded correctly but the last TextBox
doesn't.Any idea?
I have an strange error with binding in WPF. there is a simple sample of
what i'm doing:
public class Project
{
private string _title;
public string Title
{
get { return _title; }
set
{
_title= value;
RaisePropertyChanged("Title");
}
}
}
public class People
{
string _name
public string Name
{
get { return _name; }
set
{
_name= value
RaisePropertyChanged("Name");
}
}
private Project _project;
public Project Project
{
get { return _project; }
set
{
_project= value;
RaisePropertyChanged("Project");
}
}
}
No in in the view i bound a grid to an instance of People and it can bind
controls to Project and Name of People class,but i really can't understand
why i can not bind to Project.Title. i write my XAML code like this:
<TextBox Text="{Binding Name}"/>
<Combobox .... SelectedItem="{Binding Project}"/>
<TextBox Text="{Binding Project.Title}"/>
The first tow control above get bounded correctly but the last TextBox
doesn't.Any idea?
Monday, 9 September 2013
Why I can't import urllib2? I already have new a python interpreter in preference
Why I can't import urllib2? I already have new a python interpreter in
preference
I'm a newer to python . Today I config a environment of python . But I
have a problem when I run a test case copy from Internet.
import urllib2
I can't import urllib2. The falut infomation:
Unresolved import: urllib2
I search the Internet for resovle this problem . They said that I shoul
new a python interpreter in the preference . But I've already done that .
Please give me some clue about this.thx
preference
I'm a newer to python . Today I config a environment of python . But I
have a problem when I run a test case copy from Internet.
import urllib2
I can't import urllib2. The falut infomation:
Unresolved import: urllib2
I search the Internet for resovle this problem . They said that I shoul
new a python interpreter in the preference . But I've already done that .
Please give me some clue about this.thx
Android Samsung Galaxy Nexus continuous reboot, not recognized by PC not listed from adb
Android Samsung Galaxy Nexus continuous reboot, not recognized by PC not
listed from adb
I'm going to be crazy.......
I have a Samsung Galaxy Nexus rooted with cyanogenmod 10.2 ..
The fact is that since some days, when I plug the device to the PC
(windows 7 and Linux Fedora) it isn't recognized. I tried to reinstall
Samsung drivers but nothing. The problem seems in the phone. I've done an
android factory reset and when the device starts, it reboots at the start
up.
I noticed that it happens when I log with a Google account. I thought that
it can be caused by my own google account because it try do download my
backupped apps, so I created a new one, I could install just an app
(whatsapp) then no more, when i start the device it reboots continuously.
The problem is also that I can't change rom, because when I plug it, it is
not listed in the ADB devices.
Please help me!! :-((((
Thanks...
listed from adb
I'm going to be crazy.......
I have a Samsung Galaxy Nexus rooted with cyanogenmod 10.2 ..
The fact is that since some days, when I plug the device to the PC
(windows 7 and Linux Fedora) it isn't recognized. I tried to reinstall
Samsung drivers but nothing. The problem seems in the phone. I've done an
android factory reset and when the device starts, it reboots at the start
up.
I noticed that it happens when I log with a Google account. I thought that
it can be caused by my own google account because it try do download my
backupped apps, so I created a new one, I could install just an app
(whatsapp) then no more, when i start the device it reboots continuously.
The problem is also that I can't change rom, because when I plug it, it is
not listed in the ADB devices.
Please help me!! :-((((
Thanks...
Won't let me initialize a final constant int?
Won't let me initialize a final constant int?
I need to initialize a constant int for this program but it's giving me
the error "Syntax error on token "NO_VALUE", delete this token", but
"NO_VALUE" is supposed to be the name of the int.
Here is the code where I try to initialize it
public class DayOfWeek {
int myMonth, myDayOfMonth, myYear, myAdjustment, numericDayOfWeek;
public final int constant NO_VALUE = -1;
I need to initialize a constant int for this program but it's giving me
the error "Syntax error on token "NO_VALUE", delete this token", but
"NO_VALUE" is supposed to be the name of the int.
Here is the code where I try to initialize it
public class DayOfWeek {
int myMonth, myDayOfMonth, myYear, myAdjustment, numericDayOfWeek;
public final int constant NO_VALUE = -1;
Subscribe to:
Posts (Atom)