function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
JamesNJamesN 

sforce JSP Samples Code not running

Hello,

I installed java 1.5 and Tomcat 5.28. I deployed sforce JSP Samples and try to run from Tomcat menu. I got this error when try to run Sample 1: Web2Lead

Config file error - Could not create config file: The system cannot find the path specified

Please let me know what I need to do to fix it.

Thanks
J
DevAngelDevAngel
The JSP samples are still based on Axis 1.1 and JDK 1.4.

We hope to have those updated soon.
PederPeder
I installed the sample applications on Tomcat 5 and jdk1.4.2 and I get the same error:
 
Config file error - Could not create config file
 
 
rjnvarjnva
I have the same issue with Jboss 4.0.1 and 4.0.2 (I believe it is Tomcat 5.0.28 under the hood). Tried it under Sun jdk 1.4 and 1.5 -- same result.

When I point my browser at http://localhost:8080/sforce I get the "JSP samples" screen. From there clicking on the "Sample 1 : Web2Lead" link takes me to a screen where the system prompts me to enter a Name and Password. In the same screen there is a message that says " Config file error - Username not set in config."

Supplying a username and password results in a 500 (partial stack trace is below)

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.axis.AxisFault: java.lang.NullPointerException
org.apache.axis.AxisFault.makeFault(AxisFault.java:146)
org.apache.axis.MessagePart.writeTo(MessagePart.java:280)
org.apache.axis.MessagePart.getAsString(MessagePart.java:568)
org.apache.axis.MessagePart.getAsBytes(MessagePart.java:424)
org.apache.axis.Message.getContentType(Message.java:473)
org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:386)
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:126)
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:73)
org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:160)
org.apache.axis.SimpleChain.invoke(SimpleChain.java:123)
org.apache.axis.client.AxisClient.invoke(AxisClient.java:190)
org.apache.axis.client.Call.invokeEngine(Call.java:3029)
org.apache.axis.client.Call.invoke(Call.java:3014)
org.apache.axis.client.Call.invoke(Call.java:2608)
org.apache.axis.client.Call.invoke(Call.java:2513)
org.apache.axis.client.Call.invokeInternal(Call.java:1973)
org.apache.axis.client.Call.invoke(Call.java:1914)
com.sforce.soap.enterprise.SoapBindingStub.describeSObject(SoapBindingStub.java:1280)
org.apache.jsp.web2lead.web2lead_jsp._jspService(web2lead_jsp.java:213)