|
|
|
|
|
Re: Tomcat republishing does not work [message #184788 is a reply to message #184765] |
Thu, 14 December 2006 16:06 |
Larry Isaacs Messages: 1354 Registered: July 2009 |
Senior Member |
|
|
I thought I had not applied the "JDK 1.4 Compatibility Package" to that
Tomcat 5.5.20, but it appears I was wrong as I now recall that Xerces
along with JMX is part of that package. You might try a newer version
of Xerces to see if that helps. I believe Xerces 2.9.0 is available.
Since the xeb.xml is being parsed by the server as part of a context
reload, you may have to put the xercesImp.jar and xml-apis.jar in the
"C:\data\javasoft\tomcat-5.5.20\common\endorsed" directory to make it
available to the server.
Cheers,
Larry
Andy Pahne wrote:
>
> Hi Larry,
>
> The launch config says:
> -Djava.endorsed.dirs="C:\data\javasoft\tomcat-5.5.20\common\endorsed "
>
> And inside this dir there is: nothing at all.
>
> In fact I searched the whole CATALINA_HOME dir and there's no xerces
> besides xercesImpl-2.0.2.jar inside the application's WEB-INF/lib.
> That's a dependency of I don't know what. (I am using maven2 for
> dependency resolution).
>
> Should I give it a try and replace this webapp's dependency with a newer
> version, 2.8.0 for instance?
>
> Andy
>
>
>
>
>
> Larry Isaacs schrieb:
>> Andy,
>>
>> This would appear to be a problem in Xerces/Tomcat and not anything
>> that Eclipse needs to do differently. Odd is the fact that Tomcat
>> 5.5.20 uses Xerces 2.8.0, yet the stack trace line:
>>
>> org.apache.xerces.impl.dtd.models.DFAContentModel.<init>(DFAContentModel.java:253)
>>
>>
>> corresponds to the middle of a comment in Xerces 2.8.0 source. Can
>> you open the launch configuration for this server and check the
>> "java.endorsed.dirs" system property. I would be curious about the
>> dates in the xercesImpl.jar found in the directory at the
>> "java.endorsed.dirs" location.
>>
>> Cheers,
>> Larry
>>
>> You could
>> Andy Pahne wrote:
>>> Larry Isaacs schrieb:
>>>> If you deploy this webapp to Tomcat outside of Eclipse and trigger a
>>>> reload (by "touching" the web.xml or a jar), does the same error occur?
>>>>
>>>> Cheers,
>>>> Larry
>>>
>>>
>>>
>>> Outside of Eclipse it works as expected.
>>>
>>> Bye,
>>> Andy
|
|
|
|
Re: Tomcat republishing does not work [message #184850 is a reply to message #184838] |
Thu, 14 December 2006 21:20 |
Larry Isaacs Messages: 1354 Registered: July 2009 |
Senior Member |
|
|
When you create a Dynamic Web Project, the "name" will appear in three
places. The project name obviously. It also appears as the
context-root, which you may have already found in project Properties.
The another place it appears is in the
".settings/org.eclipse.wst.common.component" file as the deploy-name on
the <web-module> element. I believe this is the one that determines the
name of the context in Tomcat. Make sure all three are the same and
what you want. You might also need to remove and re-add the project to
the server in case things got out of sync with the rename.
Cheers,
Larry
Andy Pahne wrote:
>
>
> Hi Larry,
>
> Putting bith jars in the endorsed dir solved the reloading problem.
>
> Now I have another strange issue: the Eclipse project once was called
> netx-oos. I renamed it to simply oos but that was really long ago.
>
> When I create the Server configuration, netx-oos is filled in as
> deployment path. No matter if I change it, when I start the server it
> deploys under the old path. The configured path is changed by WTP.
>
> Thanks for your help,
> Andy
>
>
>
> Larry Isaacs schrieb:
>> I thought I had not applied the "JDK 1.4 Compatibility Package" to
>> that Tomcat 5.5.20, but it appears I was wrong as I now recall that
>> Xerces along with JMX is part of that package. You might try a newer
>> version of Xerces to see if that helps. I believe Xerces 2.9.0 is
>> available.
>>
>> Since the xeb.xml is being parsed by the server as part of a context
>> reload, you may have to put the xercesImp.jar and xml-apis.jar in the
>> "C:\data\javasoft\tomcat-5.5.20\common\endorsed" directory to make it
>> available to the server.
>>
>> Cheers,
>> Larry
>>
|
|
|
|
Powered by
FUDForum. Page generated in 0.04293 seconds